// ZZ> This function makes an item fall to the floor when spawned
IfSpawned				//
  tmpargument = ACTIONJB		  //
  DoAction				  //
  KeepAction				  //
  MakeCrushValid

IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 5
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear


IfDropped				// Make it lie on floor
  KeepAction				  //

IfHitGround				// Make a sound
  tmpargument = 1			  //
  tmpdistance = rand & 2047 + 10000	  //
  PlaySound				  //

IfGrabbed				// Tell them what they've won...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer
    tmpargument = 0			  //
    SendMessageNear			  //


IfUsed
  SetTargetToWhoeverIsHolding
  IfHeldInLeftHand
    SetTargetToTargetRightHand
  Else
    SetTargetToTargetLeftHand
  tmpargument = [SHOT]
  IfTargetHasID
    SetTargetToWhoeverIsHolding
    tmpargument = [SHOT]
    RestockTargetAmmoIDFirst
    tmpargument = 0			  //
    tmpdistance = rand & 2047 + 5000	  //
    PlaySound				  //
    tmpdistance = rand & 2047 + 5000	  //
    PlaySound				  //
    tmpdistance = rand & 2047 + 5000	  //
    PlaySound				  //
    tmpargument = 2
    SendMessageNear
    GoPoof


// Need to be damaged by fire and explode!!

End					// All done

