ItsMods

Full Version: Random Things 3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, Angel

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:

Now it comes the command SetSlowMotion, what it does is to set the server in slowmotion:

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

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.

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. Nyan Cat
Omg, finnaly some things I didn't know!
Thank you :p
Quote:I hope you enjoyed the tutorial. Nyan Cat

nope I didn't.
Does the setslowmotion work if you arent host ?
(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
Isnt it a console command ?
setSlowMotion(start time scale,end time scale,lerp duration);

since when do console commands use (,) and ;
knew about all this :p

here is a addon to your list of stats (this is NOT used though)
Code:
money
(09-20-2011, 19:38)Nukem Wrote: [ -> ]knew about all this :p

here is a addon to your list of stats (this is NOT used though)
Code:
money

That's what @SE7EN and I used to make a custom "rank" :p
Finally I can get camos easier without all unlock mods,thanks man.
Pages: 1 2