Site Tools
t2:gpc_scripting:examples_1
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
t2:gpc_scripting:examples_1 [2020/09/08 06:55] scachi [Rapid Fire] |
t2:gpc_scripting:examples_1 [2021/03/09 17:38] (current) scachi [Script On/Off] |
||
---|---|---|---|
Line 15: | Line 15: | ||
^ On button hold press it repetitive | [[t2:gpc_scripting:examples_1#aim_assist_abuse|Aim Assist Abuse]] | | ^ On button hold press it repetitive | [[t2:gpc_scripting:examples_1#aim_assist_abuse|Aim Assist Abuse]] | | ||
^ On button hold press it repetitive | [[t2:gpc_scripting:examples_1#bunny_hop|Bunny Hop]] | | ^ On button hold press it repetitive | [[t2:gpc_scripting:examples_1#bunny_hop|Bunny Hop]] | | ||
+ | ^ On button hold press it repetitive | [[t2:gpc_scripting:examples_1#simple_rapid_fire|Rapid Fire]] | | ||
^ On button double tap| [[t2:gpc_scripting:examples_1#double_tap|Double Tap]] & [[t2:gpc_scripting:examples_1#double_tap|Toggle]] | | ^ On button double tap| [[t2:gpc_scripting:examples_1#double_tap|Double Tap]] & [[t2:gpc_scripting:examples_1#double_tap|Toggle]] | | ||
- | ^ \\ | | | + | ^ \\ | | |
+ | ^ Toggle script on/off - Script | [[t2:gpc_scripting:examples_1#script_on_off|Script]] & [[t2:gpc_scripting:examples_1#script_on_off|Toggle]] | | ||
^ Toggle features on/off - Anti Recoil| [[t2:gpc_scripting:examples_1#toggle_anti_recoil|Anti Recoil]] & [[t2:gpc_scripting:examples_1#anti_recoil|Toggle]] | | ^ Toggle features on/off - Anti Recoil| [[t2:gpc_scripting:examples_1#toggle_anti_recoil|Anti Recoil]] & [[t2:gpc_scripting:examples_1#anti_recoil|Toggle]] | | ||
^ Toggle features on/off - Auto Scope| [[t2:gpc_scripting:examples_1#toggle_scope|Auto Scope]] & [[t2:gpc_scripting:examples_1#auto_scope|Toggle]] | | ^ Toggle features on/off - Auto Scope| [[t2:gpc_scripting:examples_1#toggle_scope|Auto Scope]] & [[t2:gpc_scripting:examples_1#auto_scope|Toggle]] | | ||
Line 249: | Line 251: | ||
</code> | </code> | ||
+ | ===== Script On/Off ===== | ||
+ | Press [Touch-Click|View] + [CROSS|A] to quickly enable/disable the script without unload the Memory Slot. | ||
+ | <code gpc2> | ||
+ | bool bScript=FALSE; | ||
+ | |||
+ | main { | ||
+ | // Playstation: Touch-Click + CROSS , XBox: View + A | ||
+ | if (get_actual(BUTTON_2) && event_active(BUTTON_16)) bScript = !bScript; | ||
+ | | ||
+ | if (bScript) { | ||
+ | // Add your code to run when script is enabled here | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </code> | ||
===== Anti Recoil ===== | ===== Anti Recoil ===== | ||
Anti Recoil moves the Aim Stick downward automatically to compensate the recoil of weapon when firing. | Anti Recoil moves the Aim Stick downward automatically to compensate the recoil of weapon when firing. |
t2/gpc_scripting/examples_1.1599562507.txt.gz · Last modified: 2020/09/08 06:55 by scachi