10-08-2011, 11:25
Hello
New random tutorial, . Why another one? Because is cool.
First of all, a command that modifies depth of field. Call it on a player:
Example(I show as example 3rd person depth of field):
Now a sound command for playing a sound at a certain origin:
Example:
This is a command that will make the vision "cleaner" and "lighter", it makes textures nicer and riot becomes like a bit more transparent
This is a trigger command used in bombs and stuff like that, it will make a trigger only usable by one certain team:
Example:
This is a ps3/xbox command to stop vibrations(rumbles)
Example:
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:
Now a screen blurrier:
Example:
This is a command to stop people using laptops like predator or ac130 ones:
Now how to use a function I made for waiting:
This is a command to suicide a player
Thats all s
New random tutorial, . Why another one? Because 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 s