home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Total Meltdown
/
dukenukemtotalmeltdown.img
/
doco
/
cons
/
trashcan
/
rubxtra.con
< prev
next >
Wrap
Text File
|
1996-07-02
|
2KB
|
53 lines
// This is a blank text file for incorporating Trashcan data for the
// purposes of the tutorial. If you like, delete this file and rename
// rubxtra.com (completed) to rubextra.con which is the completed
// con file for this tutorial.
state hit_duke_ricochet
ifrnd 96 { // Duke hit by ricochet
sound DUKE_LONGTERM_PAIN // Sound a pain
palfrom 32 33 // palette the screen
addphealth -5 // deduct 5 points of health
quote 122 // Print quote on screen
ifrnd 128 { wackplayer } // wack player on head
}
ends
// action RUBCANDENT 1 1 1 1 1
// action RUBCAN
actor RUBBERCAN WEAK
ifaction RUBCANDENT { ifactioncount 6 { strength 0 action RUBCAN break } }
else ifhitweapon
{
ifwasweapon RADIUSEXPLOSION
{ state rats
ifrnd 48 spawn BURNING
debris SCRAP2 60
debris SCRAP3 72
killit }
else
ifwasweapon SHOTSPARK1
{
action RUBCANDENT // Dent the can
ifrnd 128 {
sound PISTOL_RICOCHET // sound a ricochet 50 % of the time.
ifrnd 64 state hit_duke_ricochet
}
ifrnd 128 lotsofglass 20
ifrnd 128 debris SCRAP2 10
}
else action RUBCANDENT
}
enda