-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathat400_lv.pwn
58 lines (42 loc) · 1.12 KB
/
at400_lv.pwn
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
//
// A Driver NPC that goes around a path continuously
// Kye 2009
//
#include <a_npc>
#define NUM_PLAYBACK_FILES 3
new gPlaybackFileCycle=0;
//------------------------------------------
main(){}
//------------------------------------------
NextPlayback()
{
// Reset the cycle count if we reach the max
if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;
if(gPlaybackFileCycle==0) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}
else if(gPlaybackFileCycle==1) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_sf_to_ls_x1");
}
else if(gPlaybackFileCycle==2) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_ls_to_lv_x1");
}
gPlaybackFileCycle++;
}
//------------------------------------------
public OnRecordingPlaybackEnd()
{
NextPlayback();
}
//------------------------------------------
public OnNPCEnterVehicle(vehicleid, seatid)
{
NextPlayback();
}
//------------------------------------------
public OnNPCExitVehicle()
{
StopRecordingPlayback();
gPlaybackFileCycle = 0;
}
//------------------------------------------