Rev 71 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 71 | Rev 73 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | 20 | ||
21 | spritenoshade GROWAMMO |
21 | spritenoshade GROWAMMO |
22 | 22 | ||
23 | setgamename Duke Caribbean: Life's A Beach |
23 | setgamename Duke Caribbean: Life's A Beach |
24 | 24 | ||
25 | gamevar temp 0 2 |
25 | gamevar vaca_temp 0 2 |
26 | gamevar x 0 2 |
26 | gamevar vaca_x 0 2 |
27 | gamevar y 0 2 |
27 | gamevar vaca_y 0 2 |
28 | gamevar picnum 0 2 |
28 | gamevar vaca_picnum 0 2 |
29 | 29 | ||
30 | gamevar temp2 0 2 |
30 | gamevar vaca_temp2 0 2 |
31 | gamevar temp3 0 2 |
31 | gamevar vaca_temp3 0 2 |
32 | gamevar x2 0 2 |
32 | gamevar vaca_x2 0 2 |
33 | gamevar y2 0 2 |
33 | gamevar vaca_y2 0 2 |
34 | gamevar pose 0 0 |
34 | gamevar vaca_pose 0 0 |
35 | 35 | ||
36 | // disable hardcoded Polymer dynamic lighting muzzle flashes |
36 | // disable hardcoded Polymer dynamic lighting muzzle flashes |
37 | gamevar WEAPON1_FLASHCOLOR 0 1 |
37 | gamevar WEAPON1_FLASHCOLOR 0 1 |
38 | gamevar WEAPON2_FLASHCOLOR 0 1 |
38 | gamevar WEAPON2_FLASHCOLOR 0 1 |
39 | gamevar WEAPON3_FLASHCOLOR 0 1 |
39 | gamevar WEAPON3_FLASHCOLOR 0 1 |
Line 75... | Line 75... | ||
75 | } |
75 | } |
76 | endevent |
76 | endevent |
77 | */ |
77 | */ |
78 | 78 | ||
79 | state cutsceneambience |
79 | state cutsceneambience |
80 | getactor[THISACTOR].lotag temp |
80 | getactor[THISACTOR].lotag vaca_temp |
81 | 81 | ||
82 | switch temp |
82 | switch vaca_temp |
83 | 83 | ||
84 | case WIND_AMBIENCE |
84 | case WIND_AMBIENCE |
85 | case WIND_REPEAT |
85 | case WIND_REPEAT |
86 | setactor[THISACTOR].lotag WIND2 |
86 | setactor[THISACTOR].lotag WIND2 |
87 | break |
87 | break |
88 | 88 | ||
89 | endswitch |
89 | endswitch |
90 | ends |
90 | ends |
91 | 91 | ||
92 | onevent EVENT_LOADACTOR |
92 | onevent EVENT_LOADACTOR |
93 | getactor[THISACTOR].picnum picnum |
93 | getactor[THISACTOR].picnum vaca_picnum |
94 | switch picnum |
94 | switch vaca_picnum |
95 | 95 | ||
96 | case DRAGON sizeat 42 50 break |
96 | case DRAGON sizeat 42 50 break |
97 | case BEACHBABE1 sizeat 40 40 break |
97 | case BEACHBABE1 sizeat 40 40 break |
98 | case BEACHBALL sizeat 30 30 break |
98 | case BEACHBALL sizeat 30 30 break |
99 | case BEACHBATHER1 sizeat 42 40 break |
99 | case BEACHBATHER1 sizeat 42 40 break |
Line 102... | Line 102... | ||
102 | case GROWSPRITEICON sizeat 28 28 break |
102 | case GROWSPRITEICON sizeat 28 28 break |
103 | 103 | ||
104 | case 681 case 682 case 683 case 684 cactor CHAIR3 break |
104 | case 681 case 682 case 683 case 684 cactor CHAIR3 break |
105 | 105 | ||
106 | case CAMERA1 |
106 | case CAMERA1 |
107 | getactor[THISACTOR].cstat temp |
107 | getactor[THISACTOR].cstat vaca_temp |
108 | setvar temp2 0 |
108 | setvar vaca_temp2 0 |
109 | ifvarand temp 4 addvar temp2 4 |
109 | ifvarand vaca_temp 4 addvar vaca_temp2 4 |
110 | ifvarand temp 8 addvar temp2 8 |
110 | ifvarand vaca_temp 8 addvar vaca_temp2 8 |
111 | setactor[THISACTOR].cstat temp2 |
111 | setactor[THISACTOR].cstat vaca_temp2 |
112 | break |
112 | break |
113 | 113 | ||
114 | case MUSICANDSFX |
114 | case MUSICANDSFX |
115 | state cutsceneambience |
115 | state cutsceneambience |
116 | break |
116 | break |
Line 119... | Line 119... | ||
119 | endevent |
119 | endevent |
120 | 120 | ||
121 | gamevar LOGO_FLAGS 767 0 // default; TEN screen reenabled |
121 | gamevar LOGO_FLAGS 767 0 // default; TEN screen reenabled |
122 | 122 | ||
123 | onevent EVENT_GAME |
123 | onevent EVENT_GAME |
124 | getactor[THISACTOR].picnum picnum |
124 | getactor[THISACTOR].picnum vaca_picnum |
125 | switch picnum |
125 | switch vaca_picnum |
126 | 126 | ||
127 | case RPG |
127 | case RPG |
128 | case FREEZEBLAST |
128 | case FREEZEBLAST |
129 | setactor[THISACTOR].htflags 256 |
129 | setactor[THISACTOR].htflags 256 |
130 | break |
130 | break |
Line 140... | Line 140... | ||
140 | ifsound WIND_REPEAT stopsound WIND_REPEAT |
140 | ifsound WIND_REPEAT stopsound WIND_REPEAT |
141 | break |
141 | break |
142 | */ |
142 | */ |
143 | 143 | ||
144 | case CHAIR3 |
144 | case CHAIR3 |
145 | ifvare temp3 0 |
145 | ifvare vaca_temp3 0 |
146 | { |
146 | { |
147 | findnearsprite3d 1037 768 temp |
147 | findnearsprite3d 1037 768 vaca_temp |
148 | ifvarn temp -1 |
148 | ifvarn vaca_temp -1 |
149 | { |
149 | { |
150 | getactor[temp].x x2 |
150 | getactor[vaca_temp].x vaca_x2 |
151 | getactor[temp].y y2 |
151 | getactor[vaca_temp].y vaca_y2 |
152 | getactor[THISACTOR].x x |
152 | getactor[THISACTOR].x vaca_x |
153 | getactor[THISACTOR].y y // gets the coordinates of the chair and table |
153 | getactor[THISACTOR].y vaca_y // gets the coordinates of the chair and table |
154 | subvarvar x2 x |
154 | subvarvar vaca_x2 vaca_x |
155 | subvarvar y2 y |
155 | subvarvar vaca_y2 vaca_y |
156 | getangle temp2 x2 y2 // calculates the angle to face the table |
156 | getangle vaca_temp2 vaca_x2 vaca_y2 // calculates the angle to face the table |
157 | setactor[THISACTOR].ang temp2 // sets the angle |
157 | setactor[THISACTOR].ang vaca_temp2 // sets the angle |
158 | setvar temp3 1 |
158 | setvar vaca_temp3 1 |
159 | } |
159 | } |
160 | else setvar temp3 1 |
160 | else setvar vaca_temp3 1 |
161 | } |
161 | } |
162 | break |
162 | break |
163 | 163 | ||
164 | case SHELL |
164 | case SHELL |
165 | case SHOTGUNSHELL |
165 | case SHOTGUNSHELL |
166 | killit |
166 | killit |
167 | break |
167 | break |
168 | 168 | ||
169 | case CAMERA1 |
169 | case CAMERA1 |
170 | setactor[THISACTOR].cstat temp2 |
170 | setactor[THISACTOR].cstat vaca_temp2 |
171 | break |
171 | break |
172 | 172 | ||
173 | case SMALLSMOKE |
173 | case SMALLSMOKE |
174 | ifspawnedby RPG killit |
174 | ifspawnedby RPG killit |
175 | break |
175 | break |
Line 192... | Line 192... | ||
192 | 192 | ||
193 | endswitch |
193 | endswitch |
194 | endevent |
194 | endevent |
195 | 195 | ||
196 | onevent EVENT_EGS |
196 | onevent EVENT_EGS |
197 | getactor[THISACTOR].picnum picnum |
197 | getactor[THISACTOR].picnum vaca_picnum |
198 | switch picnum |
198 | switch vaca_picnum |
199 | 199 | ||
200 | case FREEZEAMMO |
200 | case FREEZEAMMO |
201 | spritepal 1 |
201 | spritepal 1 |
202 | spawn BLOODPOOL // spawn a water puddle as an added "cool" effect |
202 | spawn BLOODPOOL // spawn a water puddle as an added "cool" effect |
203 | getlastpal |
203 | getlastpal |
Line 250... | Line 250... | ||
250 | spawn BLOODPOOL |
250 | spawn BLOODPOOL |
251 | } // a badly drawn spine |
251 | } // a badly drawn spine |
252 | ends |
252 | ends |
253 | 253 | ||
254 | state randgetweapsnds |
254 | state randgetweapsnds |
255 | setvar temp2 0 |
255 | setvar vaca_temp2 0 |
256 | randvar temp2 2 |
256 | randvar vaca_temp2 2 |
257 | switch temp2 |
257 | switch vaca_temp2 |
258 | case 0 globalsound DUKE_GETWEAPON1 break |
258 | case 0 globalsound DUKE_GETWEAPON1 break |
259 | case 1 globalsound DUKE_GETWEAPON2 break |
259 | case 1 globalsound DUKE_GETWEAPON2 break |
260 | case 2 globalsound DUKE_GETWEAPON4 break |
260 | case 2 globalsound DUKE_GETWEAPON4 break |
261 | endswitch |
261 | endswitch |
262 | ends |
262 | ends |
Line 294... | Line 294... | ||
294 | ifp palive |
294 | ifp palive |
295 | ifpdistl RETRIEVEDISTANCE |
295 | ifpdistl RETRIEVEDISTANCE |
296 | ifcount 6 |
296 | ifcount 6 |
297 | ifcanseetarget |
297 | ifcanseetarget |
298 | { |
298 | { |
299 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON temp2 |
299 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON vaca_temp2 |
300 | getplayer[THISACTOR].gotweapon GROW_WEAPON temp |
300 | getplayer[THISACTOR].gotweapon GROW_WEAPON vaca_temp |
301 | addammo SHRINKER_WEAPON CRYSTALAMMOAMOUNT |
301 | addammo SHRINKER_WEAPON CRYSTALAMMOAMOUNT |
302 | ifvare temp2 0 ifvare temp 1 setplayer[THISACTOR].gotweapon SHRINKER_WEAPON 1 |
302 | ifvare vaca_temp2 0 ifvare vaca_temp 1 setplayer[THISACTOR].gotweapon SHRINKER_WEAPON 1 |
303 | 303 | ||
304 | quote 78 |
304 | quote 78 |
305 | ifspawnedby CRYSTALAMMO |
305 | ifspawnedby CRYSTALAMMO |
306 | state getcode |
306 | state getcode |
307 | else |
307 | else |
Line 319... | Line 319... | ||
319 | ifp palive |
319 | ifp palive |
320 | ifpdistl RETRIEVEDISTANCE |
320 | ifpdistl RETRIEVEDISTANCE |
321 | ifcount 6 |
321 | ifcount 6 |
322 | ifcanseetarget |
322 | ifcanseetarget |
323 | { |
323 | { |
324 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON temp2 |
324 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON vaca_temp2 |
325 | getplayer[THISACTOR].gotweapon GROW_WEAPON temp |
325 | getplayer[THISACTOR].gotweapon GROW_WEAPON vaca_temp |
326 | addammo GROW_WEAPON GROWCRYSTALAMMOAMOUNT |
326 | addammo GROW_WEAPON GROWCRYSTALAMMOAMOUNT |
327 | ifvare temp 0 ifvare temp2 1 setplayer[THISACTOR].gotweapon GROW_WEAPON 1 |
327 | ifvare vaca_temp 0 ifvare vaca_temp2 1 setplayer[THISACTOR].gotweapon GROW_WEAPON 1 |
328 | 328 | ||
329 | quote 123 |
329 | quote 123 |
330 | ifspawnedby GROWAMMO |
330 | ifspawnedby GROWAMMO |
331 | state getcode |
331 | state getcode |
332 | else |
332 | else |
Line 348... | Line 348... | ||
348 | ifcount 6 |
348 | ifcount 6 |
349 | ifcanseetarget |
349 | ifcanseetarget |
350 | { |
350 | { |
351 | ifgotweaponce 0 |
351 | ifgotweaponce 0 |
352 | break |
352 | break |
353 | getplayer[THISACTOR].gotweapon GROW_WEAPON temp |
353 | getplayer[THISACTOR].gotweapon GROW_WEAPON vaca_temp |
354 | addweapon SHRINKER_WEAPON 10 |
354 | addweapon SHRINKER_WEAPON 10 |
355 | ifvare temp 0 setplayer[THISACTOR].gotweapon GROW_WEAPON 0 |
355 | ifvare vaca_temp 0 setplayer[THISACTOR].gotweapon GROW_WEAPON 0 |
356 | 356 | ||
357 | quote 60 |
357 | quote 60 |
358 | ifspawnedby SHRINKERSPRITE |
358 | ifspawnedby SHRINKERSPRITE |
359 | state getweaponcode |
359 | state getweaponcode |
360 | else |
360 | else |
Line 376... | Line 376... | ||
376 | ifcount 6 |
376 | ifcount 6 |
377 | ifcanseetarget |
377 | ifcanseetarget |
378 | { |
378 | { |
379 | ifgotweaponce 0 |
379 | ifgotweaponce 0 |
380 | break |
380 | break |
381 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON temp |
381 | getplayer[THISACTOR].gotweapon SHRINKER_WEAPON vaca_temp |
382 | addweapon GROW_WEAPON 10 |
382 | addweapon GROW_WEAPON 10 |
383 | ifvare temp 0 setplayer[THISACTOR].gotweapon SHRINKER_WEAPON 0 |
383 | ifvare vaca_temp 0 setplayer[THISACTOR].gotweapon SHRINKER_WEAPON 0 |
384 | 384 | ||
385 | quote 999 |
385 | quote 999 |
386 | ifspawnedby GROWSPRITEICON |
386 | ifspawnedby GROWSPRITEICON |
387 | state getweaponcode |
387 | state getweaponcode |
388 | else |
388 | else |
Line 408... | Line 408... | ||
408 | // ----------------------------------------------------------------------------- |
408 | // ----------------------------------------------------------------------------- |
409 | 409 | ||
410 | useractor notenemy 3831 0 |
410 | useractor notenemy 3831 0 |
411 | // cstat 32768 |
411 | // cstat 32768 |
412 | sizeat 12 13 |
412 | sizeat 12 13 |
413 | getactor[THISACTOR].sectnum temp |
413 | getactor[THISACTOR].sectnum vaca_temp |
414 | getplayer[THISACTOR].cursectnum temp2 |
414 | getplayer[THISACTOR].cursectnum vaca_temp2 |
415 | ifvarvare temp temp2 |
415 | ifvarvare vaca_temp vaca_temp2 |
416 | { |
416 | { |
417 | setuserdef[THISACTOR].volume_number 2 |
417 | setuserdef[THISACTOR].volume_number 2 |
418 | endofgame 13 |
418 | endofgame 13 |
419 | } |
419 | } |
420 | enda |
420 | enda |
421 | 421 | ||
422 | 422 | ||
423 | useractor notenemy TIKIGOD 0 |
423 | useractor notenemy TIKIGOD 0 |
424 | getactor[THISACTOR].cstat temp |
424 | getactor[THISACTOR].cstat vaca_temp |
425 | ifvarand temp 16 setactor[THISACTOR].mdflags 1 |
425 | ifvarand vaca_temp 16 setactor[THISACTOR].mdflags 1 |
426 | enda |
426 | enda |
427 | 427 | ||
428 | 428 | ||
429 | onevent EVENT_ANIMATESPRITES |
429 | onevent EVENT_ANIMATESPRITES |
430 | switch picnum |
430 | switch vaca_picnum |
431 | 431 | ||
432 | case GROWAMMO |
432 | case GROWAMMO |
433 | // t->shade = (sintable[(totalclock<<4)&2047]>>10); |
433 | // t->shade = (sintable[(totalclock<<4)&2047]>>10); |
434 | setvarvar temp totalclock |
434 | setvarvar vaca_temp totalclock |
435 | shiftvarl temp 4 |
435 | shiftvarl vaca_temp 4 |
436 | andvar temp 2047 |
436 | andvar vaca_temp 2047 |
437 | sin temp temp |
437 | sin vaca_temp vaca_temp |
438 | shiftvarr temp 10 |
438 | shiftvarr vaca_temp 10 |
439 | settspr[THISACTOR].tsprshade temp |
439 | settspr[THISACTOR].tsprshade vaca_temp |
440 | break |
440 | break |
441 | 441 | ||
442 | case DRAGON |
442 | case DRAGON |
443 | case DRAGONDEATH |
443 | case DRAGONDEATH |
444 | ifvarn temp3 -1 |
444 | ifvarn vaca_temp3 -1 |
445 | settspr[THISACTOR].tsprang temp3 |
445 | settspr[THISACTOR].tsprang vaca_temp3 |
446 | break |
446 | break |
447 | 447 | ||
448 | endswitch |
448 | endswitch |
449 | endevent |
449 | endevent |
450 | 450 | ||
Line 453... | Line 453... | ||
453 | define title_y1 186 |
453 | define title_y1 186 |
454 | define title_y2 194 |
454 | define title_y2 194 |
455 | define title_zoom 32768 |
455 | define title_zoom 32768 |
456 | 456 | ||
457 | onevent EVENT_DISPLAYMENU |
457 | onevent EVENT_DISPLAYMENU |
458 | // getplayer[THISACTOR].gm temp |
458 | // getplayer[THISACTOR].gm vaca_temp |
459 | // ifvarand temp 4 nullop else |
459 | // ifvarand vaca_temp 4 nullop else |
460 | // { |
460 | // { |
461 | rotatesprite title_x1 title_y1 title_zoom 0 3838 0 0 0 0 0 xdim ydim |
461 | rotatesprite title_x1 title_y1 title_zoom 0 3838 0 0 0 0 0 xdim ydim |
462 | rotatesprite title_x2 title_y2 title_zoom 0 3839 0 0 0 0 0 xdim ydim |
462 | rotatesprite title_x2 title_y2 title_zoom 0 3839 0 0 0 0 0 xdim ydim |
463 | // } |
463 | // } |
464 | endevent |
464 | endevent |