ItsMods

Full Version: Random Things 5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
case "weeks": wait(ammount*604800); break;

lol
Random Things 1 was the best

Nice OMA OMA

also stop random spamming