The document is a script for a game that defines various joystick controls and player actions. It includes constants for joystick buttons, player character and actor identifiers, and functions for handling player interactions, such as driving, jumping, and swimming. The script utilizes a loop to check for player inputs and manage the player's state and actions accordingly.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
61 views6 pages
VC Swimming
The document is a script for a game that defines various joystick controls and player actions. It includes constants for joystick buttons, player character and actor identifiers, and functions for handling player interactions, such as driving, jumping, and swimming. The script utilizes a loop to check for player inputs and manage the player's state and actions accordingly.
while true wait 0 if and 00E0: player _PLAYER_CHAR driving 00E1: player 0 pressed_button 15 then 03C1: 10@ = player _PLAYER_CHAR car_no_save if 02BF: car 10@ sunk then 03E2: make_actor _PLAYER_ACTOR exit_car end end
if and 04AD: actor _PLAYER_ACTOR in_water 8184: not actor _PLAYER_ACTOR health >= 1 then while 8184: not actor _PLAYER_ACTOR health >= 1 wait 0 end 0054: store_player _PLAYER_CHAR position_to 0@ 1@ 2@ 00A1: put_actor _PLAYER_ACTOR at 0@ 1@ 2@ end
if and 0256: player _PLAYER_CHAR defined 80DF: not actor _PLAYER_ACTOR driving 0184: actor _PLAYER_ACTOR health >= 1 then if 04AD: actor _PLAYER_ACTOR in_water then 0DD3: context_set_reg 0 value _PLAYER_ACTOR 0DD2: context_call_func 6@ 0DD4: 0@ = context_get_reg 0 0@ += 0x7C // integer values if 80E1: not key_pressed 0 17 then 0DD9: write_mem_addr 0@ value 0.025 size 4 add_ib 0 protect 0 end
if or 9@ == 4 9@ == 5 then 0170: 10@ = player _player_char z_angle 10@ += 1.0 0171: set_player _player_char z_angle_to 10@ end if or 9@ == 1 9@ == 2 then 0170: 10@ = player _player_char z_angle 10@ -= 1.0 0171: set_player _player_char z_angle_to 10@ end
if 00E1: player 0 pressed_button 16 //sprint then 0DD3: context_set_reg 0 value _PLAYER_ACTOR 0DD2: context_call_func 6@ 0DD4: 0@ = context_get_reg 0 0@ += 0x7C // integer values 78 0DD9: write_mem_addr 0@ value 0.025 size 4 add_ib 0 protect 0
:_ZN8CGeneral11GetATanOfXYEff hex "_ZN8CGeneral11GetATanOfXYEff" 00 end
:_ZN6CPools6GetPedEi hex "_ZN6CPools6GetPedEi" 00 end
:_ZN12CAnimManager14BlendAnimationEP7RpClump12AssocGroupId11AnimationIdf hex "_ZN12CAnimManager14BlendAnimationEP7RpClump12AssocGroupId11AnimationIdf" 00 end