source: AE/packages/VanillaBSL/IGMD/power_II/particle_scripts.bsl@ 646

Last change on this file since 646 was 407, checked in by gumby, 15 years ago

rename ahoy

File size: 3.5 KB
Line 
1#partice scripts
2#alex okita
3#turns on and off particles for rooms
4
5####################################
6## ROOM 1 ##
7####################################
8func void particle_room1_start(string ai_name)
9{
10 dprint start_room1_particles
11 particle room1 do start
12}
13func void particle_room1_stop(string ai_name)
14{
15 dprint stop_room1_particles
16 particle room1 do stop
17}
18
19####################################
20## ROOM 2 ##
21####################################
22func void particle_room2_start(string ai_name)
23{
24 dprint start_room2_particles
25 particle room2 do start
26}
27func void particle_room2_stop(string ai_name)
28{
29 dprint stop_room2_particles
30 particle room2 do stop
31}
32
33####################################
34## ROOM 3 ##
35####################################
36func void particle_room3_start(string ai_name)
37{
38 dprint start_room3_particles
39 particle room3 do start
40}
41func void particle_room3_stop(string ai_name)
42{
43 dprint stop_room3_particles
44 particle room3 do stop
45}
46
47####################################
48## ROOM 4 ##
49####################################
50func void particle_room4_start(string ai_name)
51{
52 dprint start_room4_particles
53 particle room4 do start
54}
55func void particle_room4_stop(string ai_name)
56{
57 dprint stop_room4_particles
58 particle room4 do stop
59}
60
61####################################
62## ROOM 5 ##
63####################################
64func void particle_room5_start(string ai_name)
65{
66 dprint start_room5_particles
67 particle room5 do start
68}
69func void particle_room5_stop(string ai_name)
70{
71 dprint stop_room5_particles
72 particle room5 do stop
73}
74
75####################################
76## vat room ##
77####################################
78func void particle_vatroom1_start(string ai_name)
79{
80 dprint start_vatroom1_particles
81 particle vatroom1 do start
82}
83func void particle_vatroom1_stop(string ai_name)
84{
85 dprint stop_vatroom1_particles
86 particle vatroom1 do stop
87}
88
89####################################
90# first energy sprinkler activator #
91# this one starts over the first #
92# vat. #
93# the particle name is "zap1" #
94####################################
95
96var int zap=1;
97
98func void zap_start(string ai_name)
99{
100 dprint zap_on
101
102 trigvolume_enable zap1 0
103
104 if (zap eq 1)
105 {
106 particle zap1 do start
107 sleep 120
108 particle zap1 stop
109 }
110
111 if (zap eq 1)
112 {
113 particle zap2 start
114 sleep 120
115 particle zap2 stop
116 }
117
118 if (zap eq 1)
119 {
120 particle zap3 start
121 sleep 120
122 particle zap3 stop
123 }
124
125 # CB: this delay ensures we don't execute every frame
126 sleep 60
127 trigvolume_enable zap1 1
128}
129
130func void zap_timer_1(string ai_name)
131{
132 dprint do_zap_timer_1
133 zap = 0
134 timer_start 15 zap_start_again
135}
136
137func void zap_timer_2(string ai_name)
138{
139 dprint do_zap_timer_2
140 zap = 0
141 timer_start 10 zap_start_again
142}
143
144func void zap_timer_3(string ai_name)
145{
146 dprint do_zap_timer_3
147 zap = 0
148 timer_start 5 zap_start_again
149}
150
151func void zap_start_again(string ai_name)
152{
153 dprint zap_on_again
154 zap = 1
155 console_reset 4
156}
157
158# FINAL PIPE
159func void pipe3_start(string ai_name)
160{
161 dprint pipe_started
162 particle pipe3 do start
163}
164
165
166func void zap_kill(string ai_name)
167{
168 dprint zap_die
169 particle zap1 kill
170 particle zap2 kill
171 particle zap3 kill
172}
173
174func void zap_create(string ai_name)
175{
176 dprint zap_live
177 particle zap1 create
178 particle zap2 create
179 particle zap3 create
180}
Note: See TracBrowser for help on using the repository browser.