home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 42
/
CDGAMER42.iso
/
Egoboo
/
egoboo.exe
/
egoboo
/
modules
/
rogue.mod
/
objects
/
hanxbow.obj
/
script.txt
< prev
next >
Wrap
Text File
|
2000-03-17
|
934b
|
40 lines
// ZZ> This function makes an item fall to the floor when spawned
IfSpawned //
MakeAmmoKnown //
tmpargument = ACTIONJB //
DoAction //
KeepAction //
MakeCrushValid
IfCrushed
tmpx = selfx
tmpy = selfy
tmpdistance = selfz
tmpargument = 2
SpawnExactParticle
SpawnExactParticle
SpawnExactParticle
SpawnExactParticle
GoPoof
tmpargument = 1
SendMessageNear
IfDropped // Make it lie on floor
KeepAction //
IfHitGround // Play the drop sound
tmpargument = 2 //
tmpdistance = rand & 2047 + 9000 //
PlaySound //
IfGrabbed // Tell them what they've won...
SetTargetToWhoeverIsHolding //
IfTargetIsAPlayer //
tmpargument = 0 //
SendMessageNear //
IfUsed
MakeNameKnown
tmpargument = 25
SetReloadTime
IfAmmoOut
tmpargument = 3
tmpdistance = 11025
PlaySound
End // All done