Classes:Peasant

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Peasant
Actor type Monster Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number None Class Name Peasant


Classes: StrifeHumanoidPeasant

 →Peasant1

 →Peasant2

 →Peasant3

 →Peasant4

 →Peasant5

 →Peasant6

 →Peasant7

 →Peasant8

 →Peasant9

 →Peasant10

 →Peasant11

 →Peasant12

 →Peasant13

 →Peasant14

 →Peasant15

 →Peasant16

 →Peasant17

 →Peasant18

 →Peasant19

 →Peasant20

 →Peasant21

 →Peasant22

This is the regular Strife Peasant with a tan-coloured tunic. This particular peasant does not appear in-game but is used as a base class for all others.

DECORATE definition

ACTOR Peasant : StrifeHumanoid
{
  Health 31
  PainChance 200
  Speed 8
  Radius 20
  Height 56
  Monster
  +NEVERTARGET
  -COUNTKILL
  +NOSPLASHALERT
  +FLOORCLIP
  +JUSTHIT
  MinMissileChance 150
  MaxStepHeight 16
  MaxDropoffHeight 32
  SeeSound "peasant/sight"
  AttackSound "peasant/attack"
  PainSound "peasant/pain"
  DeathSound "peasant/death"
  HitObituary "$OB_PEASANT" // "%o should have never picked a fight with a civilian."
  States
  {
  Spawn:
    PEAS A 10 A_Look2
    Loop
  See:
    PEAS AABBCCDD 5 A_Wander
    Goto Spawn
  Melee:
    PEAS E 10 A_FaceTarget
    PEAS F 8 A_CustomMeleeAttack(2*random[PeasantAttack](1, 5)+2)
    PEAS E 8
    Goto See
  Pain:
    PEAS O 3
    PEAS O 3 A_Pain
    Goto Melee
  Wound:
    PEAS G 5
    PEAS H 10 A_GetHurt
    PEAS I 6
    Goto Wound+1
  Death:
    PEAS G 5
    PEAS H 5 A_Scream
    PEAS I 6
    PEAS J 5 A_NoBlocking
    PEAS K 5
    PEAS L 6
    PEAS M 8
    PEAS N 1400
    GIBS U 5
    GIBS V 1400
    Stop
  XDeath:
    GIBS M 5 A_TossGib
    GIBS N 5 A_XScream
    GIBS O 5 A_NoBlocking
    GIBS PQRS 4 A_TossGib
    Goto Death+8
  }
}