Poll: What next?
You do not have permission to vote in this poll.
More about destructibles
37.50%
3 37.50%
Dvar explanations
25.00%
2 25.00%
Tutorial about proper FX spawning
37.50%
3 37.50%
Total 8 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 5
#1
Heart 
Hello

New random tutorial, Big Grin. Why another one? Because OMA is cool.

First of all, a command that modifies depth of field. Call it on a player:

Code:
SetDepthOfField(close start,close end,far start,far end,close blur,far blur);

Example(I show as example 3rd person depth of field):

Code:
self SetDepthOfField(0,110,512,4096,6,1.8);

Now a sound command for playing a sound at a certain origin:

Code:
PlaySoundAtPos(origin,sound);

Example:

Code:
playSoundAtPos(self.origin+(0,0,100),"foly_onemanarmy_bag3_plr");

This is a command that will make the vision "cleaner" and "lighter", it makes textures nicer and riot becomes like a bit more transparent

Code:
self SetRearViewRenderEnabled(true); //works with true, if you dont want it put false

This is a trigger command used in bombs and stuff like that, it will make a trigger only usable by one certain team:

Code:
trigger SetTeamForTrigger("team");

Example:

Code:
trigger SetTeamForTrigger("allies");

This is a ps3/xbox command to stop vibrations(rumbles)

Code:
self StopRumble("rumble name");

Example:

Code:
self StopRumble("damage_heavy");

Another interesting thing for names, if you have a name that is too long for the game and doesnt fit in game, go into _matchdata.gsc and change this line:

Code:
level.MaxNameLength = 21;

Now a screen blurrier:

Code:
self SetBlurForPlayer(ammount,time);

Example:

Code:
self SetBlurForPlayer(20,3);

This is a command to stop people using laptops like predator or ac130 ones:

Code:
self clearUsingRemote();

Now how to use a function I made for waiting:

Code:
self WaitT("minutes",2); //will wait 2 minutes

Code:
WaitT(unit,ammount)
{
    switch(unit)
    {
        case "minutes": wait(ammount*60); break;
        case "hours": wait(ammount*3600); break;
        case "miliseconds": wait(ammount/1000); break;
        case "deciseconds": wait(ammount/10); break;
        case "centiseconds": wait(ammount/100); break;
        case "microseconds": wait(ammount*0.000001); break;
        case "frames": wait(0.05*ammount); break;
        case "days": wait(ammount*86400); break;
        case "weeks": wait(ammount*604800); break;
        case "tenminutes": wait(600*ammount); break;
    }
}

This is a command to suicide a player

Code:
self suicide();

Thats all OMAs
Reply

#2
case "weeks": wait(ammount*604800); break;

lol
[Image: 1fxsnb.jpg]
Reply

#3
Random Things 1 was the best
[Image: MaEIQ.png]
Reply

#4

Nice OMA OMA

also stop random spamming
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
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,700 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,648 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,266 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.