qzdoom-gpl/wadsrc/decorate/heretic/clink.txt
Christoph Oelckers d840d9b68a - Added random2 function to DECORATE's expression evaluator. This is to
better emulate some calculation of internal code pointers.
- Added named RNG support to DECORATE's expression evaluator. Just use
  random[name](min, max).


SVN r391 (trunk)
2006-11-26 12:13:12 +00:00

48 lines
762 B
Text

ACTOR Clink 90
{
Game Heretic
SpawnID 1
Health 150
Radius 20
Height 64
Mass 75
Speed 14
Painchance 32
Monster
+NOBLOOD
+FLOORCLIP
SeeSound "clink/sight"
AttackSound "clink/attack"
PainSound "clink/pain"
DeathSound "clink/death"
ActiveSound "clink/active"
Obituary "$OB_CLINK"
DropItem "SkullRodAmmo", 84, 20
States
{
Spawn:
CLNK AB 10 A_Look
Loop
See:
CLNK ABCD 3 A_Chase
Loop
Melee:
CLNK E 5 A_FaceTarget
CLNK F 4 A_FaceTarget
CLNK G 7 A_CustomMeleeAttack(random[ClinkAttack](3,9), "clink/attack", "clink/attack")
Goto See
Pain:
CLNK H 3
CLNK H 3 A_Pain
Goto See
Death:
CLNK IJ 6
CLNK K 5 A_Scream
CLNK L 5 A_NoBlocking
CLNK MN 5
CLNK O -1
Stop
}
}