![]() |
|
[Tutorial] Random Things 3 - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Tutorial] Random Things 3 (/Thread-Tutorial-Random-Things-3.html) Pages:
1
2
|
Random Things 3 - Yamato - 09-20-2011 Hello, ![]() This is a tutorial of some commands that are strange and maybe in some moment you can use them. The first of all is IncPlayerStat, this function increases a value of a player stat during the match, with those stats the player gets awards. Is mainly a command to use in online matches. Works like this: Code: self IncPlayerStat("stat",ammount you want to increase);Example: Code: self IncPlayerStat("kills",25); //this will increase your headshot counter in 25 and will help you on getting a award at end of matchList of stats to modify: Spoiler (Click to View) Code: setSlowMotion(start time scale,end time scale,lerp duration);Example of use: Code: setSlowMotion(0.5,1.5,1);Now the command ScaleOverTime, works like FadeOverTime or MoveOverTime, it changes a shader scale with time: Code: shader ScaleOverTime(time,x size,y size);
wait time;Example(it will change shader scale from whatever to 500x400 in 0.8 seconds): Code: shader ScaleOverTime(0.8,500,400);
wait 0.8;Now the command AddToTeam, is the best and quickest way of changing someone of team: Code: self AddToTeam("team");You can use this other command to make it open the class selection menu: Code: self beginClassChoice();This is some random Info I wanted to share about game MODs, is a list of all the MOD_SOMETHING Spoiler (Click to View) Code: self SetCardDisplaySlot("player",number);For example you can do to get the player you are spectating and show it on the card: Code: theplayer = self GetSpectatingPlayer(); //this gets the player you are currently spectating
self SetCardDisplaySlot(theplayer,6); //put 6,7,8, I dont see any difference beetween them but game uses different onesThis is another strange command that you can use to annoy people, it puts the lobby in Host Migration Screen: Code: hostMigrationWait();You can use this command for controlling spread in weapon: Code: self SetSpreadOverride(spread);Thats all I hope you enjoyed the tutorial.
RE: Random Things 3 - Rendflex - 09-20-2011 Omg, finnaly some things I didn't know! Thank you :p RE: Random Things 3 - iAegle - 09-20-2011 Quote:I hope you enjoyed the tutorial. nope I didn't. RE: Random Things 3 - OrangePL - 09-20-2011 Does the setslowmotion work if you arent host ? RE: Random Things 3 - Pozzuh - 09-20-2011 (09-20-2011, 18:39)OrangePL Wrote: Does the setslowmotion work if you arent host ? how can you host a mod without being host? :S RE: Random Things 3 - OrangePL - 09-20-2011 Isnt it a console command ? RE: Random Things 3 - Pozzuh - 09-20-2011 setSlowMotion(start time scale,end time scale,lerp duration); since when do console commands use (,) and ; RE: Random Things 3 - Nukem - 09-20-2011 knew about all this :p here is a addon to your list of stats (this is NOT used though) Code: moneyRE: Random Things 3 - Rendflex - 09-20-2011 (09-20-2011, 19:38)Nukem Wrote: knew about all this :p That's what @SE7EN and I used to make a custom "rank" :p RE: Random Things 3 - Metro-Police#45 - 09-21-2011 Finally I can get camos easier without all unlock mods,thanks man. |