home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 4.4
/
1998-10_Disc_4.4.iso
/
sindemo
/
sin_demo.exe
/
DATA
/
base
/
Pak0.pak
/
maps
/
sincitydemo.scr
< prev
next >
Wrap
Text File
|
1998-07-26
|
3KB
|
124 lines
//--------------------------------------------------------------
// SincityDemo Script
// Tom Mustaine - Ritual Entertainment
//--------------------------------------------------------------
music none none
wait .5
//--------------------------------------------------------------
// Script init
//--------------------------------------------------------------
thread Crane
thread Shave_and_a_Haircut
thread Opendoor_Check
//--------------------------------------------------------------
// Crane Initial Setup
//--------------------------------------------------------------
Crane:
$crane time .1
$crane rotateYdownto -35
waitFor $crane
goto Wait_for_Crane
//--------------------------------------------------------------
// Crane wait and move
//--------------------------------------------------------------
Wait_for_Crane:
$crane ondamage movecrane
pause
movecrane:
$crane time 5
$crane nodamage
$crane rotateYdownto -145
waitFor $crane
wait 2
$crane rotateYupto -35
waitFor $crane
goto Wait_for_Crane
end
//--------------------------------------------------------------
// Door knocking secret
//--------------------------------------------------------------
Shave_and_a_Haircut:
local.knocktimes = 0
2bits:
$knockdoor onuse startknock
pause
startknock:
$knockdoor nouse
thread checkknockstart
$doorsound playsound impact/landing/land4.wav 1
level.doorknock = 1
wait .2
level.doorknock = 0
goto 2bits
//Shave and a Haircut string "X...X.XX.X...X..X"
checkknockstart:
// Check if a door knocking pattern has started
level.knockstarted ifequal 1 goto bah
level.knockstarted ifequal 0 goto checkknockstart2
bah:
end
checkknockstart2:
local.knocktimes = 1
checkknock:
level.knockstarted = 1
level.doorknock ifequal 1 local.thestring append "X"
level.doorknock ifequal 0 local.thestring append "."
//print local.thestring
//newline
wait .2
local.knocktimes += 1
local.knocktimes iflessequal 6 goto checkknock
//Checking knock pattern string
local.thestring ifstrequal ".XX..X" goto openknockdoor
level.knockstarted = 0
end
openknockdoor:
$knockdoor notrigger
level.knockstarted = 0
$knockdoor time .3
$knockdoor playsound environment/doors/wood/wdpn1.wav 1
$knockdoor rotateYup 90
$knockportal open
waitFor $knockdoor
wait 2
$knockdoor rotateYdown 90
$knockdoor playsound environment/doors/wood/wddrcls1.wav 1
waitFor $knockdoor
$knockportal close
thread Opendoor_Check
end
//--------------------------------------------------------------
// Check secret door for open from other side
//--------------------------------------------------------------
Opendoor_Check:
$knockdoor ontrigger opendoor
pause
opendoor:
$knockdoor notrigger
$knockdoor time .3
$knockdoor playsound environment/doors/wood/wdpn1.wav 1
$knockdoor rotateYdown 90
$knockportal open
waitFor $knockdoor
wait 2
$knockdoor rotateYup 90
$knockdoor playsound environment/doors/wood/wddrcls1.wav 1
waitFor $knockdoor
$knockportal close
goto Opendoor_Check