home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 42
/
CDGAMER42.iso
/
Egoboo
/
egoboo.exe
/
egoboo
/
modules
/
healer.mod
/
objects
/
blob.obj
/
script.txt
< prev
next >
Wrap
Text File
|
2000-05-26
|
2KB
|
78 lines
//------------------------------------------------------------------------------
// ZZ> Set up basic things
IfSpawned
SetTurnModeToSpin
tmpx = selfx
tmpy = selfy
tmpargument = 0
SetXY
//------------------------------------------------------------------------------
// ZZ> Handle being bumped by absorbing self into bumper ( if on other team )
IfStateIs0
IfBumped
SetTargetToWhoeverBumped
IfTargetIsOnHatedTeam
// Send a death message
tmpargument = MESSAGEDEATH
SendMessageNear
// Do some damage
tmpargument = rand & 1023 + 2560 // 10 - 15
DamageTarget
// Play the absorb sound
tmpargument = 0
tmpdistance = rand & 2047 + 10000
PlaySound
// Play the death animation ( blob poofs at end of action... )
tmpargument = ACTIONKA
DoActionOverride
// Make sure it doesn't absorb twice
tmpargument = 1
SetState
// Give some experience as a consolation prize...
tmpargument = 10
tmpdistance = EXPSECRET
GiveExperienceToTarget
//------------------------------------------------------------------------------
IfTimeOut
tmpargument = rand & 15 + 20
SetTime
// Move around
tmpargument = 0
GetXY
tmpx = rand & 512 + selfspawnx - 256 + tmpx > 1
tmpy = rand & 512 + selfspawny - 256 + tmpy > 1
ClearWaypoints
AddWaypoint
tmpargument = 0
SetXY
// Play the random sound
tmpx = rand & 255
tmpy = 100
IfXIsLessThanY
tmpargument = 1
tmpdistance = rand & 2047 + 10000
PlaySound
//------------------------------------------------------------------------------
End
//------------------------------------------------------------------------------