Poll: Interesting?
You do not have permission to vote in this poll.
Yes, is interesting
10.00%
1 10.00%
No, is a Bullshit
20.00%
2 20.00%
OMA
50.00%
5 50.00%
Make more
20.00%
2 20.00%
Total 10 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Random Things 3
#1
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
Reply

#2
Omg, finnaly some things I didn't know!
Thank you :p
Reply

#3
Quote:I hope you enjoyed the tutorial. Nyan Cat

nope I didn't.
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#4
Does the setslowmotion work if you arent host ?
[Image: lQDUjba.jpg]
Reply

#5
(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
[Image: MaEIQ.png]
Reply

#6
Isnt it a console command ?
[Image: lQDUjba.jpg]
Reply

#7
setSlowMotion(start time scale,end time scale,lerp duration);

since when do console commands use (,) and ;
[Image: MaEIQ.png]
Reply

#8
knew about all this :p

here is a addon to your list of stats (this is NOT used though)
Code:
money
[Image: b_560_95_1.png]
Reply

#9
(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
Reply

#10
Finally I can get camos easier without all unlock mods,thanks man.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  GTA V fun things RaZ 4 4,710 05-06-2015, 18:55
Last Post: RaZ
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,106 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,699 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,642 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,262 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,735 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,398 07-22-2013, 09:47
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 3,265 06-05-2013, 11:24
Last Post: akillj
  Random anims master131 14 10,790 05-24-2013, 09:45
Last Post: [HARD] Tony.
  [Request] Random player model hillbilly 1 2,743 05-12-2013, 08:30
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.