09-20-2011, 17:18
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:
Example:
List of stats to modify:
Now it comes the command SetSlowMotion, what it does is to set the server in slowmotion:
Example of use:
Now the command ScaleOverTime, works like FadeOverTime or MoveOverTime, it changes a shader scale with time:
Example(it will change shader scale from whatever to 500x400 in 0.8 seconds):
Now the command AddToTeam, is the best and quickest way of changing someone of team:
You can use this other command to make it open the class selection menu:
This is some random Info I wanted to share about game MODs, is a list of all the MOD_SOMETHING
Now this command that is meant for showing a card splash on center of screen like when you spectate a player, this changes the message that says the player name.
For example you can do to get the player you are spectating and show it on the card:
This is another strange command that you can use to annoy people, it puts the lobby in Host Migration Screen:
You can use this command for controlling spread in weapon:
Thats all
I hope you enjoyed the tutorial.
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 match
List 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 ones
This 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.