SetGlitchEnabled: Difference between revisions
Jump to navigation
Jump to search
(Added "quicksand" glitch to the list and example) |
|||
Line 17: | Line 17: | ||
**{{New feature|3.0136|1.3.5-6277|'''fastsprint''' - Enabling fastsprint allows players to tap space with a macro to boost their speed beyond normal speeds of GTASA.}} | **{{New feature|3.0136|1.3.5-6277|'''fastsprint''' - Enabling fastsprint allows players to tap space with a macro to boost their speed beyond normal speeds of GTASA.}} | ||
**{{New feature|3.0136|1.3.5-6419|'''baddrivebyhitbox''' - This glitch leaves players invulnerable to gun fire when performing certain driveby animations. }} | **{{New feature|3.0136|1.3.5-6419|'''baddrivebyhitbox''' - This glitch leaves players invulnerable to gun fire when performing certain driveby animations. }} | ||
*'''enable:''' whether or not to enable the glitch | **{{New feature/item|3.0150|1.5|7345|'''quickstand''' - This glitch allows players to quickly stand up by pressing the crouch, sprint or jump controls just after realasing the aim weapon button while using one and being ducked.}} | ||
*'''enable:''' whether or not to enable the glitch. | |||
===Returns=== | ===Returns=== | ||
Line 34: | Line 35: | ||
setGlitchEnabled ( "fastsprint", true ) | setGlitchEnabled ( "fastsprint", true ) | ||
setGlitchEnabled ( "baddrivebyhitbox", true ) | setGlitchEnabled ( "baddrivebyhitbox", true ) | ||
setGlitchEnabled ( "quickstand", true ) | |||
end | end | ||
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) | addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) |
Revision as of 15:34, 13 July 2015
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.
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.
- crouchbug - This is the glitch where the post shooting animation can be aborted by using the crouch key.
- highcloserangedamage - Enabling this removes the extremely high damage guns inflict when fired at very close range.
- hitanim - Enabling this allows 'hit by bullet' animations to interrupt player aiming.
- fastsprint - Enabling fastsprint allows players to tap space with a macro to boost their speed beyond normal speeds of GTASA.
- baddrivebyhitbox - This glitch leaves players invulnerable to gun fire when performing certain driveby animations.
- quickstand - This glitch allows players to quickly stand up by pressing the crouch, sprint or jump controls just after realasing the aim weapon button while using one and being ducked.
- enable: whether or not to enable the glitch.
Returns
Returns true if successful, false otherwise.
Example
This example enables all glitches in the server once the resource is loaded.
function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) setGlitchEnabled ( "highcloserangedamage", true ) setGlitchEnabled ( "hitanim", true ) setGlitchEnabled ( "fastsprint", true ) setGlitchEnabled ( "baddrivebyhitbox", true ) setGlitchEnabled ( "quickstand", true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart )
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown