ON INIT {
 BEHAVIOR WANDER_AROUND 800
 SETTARGET NONE
 IF (§dead == 2) ACCEPT
 SET §dead 0
 ACCEPT
}

ON RELOAD {
 IF (#need_superweapon == 1) {
  IF (§dead == 1) {
   SET §dead 2
   GOTO WRAT_SPAWN
   TELEPORT MARKER_0747
   ACCEPT
  }
  ACCEPT
 }
 ACCEPT
}

ON DIE {
 IF (§dead == 0) SET §dead 1
 ACCEPT
}

>>WRAT_SPAWN
 REVIVE
 SET £type "Rat_wrat"
 USEMESH "wrat_base\wrat_base.teo"
 TWEAK SKIN "npc_rat_base_cm" "npc_rat_base"
 ACCEPT