heretic2-sdk/Toolkit/Designer/dsexamples/cloud/stairs.ds

66 lines
1.8 KiB
Text
Raw Normal View History

1998-11-24 00:00:00 +00:00
// stairs go down to secret room
#include "../common/header.ds"
output "r:/base/ds/cloud"
//define variables
local entity step1
local entity step2
local entity step3
local entity step4
local entity step5
local entity step6
local entity step7
local entity step8
local entity panelr
local entity panell
local int sig1
local int sig2
local int sig3
local int sig4
local int sig5
local int sig6
local int sig7
local int sig8
step1 = find entity with targetname "s1"
step2 = find entity with targetname "s2"
step3 = find entity with targetname "s3"
step4 = find entity with targetname "s4"
step5 = find entity with targetname "s5"
step6 = find entity with targetname "s6"
step7 = find entity with targetname "s7"
step8 = find entity with targetname "s8"
panelr = find entity with targetname "pr"
panell = find entity with targetname "pl"
// move stuff
label loop
move entity step1 by [0, 0, -16] at 50 speed signaling sig1
move entity step2 by [0, 0, -32] at 55 speed signaling sig2
move entity step3 by [0, 0, -48] at 60 speed signaling sig3
move entity step4 by [0, 0, -64] at 65 speed signaling sig4
move entity step5 by [0, 0, -80] at 70 speed signaling sig5
move entity step6 by [0, 0, -96] at 75 speed signaling sig6
move entity step7 by [0, 0, -112] at 80 speed signaling sig7
move entity step8 by [0, 0, -128] at 85 speed signaling sig8
wait for all clearing sig1, sig2, sig3, sig4, sig5, sig6, sig7, sig8
play sound "doors/kchunk7.wav" for entity panelr on channel 10
move entity panelr by [56, 0, 0] at 50 speed signaling sig1
move entity panell by [-56, 0, 0] at 50 speed signaling sig2
wait for all clearing sig1, sig2
play sound "doors/kchunk6.wav" for entity panelr on channel 10
suspend
goto loop