0% found this document useful (0 votes)
15 views1 page

SP 3

The document is a script for a camera control system in a game, specifically designed to adjust the camera zoom based on the player's actions. It includes conditions to check the player's model and animation state, and adjusts the camera zoom smoothly over time. The script loops continuously, ensuring the camera responds dynamically to the player's movements and actions.

Uploaded by

Hack Tools
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
15 views1 page

SP 3

The document is a script for a camera control system in a game, specifically designed to adjust the camera zoom based on the player's actions. It includes conditions to check the player's model and animation state, and adjusts the camera zoom smoothly over time. The script loops continuously, ensuring the camera responds dynamically to the player's movements and actions.

Uploaded by

Hack Tools
Copyright
© © All Rights Reserved
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
You are on page 1/ 1

// This file was decompiled using SASCM.

ini published on 2022-03-20


{$CLEO .csa}

03A4: script_name 'CAMERA'

:CAMERA_11
0001: wait 0 ms
00D6: if
02F2: actor $PLAYER_ACTOR model == #SPECIAL01
004D: jump_if_false @CAMERA_11
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.5
00D6: if
8611: not actor $PLAYER_ACTOR performing_animation "JUMP_BUILD"
004D: jump_if_false @CAMERA_341
00D6: if
86BD: not no_obstacles_between 1@ 2@ 3@ and 4@ 5@ 6@ solid 1 car 0 actor 0 object
1 particle 0
004D: jump_if_false @CAMERA_168
0002: jump @CAMERA_11

:CAMERA_168
0922: set_camera_zoom_from 70.0 to 100.0 timelimit 500 smooth_transition 1
0001: wait 500 ms
0002: jump @CAMERA_197

:CAMERA_197
0001: wait 0 ms
0922: set_camera_zoom_from 100.0 to 100.0 timelimit 500 smooth_transition 1
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.5
00D6: if
86BD: not no_obstacles_between 1@ 2@ 3@ and 4@ 5@ 6@ solid 1 car 0 actor 0 object
1 particle 0
004D: jump_if_false @CAMERA_197
0922: set_camera_zoom_from 100.0 to 70.0 timelimit 500 smooth_transition 1
0002: jump @CAMERA_11

:CAMERA_341
0001: wait 1000 ms
0922: set_camera_zoom_from 70.0 to 40.0 timelimit 500 smooth_transition 1
0001: wait 500 ms
0002: jump @CAMERA_375

:CAMERA_375
0001: wait 0 ms
0922: set_camera_zoom_from 40.0 to 40.0 timelimit 500 smooth_transition 1
00D6: if
8611: not actor $PLAYER_ACTOR performing_animation "JUMP_BUILD"
004D: jump_if_false @CAMERA_375
0922: set_camera_zoom_from 40.0 to 70.0 timelimit 500 smooth_transition 1
0001: wait 500 ms
0002: jump @CAMERA_11

You might also like