Game Script Methods (BO2): Difference between revisions
Aerosoul94 (talk | contribs) No edit summary |
|||
| Line 3: | Line 3: | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%" | Description | |||
|- | |- | ||
| void giveweapon( string, int, int ) | | void giveweapon( string, int, int ) | ||
| Gives a weapon to the specified client with an optional argument for camo and attachments. | | {{ScriptUsage | ||
|Summary=Gives a weapon to the specified client with an optional argument for camo and attachments. A full list containing all the weapon names can be found here http://pastebin.com/wEq07Yzw | |||
|Example=<pre>player giveweapon("mp7_mp", 255, 0);</pre> | |||
}} | |||
|- | |- | ||
| void updateweaponoptions( string, int ) | | void updateweaponoptions( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setblockweaponpickup( string, int ) | | void setblockweaponpickup( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int calcweaponoptions( int, int, int, int, int ) | | int calcweaponoptions( int, int, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int calcplayeroptions( int ) | | int calcplayeroptions( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayerrenderoptions( int ) | | void setplayerrenderoptions( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void nextplayerrenderoption( string ) | | void nextplayerrenderoption( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void bbclasschoice( int, string, string ) | | void bbclasschoice( int, string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethighlighted() | | void sethighlighted() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void takeweapon( string ) | | void takeweapon( string ) | ||
| Removes the first occurrence of the specified weapon from a client.< | | {{ScriptUsage | ||
|Summary=Removes the first occurrence of the specified weapon from a client. | |||
|Example=<pre>player takeweapon("mp7_mp");</pre> | |||
}} | |||
|- | |- | ||
| bool isthrowinggrenade() | | bool isthrowinggrenade() | ||
| Returns true if the specified client is throwing a grenade.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is throwing a grenade. | |||
|Example=<pre>if (player isthrowinggrenade())</pre> | |||
}} | |||
|- | |- | ||
| void forcegrenadethrow() | | void forcegrenadethrow() | ||
| Forces the specified client to throw a grenade.< | | {{ScriptUsage | ||
|Summary=Forces the specified client to throw a grenade. | |||
|Example=<pre>player forcegrenadethrow();</pre> | |||
}} | |||
|- | |- | ||
| bool isfiring() | | bool isfiring() | ||
| Returns true if the specified client is shooting.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is shooting. | |||
|Example=<pre>if (player isfiring())</pre> | |||
}} | |||
|- | |- | ||
| bool ismeleeing() | | bool ismeleeing() | ||
| Returns true if the specified client is meleeing.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is meleeing. | |||
|Example=<pre>if (player ismeleeing())</pre> | |||
}} | |||
|- | |- | ||
| bool isswitchingweapons() | | bool isswitchingweapons() | ||
| Returns true if the specified client is switching weapons.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is switching weapons. | |||
|Example=<pre>if (player isswitchingweapons())</pre> | |||
}} | |||
|- | |- | ||
| bool isreloading() | | bool isreloading() | ||
| Returns true if the specified client is reloading.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is reloading. | |||
|Example=<pre>if (player isreloading())</pre> | |||
}} | |||
|- | |- | ||
| void takeallweapons() | | void takeallweapons() | ||
| Removes all weapons from the specified client including the default melee knife.< | | {{ScriptUsage | ||
|Summary=Removes all weapons from the specified client including the default melee knife. | |||
|Example=<pre>player takeallweapons();</pre> | |||
}} | |||
|- | |- | ||
| bool isinmovemode() | | bool isinmovemode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getcurrentweapon() | | string getcurrentweapon() | ||
| Returns the specified clients currently held weapon.< | | {{ScriptUsage | ||
|Summary=Returns the specified clients currently held weapon. | |||
|Example=<pre>currentWeapon = player getcurrentweapon();</pre> | |||
}} | |||
|- | |- | ||
| float getcurrentweaponspinlerp() | | float getcurrentweaponspinlerp() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcurrentweaponspinlerp( float ) | | void setcurrentweaponspinlerp( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getcurrentweaponaltweapon() | | string getcurrentweaponaltweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isweaponoverheating( int ) | | int isweaponoverheating( int ) | ||
| Returns 1 if the specified client's slot index is overheating.< | | {{ScriptUsage | ||
|Summary=Returns 1 if the specified client's slot index is overheating. | |||
|Example=<pre>if (player isweaponoverheating(0))</pre> | |||
}} | |||
|- | |- | ||
| void setweaponoverheating( int, float ) | | void setweaponoverheating( int, float ) | ||
| Sets the specified clients slot index overheat to a percentage.< | | {{ScriptUsage | ||
|Summary=Sets the specified clients slot index overheat to a percentage. | |||
|Example=<pre>player setweaponoverheating(0, 99);</pre> | |||
}} | |||
|- | |- | ||
| string getcurrentoffhand() | | string getcurrentoffhand() | ||
| Returns the current lethal/tactical or equipment.< | | {{ScriptUsage | ||
|Summary=Returns the current lethal/tactical or equipment. | |||
|Example=<pre>offhandWeapon = player getcurrentoffhand();</pre> | |||
}} | |||
|- | |- | ||
| bool isusingoffhand() | | bool isusingoffhand() | ||
| Returns true if the specified client is using their offhand weapon.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client is using their offhand weapon. | |||
|Example=<pre>if (player isusingoffhand())</pre> | |||
}} | |||
|- | |- | ||
| void forceoffhandend() | | void forceoffhandend() | ||
| Forces the specified client to use their offhand weapon.< | | {{ScriptUsage | ||
|Summary=Forces the specified client to use their offhand weapon. | |||
|Example=<pre>player forceoffhandend()</pre> | |||
}} | |||
|- | |- | ||
| bool hasweapon( string ) | | bool hasweapon( string ) | ||
| Returns true if the specified client has the specified weapon.< | | {{ScriptUsage | ||
|Summary=Returns true if the specified client has the specified weapon. | |||
|Example=<pre>if (player hasweapon("mp7_mp"))</pre> | |||
}} | |||
|- | |- | ||
| void switchtoweapon() | | void switchtoweapon() | ||
| | | {{ScriptUsage | ||
| | |Summary=Forces the specified weapon to switch to the specified weapon. | ||
| | |Example=<pre>player switchtoweapon("mp7_mp");</pre> | ||
}} | |||
|- | |||
| void switchtoweaponimmediate() | | void switchtoweaponimmediate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool switchtooffhand( string ) | | bool switchtooffhand( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponplayejectbrass() | | void weaponplayejectbrass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getlockonradius() | | int getlockonradius() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getlockonspeed() | | int getlockonspeed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void givestartammo( string ) | | void givestartammo( string ) | ||
| Sets the specified clients' specified weapon to the starting ammunition amount.< | | {{ScriptUsage | ||
|Summary=Sets the specified clients' specified weapon to the starting ammunition amount. | |||
|Example=<pre>player givestartammo("mp7_mp");</pre> | |||
}} | |||
|- | |- | ||
| void givemaxammo( string ) | | void givemaxammo( string ) | ||
| Gives the specified clients' specified weapon maximum ammunition.< | | {{ScriptUsage | ||
|Summary=Gives the specified clients' specified weapon maximum ammunition. | |||
|Example=<pre>player givemaxammo("mp7_mp");</pre> | |||
}} | |||
|- | |- | ||
| float getfractionstartammo( string ) | | float getfractionstartammo( string ) | ||
| Returns a float of the specified weapons starting ammunition.< | | {{ScriptUsage | ||
|Summary=Returns a float of the specified weapons starting ammunition. | |||
|Example=<pre>fractionStartAmmo = player getfractionstartammo("mp7_mp");</pre> | |||
}} | |||
|- | |- | ||
| float getfractionmaxammo( string ) | | float getfractionmaxammo( string ) | ||
| Returns a float of the specified weapons maximum ammunition.< | | {{ScriptUsage | ||
|Summary=Returns a float of the specified weapons maximum ammunition. | |||
|Example=<pre>fractionMaxAmmo = player getfractionmaxammo("mp7_mp");</pre> | |||
}} | |||
|- | |- | ||
| void setweaponheatpercent( string, float ) | | void setweaponheatpercent( string, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setorigin( vector ) | | void setorigin( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvelocity( vector ) | | void setvelocity( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayerangles( vector ) | | void setplayerangles( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getplayerangles() | | vector getplayerangles() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getgunangles() | | vector getgunangles() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getplayercamerapos() | | vector getplayercamerapos() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cameraactivate( int ) | | void cameraactivate( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void camerasetposition( vector, vector ) | | void camerasetposition( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void camerasetlookat( entity, vector ) | | void camerasetlookat( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gamepadusedlast() | | void gamepadusedlast() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int usebuttonpressed() | | int usebuttonpressed() | ||
| Returns 1 if the use button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the use button is pressed otherwise 0. | |||
|Example=<pre>if (player usebuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int changeseatbuttonpressed() | | int changeseatbuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int attackbuttonpressed() | | int attackbuttonpressed() | ||
| Returns 1 if the shooting button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the shooting button is pressed otherwise 0. | |||
|Example=<pre>if (player attackbuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int actionslotonebuttonpressed() | | int actionslotonebuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int actionslottwobuttonpressed() | | int actionslottwobuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int actionslotthreebuttonpressed() | | int actionslotthreebuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int actionslotfourbuttonpressed() | | int actionslotfourbuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int adsbuttonpressed() | | int adsbuttonpressed() | ||
| Returns 1 if the aiming down the sights button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the aiming down the sights button is pressed otherwise 0. | |||
|Example=<pre>if (player adsbuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int throwbuttonpressed() | | int throwbuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int meleebuttonpressed() | | int meleebuttonpressed() | ||
| Returns 1 if the melee button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the melee button is pressed otherwise 0. | |||
|Example=<pre>if (player meleebuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int jumpbuttonpressed() | | int jumpbuttonpressed() | ||
| Returns 1 if the jumping button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the jumping button is pressed otherwise 0 | |||
|Example=<pre>if (player jumpbuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int stancebuttonpressed() | | int stancebuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int fragbuttonpressed() | | int fragbuttonpressed() | ||
| Returns 1 if the lethal grenade button is pressed otherwise 0< | | {{ScriptUsage | ||
|Summary=Returns 1 if the lethal grenade button is pressed otherwise 0. | |||
|Example=<pre>if (player fragbuttonpressed())</pre> | |||
}} | |||
|- | |- | ||
| int secondaryoffhandbuttonpressed() | | int secondaryoffhandbuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int inventorybuttonpressed() | | int inventorybuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int sprintbuttonpressed() | | int sprintbuttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sprintuprequired() | | void sprintuprequired() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float playerads() | | float playerads() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pingplayer() | | void pingplayer() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setviewmodel( string ) | | void setviewmodel( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getviewmodel() | | conststring getviewmodel() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setoffhandsecondaryclass( string ) | | void setoffhandsecondaryclass( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getoffhandsecondaryclass() | | conststring getoffhandsecondaryclass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string setoffhandprimaryclass( string ) | | string setoffhandprimaryclass( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationselection() | | void beginlocationselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationairstrikeselection() | | void beginlocationairstrikeselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationmortarselection() | | void beginlocationmortarselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationartilleryselection() | | void beginlocationartilleryselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationcomlinkselection() | | void beginlocationcomlinkselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void beginlocationnapalmselection() | | void beginlocationnapalmselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void endlocationselection() | | void endlocationselection() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clientsyssetstate( int, string ) | | void clientsyssetstate( int, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponlockstart( entity ) | | void weaponlockstart( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponlockfinalize( entity ) | | void weaponlockfinalize( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponlockfree() | | void weaponlockfree() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponlocktargettooclose( int ) | | void weaponlocktargettooclose( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void weaponlocknoclearance( int ) | | void weaponlocknoclearance( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void buttonpressed() | | void buttonpressed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void giveweaponnextattachment() | | void giveweaponnextattachment() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void givenextbaseweapon() | | void givenextbaseweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getnormalizedmovement() | | void getnormalizedmovement() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getnormalizedcameramovement() | | void getnormalizedcameramovement() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sayall() | | void sayall() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sayteam() | | void sayteam() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspawnweapon( string ) | | void setspawnweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void initialweaponraise( string ) | | void initialweaponraise( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void seteverhadweaponall( int ) | | void seteverhadweaponall( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dropitem( string, constlowercasestring ) | | void dropitem( string, constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dropscavengeritem( string ) | | void dropscavengeritem( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int hasagrenadepulledback() | | int hasagrenadepulledback() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int ) | | bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void finishmeleehit( entity, string, vector, vector, int, int, int ) | | void finishmeleehit( entity, string, vector, vector, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void reviveplayer() | | void reviveplayer() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void undolaststand() | | void undolaststand() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void suicide() | | void suicide() | ||
| Kills the specified player< | | {{ScriptUsage | ||
|Summary=Kills the specified player. | |||
|Example=<pre>player suicide();</pre> | |||
}} | |||
|- | |- | ||
| void turnedhuman() | | void turnedhuman() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isinvehicle() | | bool isinvehicle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isremotecontrolling() | | bool isremotecontrolling() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isweaponviewonlylinked() | | bool isweaponviewonlylinked() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowstand( int ) | | int allowstand( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowcrouch( int ) | | int allowcrouch( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowprone( int ) | | int allowprone( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowlean( int ) | | int allowlean( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getvehicleoccupied() | | entity getvehicleoccupied() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getfriendlies( int ) | | array getfriendlies( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getenemies( int ) | | array getenemies( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int openmenu( string ) | | int openmenu( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int openmenunomouse( string ) | | int openmenunomouse( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void closemenu() | | void closemenu() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void closeingamemenu() | | void closeingamemenu() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void freezecontrols( int ) | | void freezecontrols( int ) | ||
| Freezes/unfreezes the controls of the specified player< | | {{ScriptUsage | ||
|Summary=Freezes/unfreezes the controls of the specified player | |||
|Example=<pre>player freezecontrols(1);</pre> | |||
}} | |||
|- | |- | ||
| void freezecontrolsallowlook( int ) | | void freezecontrolsallowlook( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int arecontrolsfrozen() | | int arecontrolsfrozen() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableusability() | | void disableusability() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableusability() | | void enableusability() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableweapons() | | void disableweapons() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableweapons() | | void enableweapons() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disabledeathstreak() | | void disabledeathstreak() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enabledeathstreak() | | void enabledeathstreak() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int deathstreakactive() | | int deathstreakactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableoffhandweapons() | | void disableoffhandweapons() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableoffhandweapons() | | void enableoffhandweapons() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableweaponcycling() | | void disableweaponcycling() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableweaponcycling() | | void enableweaponcycling() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void revive() | | void revive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlaststandprevweap( string ) | | void setlaststandprevweap( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setreverb() | | void setreverb() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void deactivatereverb() | | void deactivatereverb() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setchannelvolumes() | | void setchannelvolumes() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void deactivatechannelvolumes() | | void deactivatechannelvolumes() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int setweaponammoclip( string, int ) | | int setweaponammoclip( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setweaponammostock( string, int ) | | void setweaponammostock( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getweaponammoclip( string ) | | int getweaponammoclip( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getweaponammostock( string ) | | int getweaponammostock( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int anyammoforweaponmodes( string ) | | int anyammoforweaponmodes( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void iprintln() | | void iprintln() | ||
| Prints text for the specified player only in the killfeed< | | {{ScriptUsage | ||
|Summary=Prints text for the specified player only in the killfeed. | |||
|Example=<pre>player iprintln("Hello, World!");</pre> | |||
}} | |||
|- | |- | ||
| void iprintlnbold() | | void iprintlnbold() | ||
| Prints text for the specified player only in the middle of the screen | | {{ScriptUsage | ||
|Summary=Prints text for the specified player only in the middle of the screen. | |||
|Example=<pre>player iprintlnBold("Hello, World!");</pre> | |||
}} | |||
|- | |- | ||
| void spawn( vector, vector ) | | void spawn( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentertime( int ) | | void setentertime( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cloneplayer( int ) | | void cloneplayer( int ) | ||
| Creates a clone of the specified player at current position< | | {{ScriptUsage | ||
|Summary=Creates a clone of the specified player at current position | |||
|Example=<pre>player cloneplayer();</pre> | |||
}} | |||
|- | |- | ||
| void setclientfov() | | void setclientfov() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientthirdperson( int ) | | void setclientthirdperson( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientthirdpersonangle() | | void setclientthirdpersonangle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientcompass() | | void setclientcompass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientscriptmainmenu() | | void setclientscriptmainmenu() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientcgobjectivetext() | | void setclientcgobjectivetext() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientplayersprinttime() | | void setclientplayersprinttime() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientnumlives() | | void setclientnumlives() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientdrawtalk() | | void setclientdrawtalk() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientammocounterhide() | | void setclientammocounterhide() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientminiscoreboardhide() | | void setclientminiscoreboardhide() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclienthudhardcore() | | void setclienthudhardcore() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientplayerpushamount() | | void setclientplayerpushamount() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientaimlockonpitchstrength() | | void setclientaimlockonpitchstrength() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientuivisibilityflag( string, int ) | | void setclientuivisibilityflag( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientprofilevar( string, string ) | | void setclientprofilevar( string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playclientairstrike( vector, int, string, string, int, string, int ) | | void playclientairstrike( vector, int, string, string, int, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playclientnapalm( vector, int, string, string, int, string, int ) | | void playclientnapalm( vector, int, string, string, int, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcurrentspectatorclient( entity ) | | void setcurrentspectatorclient( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void relinktoturret( entity ) | | void relinktoturret( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void carryturret( entity, vector, vector ) | | void carryturret( entity, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopcarryturret( entity, vector, vector ) | | void stopcarryturret( entity, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool iscarryingturret() | | bool iscarryingturret() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array canplayerplaceturret( entity ) | | array canplayerplaceturret( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplacementhint( int ) | | void setplacementhint( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void linkguidedmissilecamera() | | void linkguidedmissilecamera() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void unlinkguidedmissilecamera() | | void unlinkguidedmissilecamera() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gpsjammeractive() | | void gpsjammeractive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gpsjammerinactive() | | void gpsjammerinactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void spawnprotectionactive() | | void spawnprotectionactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void spawnprotectioninactive() | | void spawnprotectioninactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dualgrenadesactive() | | void dualgrenadesactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dualgrenadesinactive() | | void dualgrenadesinactive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void linktomissile( entity, int ) | | void linktomissile( entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void unlinkfrommissile() | | void unlinkfrommissile() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array canplaceriotshield( conststring ) | | array canplaceriotshield( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setheldweaponmodel( int ) | | void setheldweaponmodel( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setriotshieldfailhint() | | void setriotshieldfailhint() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array canplayerplacevehicle( float, float, float, float, float, float ) | | array canplayerplacevehicle( float, float, float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void remotecontrolturret( entity ) | | void remotecontrolturret( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void remotecontrolturretoff( entity ) | | void remotecontrolturretoff( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordkillstreakevent( int ) | | void recordkillstreakevent( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordkillstreakendevent( int ) | | void recordkillstreakendevent( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordgameevent( string ) | | void recordgameevent( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordkillmodifier( string ) | | void recordkillmodifier( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordmedal( string ) | | void recordmedal( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordloadoutandperks() | | void recordloadoutandperks() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int ) | | void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordmultikill( int ) | | void recordmultikill( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void incrementlifestat() | | void incrementlifestat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void incrementplayerstat( string, int ) | | void incrementplayerstat( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordplayerdeathzombies() | | void recordplayerdeathzombies() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordplayerdownzombies( string ) | | void recordplayerdownzombies( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordplayerrevivezombies( entity ) | | void recordplayerrevivezombies( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordzombiezone( string, string ) | | void recordzombiezone( string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int islookingat( entity ) | | int islookingat( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playlocalsound( string ) | | void playlocalsound( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoplocalsound( string ) | | void stoplocalsound( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int istalking() | | int istalking() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowspectateteam( team, int ) | | void allowspectateteam( team, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getguid() | | int getguid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getxuid() | | string getxuid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int ishost() | | int ishost() | ||
| Returns 1 if the specified player is host, 0 otherwise< | | {{ScriptUsage | ||
|Summary=Returns 1 if the specified player is host, 0 otherwise | |||
|Example=<pre>if (player isHost())</pre> | |||
}} | |||
|- | |- | ||
| int islocaltohost() | | int islocaltohost() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowads( int ) | | int allowads( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowjump( int ) | | int allowjump( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowsprint( int ) | | int allowsprint( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int allowmelee( int ) | | int allowmelee( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int forceslick( int ) | | int forceslick( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setsprintduration( float ) | | void setsprintduration( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setsprintcooldown( float ) | | void setsprintcooldown( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspreadoverride( int ) | | void setspreadoverride( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resetspreadoverride() | | void resetspreadoverride() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setactionslot( int, string, string ) | | void setactionslot( int, string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getinventoryweapon() | | string getinventoryweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setinventoryweapon( string ) | | void setinventoryweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getweaponslist( int ) | | array getweaponslist( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getweaponslistprimaries() | | array getweaponslistprimaries() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startrevive() | | void startrevive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoprevive() | | void stoprevive() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void applyknockback( int, vector ) | | void applyknockback( int, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setperk( string ) | | void setperk( string ) | ||
| Gives the player the specified perk< | | {{ScriptUsage | ||
|Summary=Gives the player the specified perk | |||
|Example=<pre>player setperk("specialty_fastladderclimb");</pre> | |||
}} | |||
|- | |- | ||
| bool hasperk( string ) | | bool hasperk( string ) | ||
| Returns true if the player has the specified perk, false otherwise< | | {{ScriptUsage | ||
|Summary=Returns true if the player has the specified perk, false otherwise | |||
|Example=<pre>if (hasperk("specialty_fastladderclimb"))</pre> | |||
}}<br/> | |||
|- | |- | ||
| array getperks() | | array getperks() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearperks() | | void clearperks() | ||
| Removes all perks from the player< | | {{ScriptUsage | ||
|Summary=Removes all perks from the player | |||
|Example=<pre>player clearperks();</pre> | |||
}} | |||
|- | |- | ||
| void unsetperk( string ) | | void unsetperk( string ) | ||
| Removes a specific perk from the player< | | {{ScriptUsage | ||
|Summary=Removes a specific perk from the player | |||
|Example=<pre>player unsetperk("specialty_fastladderclimb");</pre> | |||
}} | |||
|- | |- | ||
| void setrank( int, int ) | | void setrank( int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableinvulnerability() | | void enableinvulnerability() | ||
| Enables god mode/invincibility for the specific player< | | {{ScriptUsage | ||
|Summary=Enables god mode/invincibility for the specific player | |||
|Example=<pre>player enableinvulnerability();</pre> | |||
}} | |||
|- | |- | ||
| void disableinvulnerability() | | void disableinvulnerability() | ||
| Disables god mode/invincibility for the specific player< | | {{ScriptUsage | ||
|Summary=Disables god mode/invincibility for the specific player | |||
|Example=<pre>player disableinvulnerability();</pre> | |||
}} | |||
|- | |- | ||
| void enableafterlife() | | void enableafterlife() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableafterlife() | | void disableafterlife() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool addgoal( vector, float, int, conststring, conststring ) | | bool addgoal( vector, float, int, conststring, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cancelgoal( conststring ) | | void cancelgoal( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool atgoal( conststring ) | | bool atgoal( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool hasgoal( conststring ) | | bool hasgoal( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getgoal( conststring ) | | vector getgoal( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pressusebutton( float ) | | void pressusebutton( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pressattackbutton( int ) | | void pressattackbutton( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pressdtpbutton() | | void pressdtpbutton() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool throwgrenade( string, vector ) | | bool throwgrenade( string, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getlookaheaddist() | | float getlookaheaddist() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getlookaheaddir() | | vector getlookaheaddir() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void lookat( vector ) | | void lookat( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearlookat() | | void clearlookat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowattack( int ) | | void allowattack( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pressads( int ) | | void pressads( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pressmelee() | | void pressmelee() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getthreats( float ) | | array getthreats( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector predictposition( entity, int ) | | vector predictposition( entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool botsighttracepassed( entity, vector ) | | bool botsighttracepassed( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botsetfailsa( pathnode ) | | void botsetfailsa( pathnode ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botsetdefaultclass( int, string ) | | void botsetdefaultclass( int, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botclassadditem( int, string ) | | void botclassadditem( int, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botclasssetweaponoption( int, int, string, int ) | | void botclasssetweaponoption( int, int, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botclassaddattachment( int, string, string, string ) | | void botclassaddattachment( int, string, string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void botleavegame() | | void botleavegame() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int issplitscreen() | | int issplitscreen() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isplayeronsamemachine( entity ) | | int isplayeronsamemachine( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerknockback( int ) | | void playerknockback( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getplayerviewheight() | | float getplayerviewheight() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void ishostforbots() | | void ishostforbots() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void murderline( vector, vector, string ) | | void murderline( vector, vector, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setoffhandvisible( int ) | | void setoffhandvisible( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void fakedamagefrom( vector ) | | void fakedamagefrom( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getsnapshotackindex() | | int getsnapshotackindex() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getleagueteamid() | | string getleagueteamid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Script Entity Methods == | == Script Entity Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%" | Description | |||
|- | |- | ||
| void moveto( vector ) | | void moveto( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void movex( float ) | | void movex( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void movey( float ) | | void movey( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void movez( float ) | | void movez( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void movegravity( vector, float ) | | void movegravity( vector, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void moveslide( vector, float, vector ) | | void moveslide( vector, float, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopmoveslide() | | void stopmoveslide() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void rotateto( vector ) | | void rotateto( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void rotatepitch( float ) | | void rotatepitch( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void rotateyaw( float ) | | void rotateyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void rotateroll( float ) | | void rotateroll( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void devaddpitch( float ) | | void devaddpitch( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void devaddyaw( float ) | | void devaddyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void devaddroll( float ) | | void devaddroll( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void vibrate( vector, float, float, float ) | | void vibrate( vector, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void rotatevelocity( vector ) | | void rotatevelocity( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void solid() | | void solid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void notsolid() | | void notsolid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcandamage( int ) | | void setcandamage( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void physicslaunch( vector, vector ) | | void physicslaunch( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcheapflag( int ) | | void setcheapflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void ignorecheapentityflag( int ) | | void ignorecheapentityflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Script Vehicle Methods == | == Script Vehicle Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void attachpath( entityref ) | | void attachpath( entityref ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string vehgetmodel() | | string vehgetmodel() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getattachpos( entityref ) | | array getattachpos( entityref ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startpath() | | void startpath() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entitynum drivepath( int ) | | entitynum drivepath( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathmove( vector, vector, vector ) | | void pathmove( vector, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathmoveclear() | | void pathmoveclear() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathfixedoffset( vector ) | | void pathfixedoffset( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathfixedoffsetclear() | | void pathfixedoffsetclear() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathvariableoffset( vector, float ) | | void pathvariableoffset( vector, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pathvariableoffsetclear() | | void pathvariableoffsetclear() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getpathfixedoffset() | | vector getpathfixedoffset() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getpathvariableoffset() | | vector getpathvariableoffset() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdrivepathphysicsscale( float ) | | void setdrivepathphysicsscale( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setswitchnode( entityref, entityref ) | | void setswitchnode( entityref, entityref ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspeed( float, float, float ) | | void setspeed( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspeedimmediate( float, float, float ) | | void setspeedimmediate( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getspeed() | | float getspeed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getspeedmph() | | float getspeedmph() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getgoalspeedmph() | | float getgoalspeedmph() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setbrake( float ) | | void setbrake( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getbrake() | | float getbrake() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float gethandbrake() | | float gethandbrake() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getscriptbrake() | | float getscriptbrake() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setacceleration( float ) | | void setacceleration( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdeceleration( float ) | | void setdeceleration( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resumespeed( float ) | | void resumespeed( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setyawspeed( float, float, float, float ) | | void setyawspeed( float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmaxpitchroll( float, float ) | | void setmaxpitchroll( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturningability( float ) | | void setturningability( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setjitterparams( vector, float, float ) | | void setjitterparams( vector, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setairresistance( float ) | | void setairresistance( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getsteering() | | float getsteering() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getthrottle() | | float getthrottle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setphysangles( vector ) | | void setphysangles( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethoverparams( float, float, float ) | | void sethoverparams( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void joltbody( vector, float, float, float ) | | void joltbody( vector, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void freevehicle() | | void freevehicle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getwheelsurface( conststring ) | | string getwheelsurface( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getvehicleowner() | | entity getvehicleowner() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isvehicleusable() | | int isvehicleusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makevehicleusable() | | void makevehicleusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makevehicleunusable() | | void makevehicleunusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void usevehicle( entity, int, int ) | | void usevehicle( entity, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setviewclamp( entity, float, float, float, float ) | | void setviewclamp( entity, float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resetviewclamp( entity, entity ) | | void resetviewclamp( entity, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehiclelookattext( conststring, constistring ) | | void setvehiclelookattext( conststring, constistring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setneargoalnotifydist( float ) | | void setneargoalnotifydist( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool setvehgoalpos( vector, int, int, int ) | | bool setvehgoalpos( vector, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearvehgoalpos() | | void clearvehgoalpos() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplanegoalpos( float, vector ) | | void setplanegoalpos( float, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplanebarrelroll( int, float ) | | void setplanebarrelroll( int, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalyaw( float ) | | void setgoalyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleargoalyaw() | | void cleargoalyaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settargetyaw( float ) | | void settargetyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleartargetyaw() | | void cleartargetyaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlookatent( entity ) | | void setlookatent( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearlookatent() | | void clearlookatent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void takeplayercontrol() | | void takeplayercontrol() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void returnplayercontrol() | | void returnplayercontrol() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturrettargetvec( vector ) | | void setturrettargetvec( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturrettargetent( entity, vector ) | | void setturrettargetent( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearturrettarget() | | void clearturrettarget() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgunnertargetvec( vector, int ) | | void setgunnertargetvec( vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getgunnertargetvec( int ) | | vector getgunnertargetvec( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgunnertargetent( entity, vector, int ) | | void setgunnertargetent( entity, vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleargunnertarget( int ) | | void cleargunnertarget( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgunnerturretontargetrange( int, float ) | | void setgunnerturretontargetrange( int, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getgunnertargetent( int ) | | entity getgunnertargetent( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getgunneranimpitch( int ) | | float getgunneranimpitch( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getgunneranimyaw( int ) | | float getgunneranimyaw( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehweapon( string ) | | void setvehweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity fireweapon( entity, vector ) | | entity fireweapon( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity firegunnerweapon( int, entity ) | | entity firegunnerweapon( int, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopfireweapon() | | void stopfireweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isturretready() | | int isturretready() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehmaxspeed( float ) | | void setvehmaxspeed( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getvehoccupants() | | array getvehoccupants() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getseatoccupant( int ) | | entity getseatoccupant( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getoccupantseat( entity ) | | int getoccupantseat( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setseatoccupied( int, int ) | | void setseatoccupied( int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string seatgetweapon( int ) | | string seatgetweapon( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getseatfiringorigin( int ) | | vector getseatfiringorigin( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getseatfiringangles( int ) | | vector getseatfiringangles( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isgunnerfiring( int ) | | bool isgunnerfiring( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disablegunnerfiring( int, int ) | | void disablegunnerfiring( int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int ) | | entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int ) | | void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isvehicleimmunetodamage( int, string, string ) | | bool isvehicleimmunetodamage( int, string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdefaultpitch( float ) | | void setdefaultpitch( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleardefaultpitch() | | void cleardefaultpitch() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getangularvelocity() | | vector getangularvelocity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setangularvelocity( vector ) | | void setangularvelocity( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehvelocity( vector ) | | void setvehvelocity( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cancelaimove() | | void cancelaimove() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehicletype( string ) | | void setvehicletype( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getphysacceleration() | | vector getphysacceleration() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setphysacceleration( vector ) | | void setphysacceleration( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void drawtrajectory() | | void drawtrajectory() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setrotorspeed( float ) | | void setrotorspeed( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getmaxspeed( int ) | | float getmaxspeed( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmantleena( int ) | | void setmantleena( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehicleavoidance( int, float, int ) | | void setvehicleavoidance( int, float, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getvehicleavoidance() | | int getvehicleavoidance() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool vehcansee( entity, int ) | | bool vehcansee( entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool vehseenrecently( entity, float ) | | bool vehseenrecently( entity, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void vehclearenemy() | | void vehclearenemy() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void vehs( entity, float ) | | void vehs( entity, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void vehclearentitytarget() | | void vehclearentitytarget() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getturretheatvalue( int ) | | float getturretheatvalue( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isvehicleturretoverheating( int ) | | bool isvehicleturretoverheating( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpathtransitiontime( float ) | | void setpathtransitiontime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getvehicleavoidancenodes( float ) | | array getvehicleavoidancenodes( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makesentient() | | void makesentient() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Hud Element Methods == | == Hud Element Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void settext() | | void settext() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearalltextafterhudelem() | | void clearalltextafterhudelem() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setshader( string, int, int ) | | void setshader( string, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settargetent( entity, entity ) | | void settargetent( entity, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleartargetent() | | void cleartargetent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settimer( float ) | | void settimer( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settimerup( float ) | | void settimerup( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settenthstimer( float ) | | void settenthstimer( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settenthstimerup( float ) | | void settenthstimerup( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclock() | | void setclock() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclockup() | | void setclockup() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvalue( float ) | | void setvalue( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setwaypoint( int, string, int, int ) | | void setwaypoint( int, string, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void fadeovertime( float ) | | void fadeovertime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void scaleovertime( float, int, int ) | | void scaleovertime( float, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void moveovertime( float ) | | void moveovertime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void reset() | | void reset() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void destroy() | | void destroy() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpulsefx( int, int, int ) | | void setpulsefx( int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcod7decodefx( int, int, int ) | | void setcod7decodefx( int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setredactfx( int, int, int, int ) | | void setredactfx( int, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settypewriterfx( int, int, int ) | | void settypewriterfx( int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int gettextwidth() | | int gettextwidth() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setperks( entity, entity ) | | void setperks( entity, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayernamestring( entity, entity ) | | void setplayernamestring( entity, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmapnamestring( string ) | | void setmapnamestring( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgametypestring( string ) | | void setgametypestring( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setwargamedata() | | void setwargamedata() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void changefontscaleovertime( float ) | | void changefontscaleovertime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Helicopter Methods == | == Helicopter Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void freehelicopter() | | void freehelicopter() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspeed() | | void setspeed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getspeed() | | float getspeed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getspeedmph() | | float getspeedmph() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resumespeed( float ) | | void resumespeed( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setyawspeed( float, float, float, float ) | | void setyawspeed( float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmaxpitchroll( float, float ) | | void setmaxpitchroll( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturningability( float ) | | void setturningability( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setairresistance( float ) | | void setairresistance( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethoverparams( float, float, float ) | | void sethoverparams( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setneargoalnotifydist( float ) | | void setneargoalnotifydist( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool setvehgoalpos( vector, int, int, int ) | | bool setvehgoalpos( vector, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalyaw( float ) | | void setgoalyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleargoalyaw() | | void cleargoalyaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settargetyaw( float ) | | void settargetyaw( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleartargetyaw() | | void cleartargetyaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlookatent( entity ) | | void setlookatent( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearlookatent() | | void clearlookatent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehweapon( string ) | | void setvehweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity fireweapon( entity, vector ) | | entity fireweapon( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopfireweapon() | | void stopfireweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturrettargetvec( vector ) | | void setturrettargetvec( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturrettargetent( entity, vector ) | | void setturrettargetent( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearturrettarget() | | void clearturrettarget() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdamagestage( int ) | | void setdamagestage( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setheliheightlock( int ) | | void setheliheightlock( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getheliheightlockheight( vector ) | | float getheliheightlockheight( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isinsideheliheightlock() | | int isinsideheliheightlock() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setheightlockoffset() | | void setheightlockoffset() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Actor Methods == | == Actor Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void startcoverarrival() | | void startcoverarrival() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void starttraversearrival() | | void starttraversearrival() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity melee( vector ) | | entity melee( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool reacquirestep( float ) | | bool reacquirestep( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void findreacquirenode() | | void findreacquirenode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| pathnode getreacquirenode() | | pathnode getreacquirenode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool usereacquirenode( pathnode ) | | bool usereacquirenode( pathnode ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void findreacquiredirectpath( int ) | | void findreacquiredirectpath( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool trimpathtoattack() | | bool trimpathtoattack() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool reacquiremove() | | bool reacquiremove() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void findreacquireproximatepath( int ) | | void findreacquireproximatepath( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void flagenemyunattackable() | | void flagenemyunattackable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearpitchorient() | | void clearpitchorient() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpitchorient() | | void setpitchorient() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlookatanimnodes( anim, anim, anim ) | | void setlookatanimnodes( anim, anim, anim ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlookat( vector, float ) | | void setlookat( vector, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlookatyawlimits( float, float, float ) | | void setlookatyawlimits( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoplookat( float ) | | void stoplookat( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool cansee( entity, int ) | | bool cansee( entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool seerecently( entity, float ) | | bool seerecently( entity, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int lastknowntime( entity ) | | int lastknowntime( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector lastknownpos( entity ) | | vector lastknownpos( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int maymovetopoint( vector, int ) | | int maymovetopoint( vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int maymovefrompointtopoint( vector, vector, int ) | | int maymovefrompointtopoint( vector, vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int teleport( vector, vector ) | | int teleport( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float withinapproxpathdist( float ) | | float withinapproxpathdist( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int ispathdirect() | | int ispathdirect() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowedstances( conststring, conststring, conststring ) | | void allowedstances( conststring, conststring, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isstanceallowed( conststring ) | | int isstanceallowed( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void traversemode( conststring ) | | void traversemode( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void animmode( conststring, int ) | | void animmode( conststring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void orientmode( conststring, vector, int ) | | void orientmode( conststring, vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getorientmode( string ) | | conststring getorientmode( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getmotionangle() | | float getmotionangle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool shouldfacemotion() | | bool shouldfacemotion() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearmovehistory() | | void clearmovehistory() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getmovehistoryaverage() | | vector getmovehistoryaverage() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getanglestolikelyenemypath() | | vector getanglestolikelyenemypath() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void lerpposition( vector, vector ) | | void lerpposition( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void predictoriginandangles() | | void predictoriginandangles() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void predictanim() | | void predictanim() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gethitenttype() | | void gethitenttype() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float gethityaw() | | float gethityaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getgroundenttype() | | void getgroundenttype() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isdeflected() | | int isdeflected() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void animcustom( func, func ) | | void animcustom( func, func ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int canattackenemynode() | | int canattackenemynode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getpathlength() | | int getpathlength() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int calcpathlength( vector ) | | int calcpathlength( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| pathnode getnegotiationstartnode() | | pathnode getnegotiationstartnode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| pathnode getnegotiationendnode() | | pathnode getnegotiationendnode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int canseepathgoal() | | int canseepathgoal() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool checkprone( vector, float, int ) | | bool checkprone( vector, float, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void pushplayer( int ) | | void pushplayer( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalnode( pathnode ) | | void setgoalnode( pathnode ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalpos( vector, vector ) | | void setgoalpos( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalentity( entity ) | | void setgoalentity( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalvolume( entity ) | | void setgoalvolume( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgoalvolumeauto( entity ) | | void setgoalvolumeauto( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getgoalvolume() | | entity getgoalvolume() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleargoalvolume() | | void cleargoalvolume() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setfixednodesafevolume( entity ) | | void setfixednodesafevolume( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getfixednodesafevolume() | | entity getfixednodesafevolume() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearfixednodesafevolume() | | void clearfixednodesafevolume() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isingoal( vector ) | | bool isingoal( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setruntopos( vector ) | | void setruntopos( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearruntopos() | | void clearruntopos() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool nearnode( pathnode ) | | bool nearnode( pathnode ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool nearclaimnode() | | bool nearclaimnode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool nearclaimnodeandangle() | | bool nearclaimnodeandangle() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool atdangerousnode() | | bool atdangerousnode() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getenemyinfo( entity ) | | void getenemyinfo( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearenemy() | | void clearenemy() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentitytarget( entity, float ) | | void setentitytarget( entity, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearentitytarget() | | void clearentitytarget() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpotentialthreat( float ) | | void setpotentialthreat( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearpotentialthreat() | | void clearpotentialthreat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getperfectinfo( entity ) | | void getperfectinfo( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setflashbangimmunity( int ) | | void setflashbangimmunity( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setflashbanged( int ) | | void setflashbanged( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getflashbangedstrength() | | float getflashbangedstrength() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isknownenemyinradius( vector, float ) | | int isknownenemyinradius( vector, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isknownenemyinvolume( entity ) | | int isknownenemyinvolume( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settalktospecies( conststring ) | | void settalktospecies( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowpitchangle( int ) | | void allowpitchangle( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void knockback( int ) | | void knockback( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getdeltaturnyaw() | | float getdeltaturnyaw() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int ) | | entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array calclookaheadpos( vector, int ) | | array calclookaheadpos( vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setengagementmindist() | | void setengagementmindist() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setengagementmaxdist() | | void setengagementmaxdist() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isinscriptedstate() | | bool isinscriptedstate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity meleewithoffset( vector ) | | entity meleewithoffset( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int forceteleport( vector, vector ) | | int forceteleport( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentityowner( entity ) | | void setentityowner( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearentityowner() | | void clearentityowner() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setanimstate( conststring, int ) | | void setanimstate( conststring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setaimanimweights( float, float ) | | void setaimanimweights( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startscriptedanim() | | void startscriptedanim() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void popaistate() | | void popaistate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int setanimstatefromasd( conststring, conststring, int ) | | int setanimstatefromasd( conststring, conststring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool hasanimstatefromasd( conststring ) | | bool hasanimstatefromasd( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getanimstatefromasd() | | conststring getanimstatefromasd() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getanimsubstatefromasd( conststring, conststring ) | | int getanimsubstatefromasd( conststring, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getanimsubstatecountfromasd( conststring ) | | int getanimsubstatecountfromasd( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| anim getanimfromasd( conststring, animsindex, animsindex, int ) | | anim getanimfromasd( conststring, animsindex, animsindex, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getanimlengthfromasd( conststring, int ) | | float getanimlengthfromasd( conststring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool getanimhasnotetrackfromasd( conststring, int, conststring ) | | bool getanimhasnotetrackfromasd( conststring, int, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setfreecameralockonallowed( int ) | | void setfreecameralockonallowed( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Builtin Common Methods == | == Builtin Common Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void forceyellowdot( int ) | | void forceyellowdot( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableyellowdot( int ) | | void disableyellowdot( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowcamerarotation( int ) | | void allowcamerarotation( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool reloadonnunchuk() | | bool reloadonnunchuk() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool reloadonwiiumote() | | bool reloadonwiiumote() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void attach( string, constlowercasestring, int ) | | void attach( string, constlowercasestring, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void detach( string, constlowercasestring ) | | void detach( string, constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void detachall() | | void detachall() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getattachsize() | | int getattachsize() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getattachmodelname( int ) | | conststring getattachmodelname( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getattachtagname( int ) | | conststring getattachtagname( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool getattachignorecollision( int ) | | bool getattachignorecollision( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void hidepart( constlowercasestring, string ) | | void hidepart( constlowercasestring, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void runscriptonent() | | void runscriptonent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sendaiscriptvals( string, string ) | | void sendaiscriptvals( string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void showpart( constlowercasestring, string ) | | void showpart( constlowercasestring, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void showallparts() | | void showallparts() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundtoplayer( string ) | | void playsoundtoplayer( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getlightcolor() | | vector getlightcolor() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlightcolor( vector ) | | void setlightcolor( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getlightintensity() | | float getlightintensity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlightintensity( float ) | | void setlightintensity( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getlightradius() | | float getlightradius() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlightradius( float ) | | void setlightradius( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getlightfovinner() | | float getlightfovinner() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getlightfovouter() | | float getlightfovouter() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlightfovrange( float, float ) | | void setlightfovrange( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getlightexponent() | | int getlightexponent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setlightexponent( int ) | | void setlightexponent( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool areallmissionsatscore( int ) | | bool areallmissionsatscore( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void isstartingclassdefault() | | void isstartingclassdefault() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void isstartingclasseraappropriate() | | void isstartingclasseraappropriate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getnumchallengescomplete( string ) | | int getnumchallengescomplete( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool hascompletedallgamechallenges() | | bool hascompletedallgamechallenges() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void hasallintel() | | void hasallintel() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getdstat() | | string getdstat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getdstatarraycount() | | int getdstatarraycount() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdstat( string, string, int, int, float, float ) | | void setdstat( string, string, int, int, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void adddstat() | | void adddstat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addweaponstat( string, int, int ) | | void addweaponstat( string, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addbonuscardstat( int, string, int ) | | void addbonuscardstat( int, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getsessstat() | | void getsessstat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getsessstatarraycount() | | void getsessstatarraycount() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setsessstat() | | void setsessstat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addsessstat() | | void addsessstat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addplayerstat( string ) | | void addplayerstat( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addplayerstatwithgametype() | | void addplayerstatwithgametype() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addgametypestat() | | void addgametypestat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void trackweaponfirenative( string, int, int, int ) | | void trackweaponfirenative( string, int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void updatestatratio( string, string, string ) | | void updatestatratio( string, string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int addrankxp( string, int ) | | int addrankxp( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void addrankxpvalue( string ) | | void addrankxpvalue( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool hasseasonpass() | | bool hasseasonpass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setempjammed( int ) | | void setempjammed( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isempjammed() | | bool isempjammed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspawnerteam( team ) | | void setspawnerteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void luinotifyevent() | | void luinotifyevent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void launch( vector, vector ) | | void launch( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmovingplatformenabled( int ) | | void setmovingplatformenabled( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool ismovingplatform() | | bool ismovingplatform() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setviewmodelrenderflag( int ) | | void setviewmodelrenderflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdrawinfrared( int ) | | void setdrawinfrared( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setgpr() | | void setgpr() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gamehistorystartmatch( int ) | | void gamehistorystartmatch( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gamehistoryfinishmatch( int, int, int, int, int, float ) | | void gamehistoryfinishmatch( int, int, int, int, int, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void unlink() | | void unlink() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void linkto() | | void linkto() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void linktoblendtotag() | | void linktoblendtotag() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enablelinkto() | | void enablelinkto() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void linktoupdateoffset( vector, vector ) | | void linktoupdateoffset( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinkto() | | void playerlinkto() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float ) | | void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinktodelta() | | void playerlinktodelta() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinkweaponviewtodelta() | | void playerlinkweaponviewtodelta() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinktoabsolute( entity, constlowercasestring ) | | void playerlinktoabsolute( entity, constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playercamlinkto( entity, string ) | | void playercamlinkto( entity, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playercamunlink() | | void playercamunlink() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void lerpviewangleclamp( float, float, float, float, float, float, float ) | | void lerpviewangleclamp( float, float, float, float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setviewangleresistance() | | void setviewangleresistance() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinkedoffsetenable() | | void playerlinkedoffsetenable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinkedoffsetdisable() | | void playerlinkedoffsetdisable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playerlinkedsetusebaseangleforviewclamp( int ) | | void playerlinkedsetusebaseangleforviewclamp( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dontinterpolate() | | void dontinterpolate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity magicgrenadetype( string, vector, vector, float ) | | entity magicgrenadetype( string, vector, vector, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startfadingblur( float, float ) | | void startfadingblur( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector localtoworldcoords( vector ) | | vector localtoworldcoords( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector worldtolocalcoords( vector ) | | vector worldtolocalcoords( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretspinning( int ) | | void setturretspinning( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void attachshieldmodel() | | void attachshieldmodel() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void detachshieldmodel() | | void detachshieldmodel() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setscriptmoverflag( int ) | | void setscriptmoverflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void refreshshieldattachment() | | void refreshshieldattachment() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcharacterindex( int ) | | void setcharacterindex( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void useplayerfootsteptable() | | void useplayerfootsteptable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvisionsetforplayer( string, float ) | | void setvisionsetforplayer( string, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void useservervisionset( int ) | | void useservervisionset( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setinfraredvision( int ) | | void setinfraredvision( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getcontrollertype() | | string getcontrollertype() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setactorweapon( string, int ) | | void setactorweapon( string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resetfov() | | void resetfov() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
== Builtin Methods == | == Builtin Methods == | ||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
|- | |- | ||
! | ! style="width:40%" | Prototype | ||
! style="width:60%"| Description | |||
|- | |- | ||
| void setstowedweapon( string ) | | void setstowedweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getstowedweapon() | | string getstowedweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearstowedweapon() | | void clearstowedweapon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getammocount( string ) | | int getammocount( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvisibletoplayer( entity ) | | void setvisibletoplayer( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setinvisibletoplayer( entity, int ) | | void setinvisibletoplayer( entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvisibletoall() | | void setvisibletoall() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setinvisibletoall() | | void setinvisibletoall() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvisibletoteam( team ) | | void setvisibletoteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvisibletoallexceptteam( team ) | | void setvisibletoallexceptteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setforcenocull() | | void setforcenocull() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void removeforcenocull() | | void removeforcenocull() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int islinkedto( entity ) | | int islinkedto( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowtacticalinsertion( int ) | | void allowtacticalinsertion( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void allowbottargetting( int ) | | void allowbottargetting( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getlinkedent() | | entity getlinkedent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getorigin() | | vector getorigin() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getangles() | | vector getangles() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getmins() | | vector getmins() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getmaxs() | | vector getmaxs() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getabsmins() | | vector getabsmins() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getabsmaxs() | | vector getabsmaxs() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getpointinbounds( float, float, float ) | | vector getpointinbounds( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector geteye() | | vector geteye() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector geteyeapprox() | | vector geteyeapprox() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity useby( entity ) | | entity useby( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setstablemissile( int ) | | void setstablemissile( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int istouching( entity, vector ) | | int istouching( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int istouchingswept( entity, float, float ) | | int istouchingswept( entity, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int istouchingvolume( vector, vector, vector ) | | int istouchingvolume( vector, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsound( string ) | | void playsound( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundwithnotify( string, conststring ) | | void playsoundwithnotify( string, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundontag( string, string ) | | void playsoundontag( string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundasmaster( string ) | | void playsoundasmaster( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundtoteam( string, entity ) | | void playsoundtoteam( string, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playbattlechattertoteam( string, string, team, entity ) | | void playbattlechattertoteam( string, string, team, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playsoundtoplayer( string ) | | void playsoundtoplayer( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playloopsound( string, float ) | | void playloopsound( string, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoploopsound( float ) | | void stoploopsound( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopsounds() | | void stopsounds() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playrumbleonentity() | | void playrumbleonentity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void playrumblelooponentity() | | void playrumblelooponentity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoprumble( string ) | | void stoprumble( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void delete() | | void delete() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmodel( string ) | | void setmodel( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setzombieshrink( int ) | | void setzombieshrink( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setenemymodel( string ) | | void setenemymodel( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void dodamage( float, vector, entity, entity ) | | void dodamage( float, vector, entity, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getnormalhealth() | | float getnormalhealth() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setnormalhealth( float ) | | void setnormalhealth( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmaxhealth( int ) | | void setmaxhealth( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void show() | | void show() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void hide() | | void hide() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void ghost() | | void ghost() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void ghostindemo() | | void ghostindemo() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void showindemo() | | void showindemo() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void laseron() | | void laseron() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void laseroff() | | void laseroff() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void showtoplayer( entity ) | | void showtoplayer( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int setcontents( int ) | | int setcontents( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startfiring() | | void startfiring() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopfiring() | | void stopfiring() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void shootturret() | | void shootturret() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopshootturret() | | void stopshootturret() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmode( conststring ) | | void setmode( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getturretowner() | | entity getturretowner() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settargetentity( entity ) | | void settargetentity( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getturretarclimits() | | array getturretarclimits() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayerspread( float ) | | void setplayerspread( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setaispread( float ) | | void setaispread( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setconvergencetime( float ) | | void setconvergencetime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setsuppressiontime( float ) | | void setsuppressiontime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void cleartargetentity() | | void cleartargetentity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretteam( team ) | | void setturretteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void maketurretusable() | | void maketurretusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void maketurretunusable() | | void maketurretunusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretaccuracy() | | void setturretaccuracy() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretignoregoals( int ) | | void setturretignoregoals( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getturrettarget() | | entity getturrettarget() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disconnectpaths() | | void disconnectpaths() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void connectpaths() | | void connectpaths() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getstance() | | conststring getstance() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setstance( conststring ) | | void setstance( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcursorhint( string, entity ) | | void setcursorhint( string, entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setrevivehintstring( string, team ) | | void setrevivehintstring( string, team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethintstringforperk( string, string ) | | void sethintstringforperk( string, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethintstring( string ) | | void sethintstring( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setfovforkillcam( int ) | | void setfovforkillcam( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sethintlowpriority( int ) | | void sethintlowpriority( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void usetriggerrequirelookat() | | void usetriggerrequirelookat() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void triggerignoreteam() | | void triggerignoreteam() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void shellshock( string, float, int ) | | void shellshock( string, float, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getweaponforwarddir() | | vector getweaponforwarddir() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getweaponmuzzlepoint() | | vector getweaponmuzzlepoint() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector gettagorigin( constlowercasestring ) | | vector gettagorigin( constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector gettagangles( constlowercasestring ) | | vector gettagangles( constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getentnum() | | void getentnum() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopshellshock() | | void stopshellshock() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdepthoffield( float, float, float, float, float, float ) | | void setdepthoffield( float, float, float, float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setburn( float ) | | void setburn( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setelectrified( float ) | | void setelectrified( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void spawnnapalmgroundflame( vector, string, vector, int ) | | void spawnnapalmgroundflame( vector, string, vector, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void needsrevive( int ) | | void needsrevive( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isinsecondchance() | | bool isinsecondchance() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float depthinwater() | | float depthinwater() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void shootup( float ) | | void shootup( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int depthofplayerinwater() | | int depthofplayerinwater() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void useweaponhidetags( string ) | | void useweaponhidetags( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void useweaponmodel( string, string, int ) | | void useweaponmodel( string, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void starttanning() | | void starttanning() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopburning() | | void stopburning() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setwaterdrops( int ) | | void setwaterdrops( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void restoredefaultdroppitch() | | void restoredefaultdroppitch() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isfiringturret() | | bool isfiringturret() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isturretlockedon() | | bool isturretlockedon() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setviewmodeldepthoffield( float, float ) | | void setviewmodeldepthoffield( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void viewkick( float, vector ) | | void viewkick( float, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector localtoworldcoords( vector ) | | vector localtoworldcoords( vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setrightarc( float ) | | void setrightarc( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setleftarc( float ) | | void setleftarc( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void settoparc( float ) | | void settoparc( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setbottomarc( float ) | | void setbottomarc( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void radiusdamage() | | void radiusdamage() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void detonate( entity ) | | void detonate( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void damageconetrace() | | void damageconetrace() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sightconetrace() | | void sightconetrace() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int heliturretsighttrace( vector, entity, int ) | | int heliturretsighttrace( vector, entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int heliturretdogtrace( vector, entity, int ) | | int heliturretdogtrace( vector, entity, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int playersighttrace( vector, int, int ) | | int playersighttrace( vector, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void visionsetlerpratio( float ) | | void visionsetlerpratio( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float docowardswayanims() | | float docowardswayanims() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startpoisoning() | | void startpoisoning() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stoppoisoning() | | void stoppoisoning() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startbinocs() | | void startbinocs() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopbinocs() | | void stopbinocs() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isflared() | | bool isflared() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool ispoisoned() | | bool ispoisoned() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setcameraspikeactive( int ) | | void setcameraspikeactive( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isinsideheightlock() | | int isinsideheightlock() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int ismissileinsideheightlock() | | int ismissileinsideheightlock() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isonground( int ) | | int isonground( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getgroundent() | | entity getgroundent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity getmoverent() | | entity getmoverent() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int issprinting() | | int issprinting() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setanim() | | void setanim() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void useanimtree( animtree ) | | void useanimtree( animtree ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void animscripted() | | void animscripted() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void animscriptedskiprestart() | | void animscriptedskiprestart() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void animrelative() | | void animrelative() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopanimscripted() | | void stopanimscripted() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearanim( anim, float ) | | void clearanim( anim, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentityanimrate( float ) | | void setentityanimrate( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getentityanimrate() | | float getentityanimrate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getcentroid() | | vector getcentroid() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool ismartyrdomgrenade() | | bool ismartyrdomgrenade() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getentitynumber() | | int getentitynumber() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getentitytype() | | int getentitytype() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enablegrenadetouchdamage() | | void enablegrenadetouchdamage() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disablegrenadetouchdamage() | | void disablegrenadetouchdamage() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void enableaimassist() | | void enableaimassist() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void disableaimassist() | | void disableaimassist() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void placespawnpoint() | | void placespawnpoint() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setspawnclientflag( string ) | | void setspawnclientflag( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void directionalhitindicator( int, int ) | | void directionalhitindicator( int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sendkillstreakdamageevent( int ) | | void sendkillstreakdamageevent( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayergravity( int ) | | void setplayergravity( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearplayergravity() | | void clearplayergravity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void sendfaceevent( conststring ) | | void sendfaceevent( conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setteamfortrigger( team ) | | void setteamfortrigger( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setexcludeteamfortrigger( team ) | | void setexcludeteamfortrigger( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setperkfortrigger( string ) | | void setperkfortrigger( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setignoreentfortrigger( entity ) | | void setignoreentfortrigger( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clientclaimtrigger( entity ) | | void clientclaimtrigger( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clientreleasetrigger( entity ) | | void clientreleasetrigger( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void releaseclaimedtrigger() | | void releaseclaimedtrigger() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isitemlocked( int ) | | int isitemlocked( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isitempurchased( int ) | | int isitempurchased( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void uploadleaderboards() | | void uploadleaderboards() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setnemesisxuid( string ) | | void setnemesisxuid( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getloadoutitem() | | int getloadoutitem() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isbonuscardactive( int, int ) | | int isbonuscardactive( int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getloadoutitemref() | | string getloadoutitemref() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getloadoutweapon( int, string ) | | string getloadoutweapon( int, string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getloadoutperks( int ) | | array getloadoutperks( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getloadoutallocation( int ) | | int getloadoutallocation( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmovespeedscale( float ) | | void setmovespeedscale( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getmovespeedscale() | | float getmovespeedscale() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void logstring() | | void logstring() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void missile_settarget( entity, vector ) | | void missile_settarget( entity, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void missile_dronesetvisible( int ) | | void missile_dronesetvisible( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isonladder() | | bool isonladder() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool ismantling() | | bool ismantling() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isonslide() | | bool isonslide() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startdoorbreach() | | void startdoorbreach() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void stopdoorbreach() | | void stopdoorbreach() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void startragdoll( int ) | | void startragdoll( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int isragdoll() | | int isragdoll() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void launchragdoll( vector, constlowercasestring ) | | void launchragdoll( vector, constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void launchvehicle( vector, vector ) | | void launchvehicle( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setblur( float, float ) | | void setblur( float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resetmissiledetonationtime( float ) | | void resetmissiledetonationtime( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void giveachievement() | | void giveachievement() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setzombiename( string ) | | void setzombiename( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentgravitytrajectory( int ) | | void setentgravitytrajectory( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setvehicleteam( team ) | | void setvehicleteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setteam( team ) | | void setteam( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| team getteam() | | team getteam() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setowner( entity ) | | void setowner( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmissileowner( entity ) | | void setmissileowner( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setentityweapon( string ) | | void setentityweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretowner( entity ) | | void setturretowner( entity ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturrettype( string ) | | void setturrettype( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| anim getcorpseanim( animsindex ) | | anim getcorpseanim( animsindex ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void itemweaponsetammo( int, int, int ) | | void itemweaponsetammo( int, int, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretcarried( int ) | | void setturretcarried( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setturretminimapvisible( int ) | | void setturretminimapvisible( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmissilecoasting( int ) | | void setmissilecoasting( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setweapon( string ) | | void setweapon( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void gib( conststring, object ) | | void gib( conststring, object ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setphysparams( float, float, float ) | | void setphysparams( float, float, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayercollision( int ) | | void setplayercollision( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void reportuser( string ) | | void reportuser( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayercurrentobjective() | | void setplayercurrentobjective() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setplayercurrentstreak( int ) | | void setplayercurrentstreak( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getvelocity() | | vector getvelocity() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity spawnactor( int, conststring ) | | entity spawnactor( int, conststring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector getshootatpos() | | vector getshootatpos() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void predictspawnpoint( vector, vector ) | | void predictspawnpoint( vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdefaultdroppitch( float ) | | void setdefaultdroppitch( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setscanningpitch( float ) | | void setscanningpitch( float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity launchbomb( string, vector, vector ) | | entity launchbomb( string, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| entity magicgrenade( string, vector, vector ) | | entity magicgrenade( string, vector, vector ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makegrenadedud() | | void makegrenadedud() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setclientflag( int ) | | void setclientflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getclientflag( int ) | | int getclientflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void clearclientflag( int ) | | void clearclientflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setscriptmoverflag( int ) | | void setscriptmoverflag( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setmovingplatformenabled() | | void setmovingplatformenabled() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void fakefire( entity, vector, string, int ) | | void fakefire( entity, vector, string, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makeusable( team ) | | void makeusable( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void makeunusable() | | void makeunusable() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| vector predictgrenade() | | vector predictgrenade() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setdangerous( team, int ) | | void setdangerous( team, int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isdangerous( team ) | | bool isdangerous( team ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getindexforactivecontract() | | void getindexforactivecontract() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getactivecontractprogress() | | void getactivecontractprogress() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void incrementactivecontractprogress() | | void incrementactivecontractprogress() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void incrementactivecontracttime() | | void incrementactivecontracttime() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void isactivecontractcomplete() | | void isactivecontractcomplete() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void hasactivecontractexpired() | | void hasactivecontractexpired() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getactivecontracttimepassed() | | void getactivecontracttimepassed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void resetactivecontractprogress() | | void resetactivecontractprogress() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getpregameclass() | | void getpregameclass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void getpregameteam() | | void getpregameteam() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpregameclass() | | void setpregameclass() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setpregameteam() | | void setpregameteam() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void recordleaguepreloser() | | void recordleaguepreloser() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void luinotifyeventtospectators() | | void luinotifyeventtospectators() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool istestclient() | | bool istestclient() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setworldfogactivebank( int ) | | void setworldfogactivebank( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool iszbarrier() | | bool iszbarrier() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getnumzbarrierpieces() | | int getnumzbarrierpieces() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getzbarrierpiecestate( int ) | | conststring getzbarrierpiecestate( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setzbarrierpiecestate( int, constlowercasestring, float ) | | void setzbarrierpiecestate( int, constlowercasestring, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool iszbarrieropen() | | bool iszbarrieropen() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool iszbarrierclosed() | | bool iszbarrierclosed() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void hidezbarrierpiece( int ) | | void hidezbarrierpiece( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void showzbarrierpiece( int ) | | void showzbarrierpiece( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void zbarrierpieceusedefaultmodel( int ) | | void zbarrierpieceusedefaultmodel( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void zbarrierpieceusealternatemodel( int ) | | void zbarrierpieceusealternatemodel( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void zbarrierpieceuseupgradedmodel( int ) | | void zbarrierpieceuseupgradedmodel( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void zbarrierpieceuseboxriselogic( int ) | | void zbarrierpieceuseboxriselogic( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getupgradedpiecenumlives( int ) | | int getupgradedpiecenumlives( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| array getzbarrierpieceindicesinstate( constlowercasestring ) | | array getzbarrierpieceindicesinstate( constlowercasestring ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float ) | | float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getzbarrierpieceanimstate( int ) | | conststring getzbarrierpieceanimstate( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getzbarrierpieceanimsubstate( int ) | | conststring getzbarrierpieceanimsubstate( int ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int zbarriersupportszombietaunts() | | int zbarriersupportszombietaunts() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int zbarriersupportszombiereachthroughattacks() | | int zbarriersupportszombiereachthroughattacks() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getzbarriertauntanimstate() | | conststring getzbarriertauntanimstate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| conststring getzbarrierreachthroughattackanimstate() | | conststring getzbarrierreachthroughattackanimstate() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| int getzbarriernumattackslots() | | int getzbarriernumattackslots() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| float getzbarrierattackslothorzoffset() | | float getzbarrierattackslothorzoffset() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setzbarriercolmodel( string ) | | void setzbarriercolmodel( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| string getweaponoptic( string ) | | string getweaponoptic( string ) | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| void setaltusetrigger() | | void setaltusetrigger() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
| bool isaltusetrigger() | | bool isaltusetrigger() | ||
| | | {{ScriptUsage | ||
|Summary= | |||
|Example=<pre></pre> | |||
}} | |||
|- | |- | ||
|} | |} | ||
Revision as of 20:06, 19 October 2015
Player Methods
| Prototype | Description |
|---|---|
| void giveweapon( string, int, int ) | Summary: Gives a weapon to the specified client with an optional argument for camo and attachments. A full list containing all the weapon names can be found here http://pastebin.com/wEq07Yzw player giveweapon("mp7_mp", 255, 0);
|
| void updateweaponoptions( string, int ) | Summary:
|
| void setblockweaponpickup( string, int ) | Summary:
|
| int calcweaponoptions( int, int, int, int, int ) | Summary:
|
| int calcplayeroptions( int ) | Summary:
|
| void setplayerrenderoptions( int ) | Summary:
|
| void nextplayerrenderoption( string ) | Summary:
|
| void bbclasschoice( int, string, string ) | Summary:
|
| void sethighlighted() | Summary:
|
| void takeweapon( string ) | Summary: Removes the first occurrence of the specified weapon from a client. player takeweapon("mp7_mp");
|
| bool isthrowinggrenade() | Summary: Returns true if the specified client is throwing a grenade. if (player isthrowinggrenade()) |
| void forcegrenadethrow() | Summary: Forces the specified client to throw a grenade. player forcegrenadethrow(); |
| bool isfiring() | Summary: Returns true if the specified client is shooting. if (player isfiring()) |
| bool ismeleeing() | Summary: Returns true if the specified client is meleeing. if (player ismeleeing()) |
| bool isswitchingweapons() | Summary: Returns true if the specified client is switching weapons. if (player isswitchingweapons()) |
| bool isreloading() | Summary: Returns true if the specified client is reloading. if (player isreloading()) |
| void takeallweapons() | Summary: Removes all weapons from the specified client including the default melee knife. player takeallweapons(); |
| bool isinmovemode() | Summary:
|
| string getcurrentweapon() | Summary: Returns the specified clients currently held weapon. currentWeapon = player getcurrentweapon(); |
| float getcurrentweaponspinlerp() | Summary:
|
| void setcurrentweaponspinlerp( float ) | Summary:
|
| string getcurrentweaponaltweapon() | Summary:
|
| int isweaponoverheating( int ) | Summary: Returns 1 if the specified client's slot index is overheating. if (player isweaponoverheating(0)) |
| void setweaponoverheating( int, float ) | Summary: Sets the specified clients slot index overheat to a percentage. player setweaponoverheating(0, 99); |
| string getcurrentoffhand() | Summary: Returns the current lethal/tactical or equipment. offhandWeapon = player getcurrentoffhand(); |
| bool isusingoffhand() | Summary: Returns true if the specified client is using their offhand weapon. if (player isusingoffhand()) |
| void forceoffhandend() | Summary: Forces the specified client to use their offhand weapon. player forceoffhandend() |
| bool hasweapon( string ) | Summary: Returns true if the specified client has the specified weapon. if (player hasweapon("mp7_mp"))
|
| void switchtoweapon() | Summary: Forces the specified weapon to switch to the specified weapon. player switchtoweapon("mp7_mp");
|
| void switchtoweaponimmediate() | Summary:
|
| bool switchtooffhand( string ) | Summary:
|
| void weaponplayejectbrass() | Summary:
|
| int getlockonradius() | Summary:
|
| int getlockonspeed() | Summary:
|
| void givestartammo( string ) | Summary: Sets the specified clients' specified weapon to the starting ammunition amount. player givestartammo("mp7_mp");
|
| void givemaxammo( string ) | Summary: Gives the specified clients' specified weapon maximum ammunition. player givemaxammo("mp7_mp");
|
| float getfractionstartammo( string ) | Summary: Returns a float of the specified weapons starting ammunition. fractionStartAmmo = player getfractionstartammo("mp7_mp");
|
| float getfractionmaxammo( string ) | Summary: Returns a float of the specified weapons maximum ammunition. fractionMaxAmmo = player getfractionmaxammo("mp7_mp");
|
| void setweaponheatpercent( string, float ) | Summary:
|
| void setorigin( vector ) | Summary:
|
| void setvelocity( vector ) | Summary:
|
| void setplayerangles( vector ) | Summary:
|
| vector getplayerangles() | Summary:
|
| vector getgunangles() | Summary:
|
| vector getplayercamerapos() | Summary:
|
| void cameraactivate( int ) | Summary:
|
| void camerasetposition( vector, vector ) | Summary:
|
| void camerasetlookat( entity, vector ) | Summary:
|
| void gamepadusedlast() | Summary:
|
| int usebuttonpressed() | Summary: Returns 1 if the use button is pressed otherwise 0. if (player usebuttonpressed()) |
| int changeseatbuttonpressed() | Summary:
|
| int attackbuttonpressed() | Summary: Returns 1 if the shooting button is pressed otherwise 0. if (player attackbuttonpressed()) |
| int actionslotonebuttonpressed() | Summary:
|
| int actionslottwobuttonpressed() | Summary:
|
| int actionslotthreebuttonpressed() | Summary:
|
| int actionslotfourbuttonpressed() | Summary:
|
| int adsbuttonpressed() | Summary: Returns 1 if the aiming down the sights button is pressed otherwise 0. if (player adsbuttonpressed()) |
| int throwbuttonpressed() | Summary:
|
| int meleebuttonpressed() | Summary: Returns 1 if the melee button is pressed otherwise 0. if (player meleebuttonpressed()) |
| int jumpbuttonpressed() | Summary: Returns 1 if the jumping button is pressed otherwise 0 if (player jumpbuttonpressed()) |
| int stancebuttonpressed() | Summary:
|
| int fragbuttonpressed() | Summary: Returns 1 if the lethal grenade button is pressed otherwise 0. if (player fragbuttonpressed()) |
| int secondaryoffhandbuttonpressed() | Summary:
|
| int inventorybuttonpressed() | Summary:
|
| int sprintbuttonpressed() | Summary:
|
| void sprintuprequired() | Summary:
|
| float playerads() | Summary:
|
| void pingplayer() | Summary:
|
| void setviewmodel( string ) | Summary:
|
| conststring getviewmodel() | Summary:
|
| void setoffhandsecondaryclass( string ) | Summary:
|
| conststring getoffhandsecondaryclass() | Summary:
|
| string setoffhandprimaryclass( string ) | Summary:
|
| void beginlocationselection() | Summary:
|
| void beginlocationairstrikeselection() | Summary:
|
| void beginlocationmortarselection() | Summary:
|
| void beginlocationartilleryselection() | Summary:
|
| void beginlocationcomlinkselection() | Summary:
|
| void beginlocationnapalmselection() | Summary:
|
| void endlocationselection() | Summary:
|
| void clientsyssetstate( int, string ) | Summary:
|
| void weaponlockstart( entity ) | Summary:
|
| void weaponlockfinalize( entity ) | Summary:
|
| void weaponlockfree() | Summary:
|
| void weaponlocktargettooclose( int ) | Summary:
|
| void weaponlocknoclearance( int ) | Summary:
|
| void buttonpressed() | Summary:
|
| void giveweaponnextattachment() | Summary:
|
| void givenextbaseweapon() | Summary:
|
| void getnormalizedmovement() | Summary:
|
| void getnormalizedcameramovement() | Summary:
|
| void sayall() | Summary:
|
| void sayteam() | Summary:
|
| void setspawnweapon( string ) | Summary:
|
| void initialweaponraise( string ) | Summary:
|
| void seteverhadweaponall( int ) | Summary:
|
| void dropitem( string, constlowercasestring ) | Summary:
|
| void dropscavengeritem( string ) | Summary:
|
| int hasagrenadepulledback() | Summary:
|
| bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int ) | Summary:
|
| void finishmeleehit( entity, string, vector, vector, int, int, int ) | Summary:
|
| void reviveplayer() | Summary:
|
| void undolaststand() | Summary:
|
| void suicide() | Summary: Kills the specified player. player suicide(); |
| void turnedhuman() | Summary:
|
| bool isinvehicle() | Summary:
|
| bool isremotecontrolling() | Summary:
|
| bool isweaponviewonlylinked() | Summary:
|
| int allowstand( int ) | Summary:
|
| int allowcrouch( int ) | Summary:
|
| int allowprone( int ) | Summary:
|
| int allowlean( int ) | Summary:
|
| entity getvehicleoccupied() | Summary:
|
| array getfriendlies( int ) | Summary:
|
| array getenemies( int ) | Summary:
|
| int openmenu( string ) | Summary:
|
| int openmenunomouse( string ) | Summary:
|
| void closemenu() | Summary:
|
| void closeingamemenu() | Summary:
|
| void freezecontrols( int ) | Summary: Freezes/unfreezes the controls of the specified player player freezecontrols(1); |
| void freezecontrolsallowlook( int ) | Summary:
|
| int arecontrolsfrozen() | Summary:
|
| void disableusability() | Summary:
|
| void enableusability() | Summary:
|
| void disableweapons() | Summary:
|
| void enableweapons() | Summary:
|
| void disabledeathstreak() | Summary:
|
| void enabledeathstreak() | Summary:
|
| int deathstreakactive() | Summary:
|
| void disableoffhandweapons() | Summary:
|
| void enableoffhandweapons() | Summary:
|
| void disableweaponcycling() | Summary:
|
| void enableweaponcycling() | Summary:
|
| void revive() | Summary:
|
| void setlaststandprevweap( string ) | Summary:
|
| void setreverb() | Summary:
|
| void deactivatereverb() | Summary:
|
| void setchannelvolumes() | Summary:
|
| void deactivatechannelvolumes() | Summary:
|
| int setweaponammoclip( string, int ) | Summary:
|
| void setweaponammostock( string, int ) | Summary:
|
| int getweaponammoclip( string ) | Summary:
|
| int getweaponammostock( string ) | Summary:
|
| int anyammoforweaponmodes( string ) | Summary:
|
| void iprintln() | Summary: Prints text for the specified player only in the killfeed. player iprintln("Hello, World!");
|
| void iprintlnbold() | Summary: Prints text for the specified player only in the middle of the screen. player iprintlnBold("Hello, World!");
|
| void spawn( vector, vector ) | Summary:
|
| void setentertime( int ) | Summary:
|
| void cloneplayer( int ) | Summary: Creates a clone of the specified player at current position player cloneplayer(); |
| void setclientfov() | Summary:
|
| void setclientthirdperson( int ) | Summary:
|
| void setclientthirdpersonangle() | Summary:
|
| void setclientcompass() | Summary:
|
| void setclientscriptmainmenu() | Summary:
|
| void setclientcgobjectivetext() | Summary:
|
| void setclientplayersprinttime() | Summary:
|
| void setclientnumlives() | Summary:
|
| void setclientdrawtalk() | Summary:
|
| void setclientammocounterhide() | Summary:
|
| void setclientminiscoreboardhide() | Summary:
|
| void setclienthudhardcore() | Summary:
|
| void setclientplayerpushamount() | Summary:
|
| void setclientaimlockonpitchstrength() | Summary:
|
| void setclientuivisibilityflag( string, int ) | Summary:
|
| void setclientprofilevar( string, string ) | Summary:
|
| void playclientairstrike( vector, int, string, string, int, string, int ) | Summary:
|
| void playclientnapalm( vector, int, string, string, int, string, int ) | Summary:
|
| void setcurrentspectatorclient( entity ) | Summary:
|
| void relinktoturret( entity ) | Summary:
|
| void carryturret( entity, vector, vector ) | Summary:
|
| void stopcarryturret( entity, vector, vector ) | Summary:
|
| bool iscarryingturret() | Summary:
|
| array canplayerplaceturret( entity ) | Summary:
|
| void setplacementhint( int ) | Summary:
|
| void linkguidedmissilecamera() | Summary:
|
| void unlinkguidedmissilecamera() | Summary:
|
| void gpsjammeractive() | Summary:
|
| void gpsjammerinactive() | Summary:
|
| void spawnprotectionactive() | Summary:
|
| void spawnprotectioninactive() | Summary:
|
| void dualgrenadesactive() | Summary:
|
| void dualgrenadesinactive() | Summary:
|
| void linktomissile( entity, int ) | Summary:
|
| void unlinkfrommissile() | Summary:
|
| array canplaceriotshield( conststring ) | Summary:
|
| void setheldweaponmodel( int ) | Summary:
|
| void setriotshieldfailhint() | Summary:
|
| array canplayerplacevehicle( float, float, float, float, float, float ) | Summary:
|
| void remotecontrolturret( entity ) | Summary:
|
| void remotecontrolturretoff( entity ) | Summary:
|
| void recordkillstreakevent( int ) | Summary:
|
| void recordkillstreakendevent( int ) | Summary:
|
| void recordgameevent( string ) | Summary:
|
| void recordkillmodifier( string ) | Summary:
|
| void recordmedal( string ) | Summary:
|
| void recordloadoutandperks() | Summary:
|
| void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int ) | Summary:
|
| void recordmultikill( int ) | Summary:
|
| void incrementlifestat() | Summary:
|
| void incrementplayerstat( string, int ) | Summary:
|
| void recordplayerdeathzombies() | Summary:
|
| void recordplayerdownzombies( string ) | Summary:
|
| void recordplayerrevivezombies( entity ) | Summary:
|
| void recordzombiezone( string, string ) | Summary:
|
| int islookingat( entity ) | Summary:
|
| void playlocalsound( string ) | Summary:
|
| void stoplocalsound( string ) | Summary:
|
| int istalking() | Summary:
|
| void allowspectateteam( team, int ) | Summary:
|
| int getguid() | Summary:
|
| string getxuid() | Summary:
|
| int ishost() | Summary: Returns 1 if the specified player is host, 0 otherwise if (player isHost()) |
| int islocaltohost() | Summary:
|
| int allowads( int ) | Summary:
|
| int allowjump( int ) | Summary:
|
| int allowsprint( int ) | Summary:
|
| int allowmelee( int ) | Summary:
|
| int forceslick( int ) | Summary:
|
| void setsprintduration( float ) | Summary:
|
| void setsprintcooldown( float ) | Summary:
|
| void setspreadoverride( int ) | Summary:
|
| void resetspreadoverride() | Summary:
|
| void setactionslot( int, string, string ) | Summary:
|
| string getinventoryweapon() | Summary:
|
| void setinventoryweapon( string ) | Summary:
|
| array getweaponslist( int ) | Summary:
|
| array getweaponslistprimaries() | Summary:
|
| void startrevive() | Summary:
|
| void stoprevive() | Summary:
|
| void applyknockback( int, vector ) | Summary:
|
| void setperk( string ) | Summary: Gives the player the specified perk player setperk("specialty_fastladderclimb");
|
| bool hasperk( string ) | Summary: Returns true if the player has the specified perk, false otherwise if (hasperk("specialty_fastladderclimb")) |
| array getperks() | Summary:
|
| void clearperks() | Summary: Removes all perks from the player player clearperks(); |
| void unsetperk( string ) | Summary: Removes a specific perk from the player player unsetperk("specialty_fastladderclimb");
|
| void setrank( int, int ) | Summary:
|
| void enableinvulnerability() | Summary: Enables god mode/invincibility for the specific player player enableinvulnerability(); |
| void disableinvulnerability() | Summary: Disables god mode/invincibility for the specific player player disableinvulnerability(); |
| void enableafterlife() | Summary:
|
| void disableafterlife() | Summary:
|
| bool addgoal( vector, float, int, conststring, conststring ) | Summary:
|
| void cancelgoal( conststring ) | Summary:
|
| bool atgoal( conststring ) | Summary:
|
| bool hasgoal( conststring ) | Summary:
|
| vector getgoal( conststring ) | Summary:
|
| void pressusebutton( float ) | Summary:
|
| void pressattackbutton( int ) | Summary:
|
| void pressdtpbutton() | Summary:
|
| bool throwgrenade( string, vector ) | Summary:
|
| float getlookaheaddist() | Summary:
|
| vector getlookaheaddir() | Summary:
|
| void lookat( vector ) | Summary:
|
| void clearlookat() | Summary:
|
| void allowattack( int ) | Summary:
|
| void pressads( int ) | Summary:
|
| void pressmelee() | Summary:
|
| array getthreats( float ) | Summary:
|
| vector predictposition( entity, int ) | Summary:
|
| bool botsighttracepassed( entity, vector ) | Summary:
|
| void botsetfailsa( pathnode ) | Summary:
|
| void botsetdefaultclass( int, string ) | Summary:
|
| void botclassadditem( int, string ) | Summary:
|
| void botclasssetweaponoption( int, int, string, int ) | Summary:
|
| void botclassaddattachment( int, string, string, string ) | Summary:
|
| void botleavegame() | Summary:
|
| int issplitscreen() | Summary:
|
| int isplayeronsamemachine( entity ) | Summary:
|
| void playerknockback( int ) | Summary:
|
| float getplayerviewheight() | Summary:
|
| void ishostforbots() | Summary:
|
| void murderline( vector, vector, string ) | Summary:
|
| void setoffhandvisible( int ) | Summary:
|
| void fakedamagefrom( vector ) | Summary:
|
| int getsnapshotackindex() | Summary:
|
| string getleagueteamid() | Summary:
|
Script Entity Methods
| Prototype | Description |
|---|---|
| void moveto( vector ) | Summary:
|
| void movex( float ) | Summary:
|
| void movey( float ) | Summary:
|
| void movez( float ) | Summary:
|
| void movegravity( vector, float ) | Summary:
|
| void moveslide( vector, float, vector ) | Summary:
|
| void stopmoveslide() | Summary:
|
| void rotateto( vector ) | Summary:
|
| void rotatepitch( float ) | Summary:
|
| void rotateyaw( float ) | Summary:
|
| void rotateroll( float ) | Summary:
|
| void devaddpitch( float ) | Summary:
|
| void devaddyaw( float ) | Summary:
|
| void devaddroll( float ) | Summary:
|
| void vibrate( vector, float, float, float ) | Summary:
|
| void rotatevelocity( vector ) | Summary:
|
| void solid() | Summary:
|
| void notsolid() | Summary:
|
| void setcandamage( int ) | Summary:
|
| void physicslaunch( vector, vector ) | Summary:
|
| void setcheapflag( int ) | Summary:
|
| void ignorecheapentityflag( int ) | Summary:
|
Script Vehicle Methods
| Prototype | Description |
|---|---|
| void attachpath( entityref ) | Summary:
|
| string vehgetmodel() | Summary:
|
| array getattachpos( entityref ) | Summary:
|
| void startpath() | Summary:
|
| entitynum drivepath( int ) | Summary:
|
| void pathmove( vector, vector, vector ) | Summary:
|
| void pathmoveclear() | Summary:
|
| void pathfixedoffset( vector ) | Summary:
|
| void pathfixedoffsetclear() | Summary:
|
| void pathvariableoffset( vector, float ) | Summary:
|
| void pathvariableoffsetclear() | Summary:
|
| vector getpathfixedoffset() | Summary:
|
| vector getpathvariableoffset() | Summary:
|
| void setdrivepathphysicsscale( float ) | Summary:
|
| void setswitchnode( entityref, entityref ) | Summary:
|
| void setspeed( float, float, float ) | Summary:
|
| void setspeedimmediate( float, float, float ) | Summary:
|
| float getspeed() | Summary:
|
| float getspeedmph() | Summary:
|
| float getgoalspeedmph() | Summary:
|
| void setbrake( float ) | Summary:
|
| float getbrake() | Summary:
|
| float gethandbrake() | Summary:
|
| float getscriptbrake() | Summary:
|
| void setacceleration( float ) | Summary:
|
| void setdeceleration( float ) | Summary:
|
| void resumespeed( float ) | Summary:
|
| void setyawspeed( float, float, float, float ) | Summary:
|
| void setmaxpitchroll( float, float ) | Summary:
|
| void setturningability( float ) | Summary:
|
| void setjitterparams( vector, float, float ) | Summary:
|
| void setairresistance( float ) | Summary:
|
| float getsteering() | Summary:
|
| float getthrottle() | Summary:
|
| void setphysangles( vector ) | Summary:
|
| void sethoverparams( float, float, float ) | Summary:
|
| void joltbody( vector, float, float, float ) | Summary:
|
| void freevehicle() | Summary:
|
| string getwheelsurface( conststring ) | Summary:
|
| entity getvehicleowner() | Summary:
|
| int isvehicleusable() | Summary:
|
| void makevehicleusable() | Summary:
|
| void makevehicleunusable() | Summary:
|
| void usevehicle( entity, int, int ) | Summary:
|
| void setviewclamp( entity, float, float, float, float ) | Summary:
|
| void resetviewclamp( entity, entity ) | Summary:
|
| void setvehiclelookattext( conststring, constistring ) | Summary:
|
| void setneargoalnotifydist( float ) | Summary:
|
| bool setvehgoalpos( vector, int, int, int ) | Summary:
|
| void clearvehgoalpos() | Summary:
|
| void setplanegoalpos( float, vector ) | Summary:
|
| void setplanebarrelroll( int, float ) | Summary:
|
| void setgoalyaw( float ) | Summary:
|
| void cleargoalyaw() | Summary:
|
| void settargetyaw( float ) | Summary:
|
| void cleartargetyaw() | Summary:
|
| void setlookatent( entity ) | Summary:
|
| void clearlookatent() | Summary:
|
| void takeplayercontrol() | Summary:
|
| void returnplayercontrol() | Summary:
|
| void setturrettargetvec( vector ) | Summary:
|
| void setturrettargetent( entity, vector ) | Summary:
|
| void clearturrettarget() | Summary:
|
| void setgunnertargetvec( vector, int ) | Summary:
|
| vector getgunnertargetvec( int ) | Summary:
|
| void setgunnertargetent( entity, vector, int ) | Summary:
|
| void cleargunnertarget( int ) | Summary:
|
| void setgunnerturretontargetrange( int, float ) | Summary:
|
| entity getgunnertargetent( int ) | Summary:
|
| float getgunneranimpitch( int ) | Summary:
|
| float getgunneranimyaw( int ) | Summary:
|
| void setvehweapon( string ) | Summary:
|
| entity fireweapon( entity, vector ) | Summary:
|
| entity firegunnerweapon( int, entity ) | Summary:
|
| void stopfireweapon() | Summary:
|
| int isturretready() | Summary:
|
| void setvehmaxspeed( float ) | Summary:
|
| array getvehoccupants() | Summary:
|
| entity getseatoccupant( int ) | Summary:
|
| int getoccupantseat( entity ) | Summary:
|
| void setseatoccupied( int, int ) | Summary:
|
| string seatgetweapon( int ) | Summary:
|
| vector getseatfiringorigin( int ) | Summary:
|
| vector getseatfiringangles( int ) | Summary:
|
| bool isgunnerfiring( int ) | Summary:
|
| void disablegunnerfiring( int, int ) | Summary:
|
| entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int ) | Summary:
|
| void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int ) | Summary:
|
| bool isvehicleimmunetodamage( int, string, string ) | Summary:
|
| void setdefaultpitch( float ) | Summary:
|
| void cleardefaultpitch() | Summary:
|
| vector getangularvelocity() | Summary:
|
| void setangularvelocity( vector ) | Summary:
|
| void setvehvelocity( vector ) | Summary:
|
| void cancelaimove() | Summary:
|
| void setvehicletype( string ) | Summary:
|
| vector getphysacceleration() | Summary:
|
| void setphysacceleration( vector ) | Summary:
|
| void drawtrajectory() | Summary:
|
| void setrotorspeed( float ) | Summary:
|
| float getmaxspeed( int ) | Summary:
|
| void setmantleena( int ) | Summary:
|
| void setvehicleavoidance( int, float, int ) | Summary:
|
| int getvehicleavoidance() | Summary:
|
| bool vehcansee( entity, int ) | Summary:
|
| bool vehseenrecently( entity, float ) | Summary:
|
| void vehclearenemy() | Summary:
|
| void vehs( entity, float ) | Summary:
|
| void vehclearentitytarget() | Summary:
|
| float getturretheatvalue( int ) | Summary:
|
| bool isvehicleturretoverheating( int ) | Summary:
|
| void setpathtransitiontime( float ) | Summary:
|
| array getvehicleavoidancenodes( float ) | Summary:
|
| void makesentient() | Summary:
|
Hud Element Methods
| Prototype | Description |
|---|---|
| void settext() | Summary:
|
| void clearalltextafterhudelem() | Summary:
|
| void setshader( string, int, int ) | Summary:
|
| void settargetent( entity, entity ) | Summary:
|
| void cleartargetent() | Summary:
|
| void settimer( float ) | Summary:
|
| void settimerup( float ) | Summary:
|
| void settenthstimer( float ) | Summary:
|
| void settenthstimerup( float ) | Summary:
|
| void setclock() | Summary:
|
| void setclockup() | Summary:
|
| void setvalue( float ) | Summary:
|
| void setwaypoint( int, string, int, int ) | Summary:
|
| void fadeovertime( float ) | Summary:
|
| void scaleovertime( float, int, int ) | Summary:
|
| void moveovertime( float ) | Summary:
|
| void reset() | Summary:
|
| void destroy() | Summary:
|
| void setpulsefx( int, int, int ) | Summary:
|
| void setcod7decodefx( int, int, int ) | Summary:
|
| void setredactfx( int, int, int, int ) | Summary:
|
| void settypewriterfx( int, int, int ) | Summary:
|
| int gettextwidth() | Summary:
|
| void setperks( entity, entity ) | Summary:
|
| void setplayernamestring( entity, entity ) | Summary:
|
| void setmapnamestring( string ) | Summary:
|
| void setgametypestring( string ) | Summary:
|
| void setwargamedata() | Summary:
|
| void changefontscaleovertime( float ) | Summary:
|
Helicopter Methods
| Prototype | Description |
|---|---|
| void freehelicopter() | Summary:
|
| void setspeed() | Summary:
|
| float getspeed() | Summary:
|
| float getspeedmph() | Summary:
|
| void resumespeed( float ) | Summary:
|
| void setyawspeed( float, float, float, float ) | Summary:
|
| void setmaxpitchroll( float, float ) | Summary:
|
| void setturningability( float ) | Summary:
|
| void setairresistance( float ) | Summary:
|
| void sethoverparams( float, float, float ) | Summary:
|
| void setneargoalnotifydist( float ) | Summary:
|
| bool setvehgoalpos( vector, int, int, int ) | Summary:
|
| void setgoalyaw( float ) | Summary:
|
| void cleargoalyaw() | Summary:
|
| void settargetyaw( float ) | Summary:
|
| void cleartargetyaw() | Summary:
|
| void setlookatent( entity ) | Summary:
|
| void clearlookatent() | Summary:
|
| void setvehweapon( string ) | Summary:
|
| entity fireweapon( entity, vector ) | Summary:
|
| void stopfireweapon() | Summary:
|
| void setturrettargetvec( vector ) | Summary:
|
| void setturrettargetent( entity, vector ) | Summary:
|
| void clearturrettarget() | Summary:
|
| void setdamagestage( int ) | Summary:
|
| void setheliheightlock( int ) | Summary:
|
| float getheliheightlockheight( vector ) | Summary:
|
| int isinsideheliheightlock() | Summary:
|
| void setheightlockoffset() | Summary:
|
Actor Methods
| Prototype | Description |
|---|---|
| void startcoverarrival() | Summary:
|
| void starttraversearrival() | Summary:
|
| entity melee( vector ) | Summary:
|
| bool reacquirestep( float ) | Summary:
|
| void findreacquirenode() | Summary:
|
| pathnode getreacquirenode() | Summary:
|
| bool usereacquirenode( pathnode ) | Summary:
|
| void findreacquiredirectpath( int ) | Summary:
|
| bool trimpathtoattack() | Summary:
|
| bool reacquiremove() | Summary:
|
| void findreacquireproximatepath( int ) | Summary:
|
| void flagenemyunattackable() | Summary:
|
| void clearpitchorient() | Summary:
|
| void setpitchorient() | Summary:
|
| void setlookatanimnodes( anim, anim, anim ) | Summary:
|
| void setlookat( vector, float ) | Summary:
|
| void setlookatyawlimits( float, float, float ) | Summary:
|
| void stoplookat( float ) | Summary:
|
| bool cansee( entity, int ) | Summary:
|
| bool seerecently( entity, float ) | Summary:
|
| int lastknowntime( entity ) | Summary:
|
| vector lastknownpos( entity ) | Summary:
|
| int maymovetopoint( vector, int ) | Summary:
|
| int maymovefrompointtopoint( vector, vector, int ) | Summary:
|
| int teleport( vector, vector ) | Summary:
|
| float withinapproxpathdist( float ) | Summary:
|
| int ispathdirect() | Summary:
|
| void allowedstances( conststring, conststring, conststring ) | Summary:
|
| int isstanceallowed( conststring ) | Summary:
|
| void traversemode( conststring ) | Summary:
|
| void animmode( conststring, int ) | Summary:
|
| void orientmode( conststring, vector, int ) | Summary:
|
| conststring getorientmode( string ) | Summary:
|
| float getmotionangle() | Summary:
|
| bool shouldfacemotion() | Summary:
|
| void clearmovehistory() | Summary:
|
| vector getmovehistoryaverage() | Summary:
|
| vector getanglestolikelyenemypath() | Summary:
|
| void lerpposition( vector, vector ) | Summary:
|
| void predictoriginandangles() | Summary:
|
| void predictanim() | Summary:
|
| void gethitenttype() | Summary:
|
| float gethityaw() | Summary:
|
| void getgroundenttype() | Summary:
|
| int isdeflected() | Summary:
|
| void animcustom( func, func ) | Summary:
|
| int canattackenemynode() | Summary:
|
| int getpathlength() | Summary:
|
| int calcpathlength( vector ) | Summary:
|
| pathnode getnegotiationstartnode() | Summary:
|
| pathnode getnegotiationendnode() | Summary:
|
| int canseepathgoal() | Summary:
|
| bool checkprone( vector, float, int ) | Summary:
|
| void pushplayer( int ) | Summary:
|
| void setgoalnode( pathnode ) | Summary:
|
| void setgoalpos( vector, vector ) | Summary:
|
| void setgoalentity( entity ) | Summary:
|
| void setgoalvolume( entity ) | Summary:
|
| void setgoalvolumeauto( entity ) | Summary:
|
| entity getgoalvolume() | Summary:
|
| void cleargoalvolume() | Summary:
|
| void setfixednodesafevolume( entity ) | Summary:
|
| entity getfixednodesafevolume() | Summary:
|
| void clearfixednodesafevolume() | Summary:
|
| bool isingoal( vector ) | Summary:
|
| void setruntopos( vector ) | Summary:
|
| void clearruntopos() | Summary:
|
| bool nearnode( pathnode ) | Summary:
|
| bool nearclaimnode() | Summary:
|
| bool nearclaimnodeandangle() | Summary:
|
| bool atdangerousnode() | Summary:
|
| void getenemyinfo( entity ) | Summary:
|
| void clearenemy() | Summary:
|
| void setentitytarget( entity, float ) | Summary:
|
| void clearentitytarget() | Summary:
|
| void setpotentialthreat( float ) | Summary:
|
| void clearpotentialthreat() | Summary:
|
| void getperfectinfo( entity ) | Summary:
|
| void setflashbangimmunity( int ) | Summary:
|
| void setflashbanged( int ) | Summary:
|
| float getflashbangedstrength() | Summary:
|
| int isknownenemyinradius( vector, float ) | Summary:
|
| int isknownenemyinvolume( entity ) | Summary:
|
| void settalktospecies( conststring ) | Summary:
|
| void allowpitchangle( int ) | Summary:
|
| void knockback( int ) | Summary:
|
| float getdeltaturnyaw() | Summary:
|
| entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int ) | Summary:
|
| array calclookaheadpos( vector, int ) | Summary:
|
| void setengagementmindist() | Summary:
|
| void setengagementmaxdist() | Summary:
|
| bool isinscriptedstate() | Summary:
|
| entity meleewithoffset( vector ) | Summary:
|
| int forceteleport( vector, vector ) | Summary:
|
| void setentityowner( entity ) | Summary:
|
| void clearentityowner() | Summary:
|
| void setanimstate( conststring, int ) | Summary:
|
| void setaimanimweights( float, float ) | Summary:
|
| void startscriptedanim() | Summary:
|
| void popaistate() | Summary:
|
| int setanimstatefromasd( conststring, conststring, int ) | Summary:
|
| bool hasanimstatefromasd( conststring ) | Summary:
|
| conststring getanimstatefromasd() | Summary:
|
| int getanimsubstatefromasd( conststring, conststring ) | Summary:
|
| int getanimsubstatecountfromasd( conststring ) | Summary:
|
| anim getanimfromasd( conststring, animsindex, animsindex, int ) | Summary:
|
| float getanimlengthfromasd( conststring, int ) | Summary:
|
| bool getanimhasnotetrackfromasd( conststring, int, conststring ) | Summary:
|
| void setfreecameralockonallowed( int ) | Summary:
|
Builtin Common Methods
| Prototype | Description |
|---|---|
| void forceyellowdot( int ) | Summary:
|
| void disableyellowdot( int ) | Summary:
|
| void allowcamerarotation( int ) | Summary:
|
| bool reloadonnunchuk() | Summary:
|
| bool reloadonwiiumote() | Summary:
|
| void attach( string, constlowercasestring, int ) | Summary:
|
| void detach( string, constlowercasestring ) | Summary:
|
| void detachall() | Summary:
|
| int getattachsize() | Summary:
|
| conststring getattachmodelname( int ) | Summary:
|
| conststring getattachtagname( int ) | Summary:
|
| bool getattachignorecollision( int ) | Summary:
|
| void hidepart( constlowercasestring, string ) | Summary:
|
| void runscriptonent() | Summary:
|
| void sendaiscriptvals( string, string ) | Summary:
|
| void showpart( constlowercasestring, string ) | Summary:
|
| void showallparts() | Summary:
|
| void playsoundtoplayer( string ) | Summary:
|
| vector getlightcolor() | Summary:
|
| void setlightcolor( vector ) | Summary:
|
| float getlightintensity() | Summary:
|
| void setlightintensity( float ) | Summary:
|
| float getlightradius() | Summary:
|
| void setlightradius( float ) | Summary:
|
| float getlightfovinner() | Summary:
|
| float getlightfovouter() | Summary:
|
| void setlightfovrange( float, float ) | Summary:
|
| int getlightexponent() | Summary:
|
| void setlightexponent( int ) | Summary:
|
| bool areallmissionsatscore( int ) | Summary:
|
| void isstartingclassdefault() | Summary:
|
| void isstartingclasseraappropriate() | Summary:
|
| int getnumchallengescomplete( string ) | Summary:
|
| bool hascompletedallgamechallenges() | Summary:
|
| void hasallintel() | Summary:
|
| string getdstat() | Summary:
|
| int getdstatarraycount() | Summary:
|
| void setdstat( string, string, int, int, float, float ) | Summary:
|
| void adddstat() | Summary:
|
| void addweaponstat( string, int, int ) | Summary:
|
| void addbonuscardstat( int, string, int ) | Summary:
|
| void getsessstat() | Summary:
|
| void getsessstatarraycount() | Summary:
|
| void setsessstat() | Summary:
|
| void addsessstat() | Summary:
|
| void addplayerstat( string ) | Summary:
|
| void addplayerstatwithgametype() | Summary:
|
| void addgametypestat() | Summary:
|
| void trackweaponfirenative( string, int, int, int ) | Summary:
|
| void updatestatratio( string, string, string ) | Summary:
|
| int addrankxp( string, int ) | Summary:
|
| void addrankxpvalue( string ) | Summary:
|
| bool hasseasonpass() | Summary:
|
| void setempjammed( int ) | Summary:
|
| bool isempjammed() | Summary:
|
| void setspawnerteam( team ) | Summary:
|
| void luinotifyevent() | Summary:
|
| void launch( vector, vector ) | Summary:
|
| void setmovingplatformenabled( int ) | Summary:
|
| bool ismovingplatform() | Summary:
|
| void setviewmodelrenderflag( int ) | Summary:
|
| void setdrawinfrared( int ) | Summary:
|
| void setgpr() | Summary:
|
| void gamehistorystartmatch( int ) | Summary:
|
| void gamehistoryfinishmatch( int, int, int, int, int, float ) | Summary:
|
| void unlink() | Summary:
|
| void linkto() | Summary:
|
| void linktoblendtotag() | Summary:
|
| void enablelinkto() | Summary:
|
| void linktoupdateoffset( vector, vector ) | Summary:
|
| void playerlinkto() | Summary:
|
| void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float ) | Summary:
|
| void playerlinktodelta() | Summary:
|
| void playerlinkweaponviewtodelta() | Summary:
|
| void playerlinktoabsolute( entity, constlowercasestring ) | Summary:
|
| void playercamlinkto( entity, string ) | Summary:
|
| void playercamunlink() | Summary:
|
| void lerpviewangleclamp( float, float, float, float, float, float, float ) | Summary:
|
| void setviewangleresistance() | Summary:
|
| void playerlinkedoffsetenable() | Summary:
|
| void playerlinkedoffsetdisable() | Summary:
|
| void playerlinkedsetusebaseangleforviewclamp( int ) | Summary:
|
| void dontinterpolate() | Summary:
|
| entity magicgrenadetype( string, vector, vector, float ) | Summary:
|
| void startfadingblur( float, float ) | Summary:
|
| vector localtoworldcoords( vector ) | Summary:
|
| vector worldtolocalcoords( vector ) | Summary:
|
| void setturretspinning( int ) | Summary:
|
| void attachshieldmodel() | Summary:
|
| void detachshieldmodel() | Summary:
|
| void setscriptmoverflag( int ) | Summary:
|
| void refreshshieldattachment() | Summary:
|
| void setcharacterindex( int ) | Summary:
|
| void useplayerfootsteptable() | Summary:
|
| void setvisionsetforplayer( string, float ) | Summary:
|
| void useservervisionset( int ) | Summary:
|
| void setinfraredvision( int ) | Summary:
|
| string getcontrollertype() | Summary:
|
| void setactorweapon( string, int ) | Summary:
|
| void resetfov() | Summary:
|
Builtin Methods
| Prototype | Description |
|---|---|
| void setstowedweapon( string ) | Summary:
|
| string getstowedweapon() | Summary:
|
| void clearstowedweapon() | Summary:
|
| int getammocount( string ) | Summary:
|
| void setvisibletoplayer( entity ) | Summary:
|
| void setinvisibletoplayer( entity, int ) | Summary:
|
| void setvisibletoall() | Summary:
|
| void setinvisibletoall() | Summary:
|
| void setvisibletoteam( team ) | Summary:
|
| void setvisibletoallexceptteam( team ) | Summary:
|
| void setforcenocull() | Summary:
|
| void removeforcenocull() | Summary:
|
| int islinkedto( entity ) | Summary:
|
| void allowtacticalinsertion( int ) | Summary:
|
| void allowbottargetting( int ) | Summary:
|
| entity getlinkedent() | Summary:
|
| vector getorigin() | Summary:
|
| vector getangles() | Summary:
|
| vector getmins() | Summary:
|
| vector getmaxs() | Summary:
|
| vector getabsmins() | Summary:
|
| vector getabsmaxs() | Summary:
|
| vector getpointinbounds( float, float, float ) | Summary:
|
| vector geteye() | Summary:
|
| vector geteyeapprox() | Summary:
|
| entity useby( entity ) | Summary:
|
| void setstablemissile( int ) | Summary:
|
| int istouching( entity, vector ) | Summary:
|
| int istouchingswept( entity, float, float ) | Summary:
|
| int istouchingvolume( vector, vector, vector ) | Summary:
|
| void playsound( string ) | Summary:
|
| void playsoundwithnotify( string, conststring ) | Summary:
|
| void playsoundontag( string, string ) | Summary:
|
| void playsoundasmaster( string ) | Summary:
|
| void playsoundtoteam( string, entity ) | Summary:
|
| void playbattlechattertoteam( string, string, team, entity ) | Summary:
|
| void playsoundtoplayer( string ) | Summary:
|
| void playloopsound( string, float ) | Summary:
|
| void stoploopsound( float ) | Summary:
|
| void stopsounds() | Summary:
|
| void playrumbleonentity() | Summary:
|
| void playrumblelooponentity() | Summary:
|
| void stoprumble( string ) | Summary:
|
| void delete() | Summary:
|
| void setmodel( string ) | Summary:
|
| void setzombieshrink( int ) | Summary:
|
| void setenemymodel( string ) | Summary:
|
| void dodamage( float, vector, entity, entity ) | Summary:
|
| float getnormalhealth() | Summary:
|
| void setnormalhealth( float ) | Summary:
|
| void setmaxhealth( int ) | Summary:
|
| void show() | Summary:
|
| void hide() | Summary:
|
| void ghost() | Summary:
|
| void ghostindemo() | Summary:
|
| void showindemo() | Summary:
|
| void laseron() | Summary:
|
| void laseroff() | Summary:
|
| void showtoplayer( entity ) | Summary:
|
| int setcontents( int ) | Summary:
|
| void startfiring() | Summary:
|
| void stopfiring() | Summary:
|
| void shootturret() | Summary:
|
| void stopshootturret() | Summary:
|
| void setmode( conststring ) | Summary:
|
| entity getturretowner() | Summary:
|
| void settargetentity( entity ) | Summary:
|
| array getturretarclimits() | Summary:
|
| void setplayerspread( float ) | Summary:
|
| void setaispread( float ) | Summary:
|
| void setconvergencetime( float ) | Summary:
|
| void setsuppressiontime( float ) | Summary:
|
| void cleartargetentity() | Summary:
|
| void setturretteam( team ) | Summary:
|
| void maketurretusable() | Summary:
|
| void maketurretunusable() | Summary:
|
| void setturretaccuracy() | Summary:
|
| void setturretignoregoals( int ) | Summary:
|
| entity getturrettarget() | Summary:
|
| void disconnectpaths() | Summary:
|
| void connectpaths() | Summary:
|
| conststring getstance() | Summary:
|
| void setstance( conststring ) | Summary:
|
| void setcursorhint( string, entity ) | Summary:
|
| void setrevivehintstring( string, team ) | Summary:
|
| void sethintstringforperk( string, string ) | Summary:
|
| void sethintstring( string ) | Summary:
|
| void setfovforkillcam( int ) | Summary:
|
| void sethintlowpriority( int ) | Summary:
|
| void usetriggerrequirelookat() | Summary:
|
| void triggerignoreteam() | Summary:
|
| void shellshock( string, float, int ) | Summary:
|
| vector getweaponforwarddir() | Summary:
|
| vector getweaponmuzzlepoint() | Summary:
|
| vector gettagorigin( constlowercasestring ) | Summary:
|
| vector gettagangles( constlowercasestring ) | Summary:
|
| void getentnum() | Summary:
|
| void stopshellshock() | Summary:
|
| void setdepthoffield( float, float, float, float, float, float ) | Summary:
|
| void setburn( float ) | Summary:
|
| void setelectrified( float ) | Summary:
|
| void spawnnapalmgroundflame( vector, string, vector, int ) | Summary:
|
| void needsrevive( int ) | Summary:
|
| bool isinsecondchance() | Summary:
|
| float depthinwater() | Summary:
|
| void shootup( float ) | Summary:
|
| int depthofplayerinwater() | Summary:
|
| void useweaponhidetags( string ) | Summary:
|
| void useweaponmodel( string, string, int ) | Summary:
|
| void starttanning() | Summary:
|
| void stopburning() | Summary:
|
| void setwaterdrops( int ) | Summary:
|
| void restoredefaultdroppitch() | Summary:
|
| bool isfiringturret() | Summary:
|
| bool isturretlockedon() | Summary:
|
| void setviewmodeldepthoffield( float, float ) | Summary:
|
| void viewkick( float, vector ) | Summary:
|
| vector localtoworldcoords( vector ) | Summary:
|
| void setrightarc( float ) | Summary:
|
| void setleftarc( float ) | Summary:
|
| void settoparc( float ) | Summary:
|
| void setbottomarc( float ) | Summary:
|
| void radiusdamage() | Summary:
|
| void detonate( entity ) | Summary:
|
| void damageconetrace() | Summary:
|
| void sightconetrace() | Summary:
|
| int heliturretsighttrace( vector, entity, int ) | Summary:
|
| int heliturretdogtrace( vector, entity, int ) | Summary:
|
| int playersighttrace( vector, int, int ) | Summary:
|
| void visionsetlerpratio( float ) | Summary:
|
| float docowardswayanims() | Summary:
|
| void startpoisoning() | Summary:
|
| void stoppoisoning() | Summary:
|
| void startbinocs() | Summary:
|
| void stopbinocs() | Summary:
|
| bool isflared() | Summary:
|
| bool ispoisoned() | Summary:
|
| void setcameraspikeactive( int ) | Summary:
|
| int isinsideheightlock() | Summary:
|
| int ismissileinsideheightlock() | Summary:
|
| int isonground( int ) | Summary:
|
| entity getgroundent() | Summary:
|
| entity getmoverent() | Summary:
|
| int issprinting() | Summary:
|
| void setanim() | Summary:
|
| void useanimtree( animtree ) | Summary:
|
| void animscripted() | Summary:
|
| void animscriptedskiprestart() | Summary:
|
| void animrelative() | Summary:
|
| void stopanimscripted() | Summary:
|
| void clearanim( anim, float ) | Summary:
|
| void setentityanimrate( float ) | Summary:
|
| float getentityanimrate() | Summary:
|
| vector getcentroid() | Summary:
|
| bool ismartyrdomgrenade() | Summary:
|
| int getentitynumber() | Summary:
|
| int getentitytype() | Summary:
|
| void enablegrenadetouchdamage() | Summary:
|
| void disablegrenadetouchdamage() | Summary:
|
| void enableaimassist() | Summary:
|
| void disableaimassist() | Summary:
|
| void placespawnpoint() | Summary:
|
| void setspawnclientflag( string ) | Summary:
|
| void directionalhitindicator( int, int ) | Summary:
|
| void sendkillstreakdamageevent( int ) | Summary:
|
| void setplayergravity( int ) | Summary:
|
| void clearplayergravity() | Summary:
|
| void sendfaceevent( conststring ) | Summary:
|
| void setteamfortrigger( team ) | Summary:
|
| void setexcludeteamfortrigger( team ) | Summary:
|
| void setperkfortrigger( string ) | Summary:
|
| void setignoreentfortrigger( entity ) | Summary:
|
| void clientclaimtrigger( entity ) | Summary:
|
| void clientreleasetrigger( entity ) | Summary:
|
| void releaseclaimedtrigger() | Summary:
|
| int isitemlocked( int ) | Summary:
|
| int isitempurchased( int ) | Summary:
|
| void uploadleaderboards() | Summary:
|
| void setnemesisxuid( string ) | Summary:
|
| int getloadoutitem() | Summary:
|
| int isbonuscardactive( int, int ) | Summary:
|
| string getloadoutitemref() | Summary:
|
| string getloadoutweapon( int, string ) | Summary:
|
| array getloadoutperks( int ) | Summary:
|
| int getloadoutallocation( int ) | Summary:
|
| void setmovespeedscale( float ) | Summary:
|
| float getmovespeedscale() | Summary:
|
| void logstring() | Summary:
|
| void missile_settarget( entity, vector ) | Summary:
|
| void missile_dronesetvisible( int ) | Summary:
|
| bool isonladder() | Summary:
|
| bool ismantling() | Summary:
|
| bool isonslide() | Summary:
|
| void startdoorbreach() | Summary:
|
| void stopdoorbreach() | Summary:
|
| void startragdoll( int ) | Summary:
|
| int isragdoll() | Summary:
|
| void launchragdoll( vector, constlowercasestring ) | Summary:
|
| void launchvehicle( vector, vector ) | Summary:
|
| void setblur( float, float ) | Summary:
|
| void resetmissiledetonationtime( float ) | Summary:
|
| void giveachievement() | Summary:
|
| void setzombiename( string ) | Summary:
|
| void setentgravitytrajectory( int ) | Summary:
|
| void setvehicleteam( team ) | Summary:
|
| void setteam( team ) | Summary:
|
| team getteam() | Summary:
|
| void setowner( entity ) | Summary:
|
| void setmissileowner( entity ) | Summary:
|
| void setentityweapon( string ) | Summary:
|
| void setturretowner( entity ) | Summary:
|
| void setturrettype( string ) | Summary:
|
| anim getcorpseanim( animsindex ) | Summary:
|
| void itemweaponsetammo( int, int, int ) | Summary:
|
| void setturretcarried( int ) | Summary:
|
| void setturretminimapvisible( int ) | Summary:
|
| void setmissilecoasting( int ) | Summary:
|
| void setweapon( string ) | Summary:
|
| void gib( conststring, object ) | Summary:
|
| void setphysparams( float, float, float ) | Summary:
|
| void setplayercollision( int ) | Summary:
|
| void reportuser( string ) | Summary:
|
| void setplayercurrentobjective() | Summary:
|
| void setplayercurrentstreak( int ) | Summary:
|
| vector getvelocity() | Summary:
|
| entity spawnactor( int, conststring ) | Summary:
|
| vector getshootatpos() | Summary:
|
| void predictspawnpoint( vector, vector ) | Summary:
|
| void setdefaultdroppitch( float ) | Summary:
|
| void setscanningpitch( float ) | Summary:
|
| entity launchbomb( string, vector, vector ) | Summary:
|
| entity magicgrenade( string, vector, vector ) | Summary:
|
| void makegrenadedud() | Summary:
|
| void setclientflag( int ) | Summary:
|
| int getclientflag( int ) | Summary:
|
| void clearclientflag( int ) | Summary:
|
| void setscriptmoverflag( int ) | Summary:
|
| void setmovingplatformenabled() | Summary:
|
| void fakefire( entity, vector, string, int ) | Summary:
|
| void makeusable( team ) | Summary:
|
| void makeunusable() | Summary:
|
| vector predictgrenade() | Summary:
|
| void setdangerous( team, int ) | Summary:
|
| bool isdangerous( team ) | Summary:
|
| void getindexforactivecontract() | Summary:
|
| void getactivecontractprogress() | Summary:
|
| void incrementactivecontractprogress() | Summary:
|
| void incrementactivecontracttime() | Summary:
|
| void isactivecontractcomplete() | Summary:
|
| void hasactivecontractexpired() | Summary:
|
| void getactivecontracttimepassed() | Summary:
|
| void resetactivecontractprogress() | Summary:
|
| void getpregameclass() | Summary:
|
| void getpregameteam() | Summary:
|
| void setpregameclass() | Summary:
|
| void setpregameteam() | Summary:
|
| void recordleaguepreloser() | Summary:
|
| void luinotifyeventtospectators() | Summary:
|
| bool istestclient() | Summary:
|
| void setworldfogactivebank( int ) | Summary:
|
| bool iszbarrier() | Summary:
|
| int getnumzbarrierpieces() | Summary:
|
| conststring getzbarrierpiecestate( int ) | Summary:
|
| void setzbarrierpiecestate( int, constlowercasestring, float ) | Summary:
|
| bool iszbarrieropen() | Summary:
|
| bool iszbarrierclosed() | Summary:
|
| void hidezbarrierpiece( int ) | Summary:
|
| void showzbarrierpiece( int ) | Summary:
|
| void zbarrierpieceusedefaultmodel( int ) | Summary:
|
| void zbarrierpieceusealternatemodel( int ) | Summary:
|
| void zbarrierpieceuseupgradedmodel( int ) | Summary:
|
| void zbarrierpieceuseboxriselogic( int ) | Summary:
|
| int getupgradedpiecenumlives( int ) | Summary:
|
| array getzbarrierpieceindicesinstate( constlowercasestring ) | Summary:
|
| float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float ) | Summary:
|
| conststring getzbarrierpieceanimstate( int ) | Summary:
|
| conststring getzbarrierpieceanimsubstate( int ) | Summary:
|
| int zbarriersupportszombietaunts() | Summary:
|
| int zbarriersupportszombiereachthroughattacks() | Summary:
|
| conststring getzbarriertauntanimstate() | Summary:
|
| conststring getzbarrierreachthroughattackanimstate() | Summary:
|
| int getzbarriernumattackslots() | Summary:
|
| float getzbarrierattackslothorzoffset() | Summary:
|
| void setzbarriercolmodel( string ) | Summary:
|
| string getweaponoptic( string ) | Summary:
|
| void setaltusetrigger() | Summary:
|
| bool isaltusetrigger() | Summary:
|