Difference between revisions of "SetGlitchEnabled"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} This function enables or disables glitches that are found in the original Single Player game that can be used to gain an advantage in multiplayer. By default...)
 
Line 17: Line 17:
 
===Returns===
 
===Returns===
 
Returns ''true'' if successful, ''false'' otherwise.
 
Returns ''true'' if successful, ''false'' otherwise.
 +
 +
==Example===
 +
This example enables all glitches in the server.
 +
<syntaxhighlight lang="lua">
 +
setGlitchEnabled ( "quickreload", true )
 +
setGlitchEnabled ( "quickreload", fastmove )
 +
setGlitchEnabled ( "quickreload", fastfire )
 +
</syntaxhighlight>
  
 
==See Also==
 
==See Also==
 
{{Server functions}}
 
{{Server functions}}

Revision as of 17:57, 19 May 2009

This function enables or disables glitches that are found in the original Single Player game that can be used to gain an advantage in multiplayer.

By default all these glitches are disabled - use this function to enable them.

Syntax

bool setGlitchEnabled ( string glitchName, bool enable )

Required Arguments

  • glitchName: the name of the property to set. Possible values are:
    • quickreload - This is the glitch where switching weapons auto-reloads your weapon, without actually performing the reload animation.
    • fastmove - This is the glitch that can be achieved by a certain key combinations whilst standing up after crouching, which allows you to move quickly with slow weapons (e.g. deagle).
    • fastfire - This is the glitch that can be achieved by cancelling the full fire animation, allowing you to shoot with slow-fire weapons (e.g. deagle) much faster.
  • enable: whether or not to enable the glitch..

Returns

Returns true if successful, false otherwise.

Example=

This example enables all glitches in the server.

setGlitchEnabled ( "quickreload", true )
setGlitchEnabled ( "quickreload", fastmove )
setGlitchEnabled ( "quickreload", fastfire )

See Also

BETA: FROM VERSION 1.5.8 r20788 ONWARDS
BETA: FROM VERSION 1.5.8 r20788 ONWARDS