1. Automatically activate boots for these new floors.
2. In the "EVENT_USESTEROIDS" event, activate one of the two quotes at random once (quote 12 and quote 325).
gamevar BOOTAMOUNT 0 1
gamevar FLOORTEMP 0 2
gamevar FLOORTEMP2 0 2
gamevar GETTEMP4 0 2
gamevar GETTEMP5 0 2
gamevar x 0 2
gamevar y 0 2
gamevar z 0 2
state getfloordist
getactor[THISACTOR].x x
getactor[THISACTOR].y y
updatesector x y GETTEMP4 // you should not trust [THISACTOR].Sectnum
ifvarn GETTEMP4 -1
getflorzofslope GETTEMP4 x y z
getactor[THISACTOR].z GETTEMP5
subvarvar z GETTEMP5
shiftvarr z 8
subvar z 1
ends
state bluefloordead // new deadly floor
state getfloordist
ifvarl z 5
{
ifdead break
else
{
ifvarg player[THISACTOR].boot_amount 0 break
setvar BOOTAMOUNT 200
getsector[THISACTOR].floorpicnum FLOORTEMP
ifvare FLOORTEMP BLUEFLOORDEAD
{
setactor[THISACTOR].htextra FLOORTEMP
getactor[THISACTOR].extra FLOORTEMP2
sound DUKE_DEAD
sound TELEPORTERLIZ64
espawn SPARKLE_LIGHT
setactor[RETURN].xrepeat 60
setactor[RETURN].yrepeat 60
}
}
}
ends
onevent EVENT_USESTEROIDS
ifvarg player[THISACTOR].steroids_amount 0
setvar STERAMOUNT 400
ifvarg player[THISACTOR].steroids_amount 0
{
setvar STEROIDSTEMP 1
quote 12
ifrnd 64
quote 235
setvar STEROIDSTEMP 0
}
endevent

Help
Duke4.net
DNF #1
Duke 3D #1



