![]() |
|
[Tutorial] Random Things 5 - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Tutorial] Random Things 5 (/Thread-Tutorial-Random-Things-5.html) |
Random Things 5 - Yamato - 10-08-2011 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: 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 falseThis 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 minutesCode: 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
RE: Random Things 5 - 4FunPlayin - 10-08-2011 case "weeks": wait(ammount*604800); break; lol RE: Random Things 5 - Pozzuh - 10-08-2011 Random Things 1 was the best RE: Random Things 5 - Nekochan - 10-08-2011 Nice ![]() also stop random spamming |