-
Notifications
You must be signed in to change notification settings - Fork 0
/
modsgtasa_movie_script.sc
127 lines (104 loc) · 4.2 KB
/
modsgtasa_movie_script.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
SCRIPT_START
{
NOP
LVAR_INT car_model
LVAR_INT car
LVAR_INT scplayer
LVAR_FLOAT object_coord[3]
LVAR_FLOAT player_coord[3]
LVAR_FLOAT dest_coord[3]
LVAR_INT cam_loop
cam_loop = 0
main_loop:
WAIT 0
IF TEST_CHEAT filme
PRINT_FORMATTED "MODS GTA SAN ANDREAS - MOVIE MODE" 1000
cam_loop = 0
// VERIFICA SE O ARQUIVO DE CONFIGURAÇÃO ESTÁ CORRETO
IF READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "dest_coord" "x" dest_coord[0]
AND READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "dest_coord" "y" dest_coord[1]
AND READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "dest_coord" "z" dest_coord[2]
AND READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "object_coord" "x" object_coord[0]
AND READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "object_coord" "y" object_coord[1]
AND READ_FLOAT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "object_coord" "z" object_coord[2]
AND READ_INT_FROM_INI_FILE "CLEO\modsgtasa_config.ini" "car_model" "model" car_model
IF IS_THIS_MODEL_A_CAR car_model
// PEGA O PERSONAGEM
GET_PLAYER_CHAR 0 scplayer
// CARREGA O MODELO DO CARRO
REQUEST_MODEL car_model
WHILE NOT HAS_MODEL_LOADED car_model
WAIT 0
ENDWHILE
// MUDA O CLIMA PARA "ENSOLARADO"
FORCE_WEATHER_NOW 1
// ALTERA A HORA
SET_TIME_OF_DAY 12 00
// CRIA O CARRO NA COORDENADA INICIAL
CREATE_CAR car_model object_coord[0] object_coord[1] object_coord[2] car
// CONFIGURA A COORD DO PERSONAGEM BASEADA NA DO CARRO
player_coord[0] = object_coord[0]
player_coord[1] = object_coord[1]
player_coord[2] = object_coord[2]
player_coord[0] += 4.0
player_coord[1] += 4.0
player_coord[2] += 0.5
// MUDA A COORDENADA DO PERSONAGEM
SET_CHAR_COORDINATES scplayer player_coord[0] player_coord[1] player_coord[2]
// MANDA O PERSNAGEM DIRIGIR ATE O DESTINO
TASK_CAR_DRIVE_TO_COORD scplayer car dest_coord[0] dest_coord[1] dest_coord[2] 20.0 0 0 0
// AGUARDA O PERSONAGEM ENTRAR NO CARRO
WHILE NOT IS_CHAR_IN_CAR scplayer car
WAIT 0
ENDWHILE
// CONFIGURA O ESTILO DE PILOTAGEM
SET_CAR_DRIVING_STYLE car 2
// DESLIGA A RADIO
SET_RADIO_CHANNEL 12
cam_loop:
WHILE cam_loop < 8
WAIT 0
SWITCH cam_loop
CASE 0
ATTACH_CAMERA_TO_VEHICLE car 0.0 -6.0 1.5 0.0 0.0 0.0 0.0 2 // ATRAS
BREAK
CASE 1
ATTACH_CAMERA_TO_VEHICLE car 4.0 -6.0 1.5 0.0 0.0 0.0 0.0 2 // ATRAS DIR
BREAK
CASE 2
ATTACH_CAMERA_TO_VEHICLE car 6.0 0.0 1.5 0.0 0.0 0.0 0.0 2 // LATERAL DIREITA
BREAK
CASE 3
ATTACH_CAMERA_TO_VEHICLE car 4.0 6.0 1.5 0.0 0.0 0.0 0.0 2 // FRENTE DIR
BREAK
CASE 4
ATTACH_CAMERA_TO_VEHICLE car 0.0 6.0 1.5 0.0 0.0 0.0 0.0 2 // FRENTE
BREAK
CASE 5
ATTACH_CAMERA_TO_VEHICLE car -4.0 6.0 1.5 0.0 0.0 0.0 0.0 2 // FRENTE ESQ
BREAK
CASE 6
ATTACH_CAMERA_TO_VEHICLE car -6.0 0.0 1.5 0.0 0.0 0.0 0.0 2 // LATERAL ESQUERDA
BREAK
CASE 7
ATTACH_CAMERA_TO_VEHICLE car -4.0 -6.0 1.5 0.0 0.0 0.0 0.0 2 // ATRAS ESQ
BREAK
ENDSWITCH
WAIT 8000
cam_loop += 1
IF cam_loop = 8
cam_loop = 0
ENDIF
// QUANDO O CARRO ESTACIONAR ENCERRA TUDO
IF IS_CAR_STOPPED car
cam_loop = 8
RESTORE_CAMERA
ENDIF
ENDWHILE
MARK_CAR_AS_NO_LONGER_NEEDED car
ENDIF
ENDIF
ENDIF
GOTO main_loop
}
SCRIPT_END