IfSpawned
  tmpargument = passage
  AddShopPassage

IfTimeOut
  tmpx = rand & 225 + selfspawnx
  tmpy = rand & 225 + selfspawny
  ClearWaypoints
  AddWaypoint
  tmpargument = rand & 15 + 30
  SetTime

//-----------------------------------------------------------------------------
IfHitGround
  tmpargument = 0
  tmpdistance = 17000
  PlaySound

//------------------------------------------------------------------------------
// ZZ> Scream and shout
IfUsed
  tmpdistance = rand & 2047 + 12000
  tmpargument = rand % 2 + 8
  PlaySound
  tmpargument = ACTIONKA
  DoAction


//------------------------------------------------------------------------------
// ZZ> Handle death by sending a message and other stuff
IfKilled
  CallForHelp			//Warn friends
  tmpargument = 7
  PlaySound
  tmpargument = MESSAGEDEATH
  IfTargetIsOnSameTeam
    tmpargument = MESSAGEFRAG
    IfTargetIsSelf
      tmpargument = MESSAGEACCIDENT
  SendMessage

  // Drop goodies
  tmpargument = 65535
  DropMoney
  DropKeys

  // Make the character body
  tmpargument = 45
  SetBumpHeight


//------------------------------------------------------------------------------
// ZZ> Handle being attacked by screaming
IfAttacked
  SetTargetToWhoeverAttacked
    tmpargument = rand & 1 + 5
    tmpdistance = rand & 2047 + 12000
    PlaySound


//------------------------------------------------------------------------------
End
//------------------------------------------------------------------------------
