Created
July 29, 2021 00:08
-
-
Save user-grinch/3ed9ed593a8642cf882918fda11db83b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SCRIPT_START | |
| { | |
| NOP | |
| LVAR_INT sc_player sc_car camera_style size sc_model | |
| LVAR_FLOAT aircraft_roll positions[5] | |
| positions[0] = -15.0 | |
| positions[1] = -20.0 | |
| positions[2] = -30.0 | |
| positions[3] = -40.0 | |
| positions[4] = -60.0 | |
| size = 5 | |
| GET_PLAYER_CHAR 0 sc_player | |
| WHILE TRUE | |
| IF IS_CHAR_IN_ANY_HELI sc_player | |
| OR IS_CHAR_IN_ANY_PLANE sc_player | |
| STORE_CAR_CHAR_IS_IN_NO_SAVE sc_player sc_car | |
| WHILE IS_CHAR_IN_ANY_HELI sc_player | |
| OR IS_CHAR_IN_ANY_PLANE sc_player | |
| STORE_CAR_CHAR_IS_IN_NO_SAVE sc_player sc_car | |
| GET_CAR_ROLL sc_car aircraft_roll | |
| MULT_FLOAT_LVAR_BY_VAL aircraft_roll -1.0 | |
| IF IS_INT_LVAR_GREATER_THAN_INT_LVAR camera_style size | |
| camera_style = 0 | |
| ENDIF | |
| ATTACH_CAMERA_TO_VEHICLE sc_car 0.0 positions[camera_style] 2.5 0.0 0.0 0.0 aircraft_roll 2 | |
| IF IS_KEY_PRESSED VK_KEY_V | |
| WHILE IS_KEY_PRESSED VK_KEY_V | |
| WAIT 0 | |
| ENDWHILE | |
| camera_style = camera_style + 1 | |
| ENDIF | |
| WAIT 0 | |
| ENDWHILE | |
| RESTORE_CAMERA_JUMPCUT | |
| ENDIF | |
| WAIT 0 | |
| ENDWHILE | |
| } | |
| SCRIPT_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment