mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
782b8a3b92
- Fixed: Voodoo dolls should not start ENTER scripts. - Fixed: ActorDamage must not parse the enclosing parentheses as part of the expression. That will produce an error if a flag set or clear command immediately follows. - Fixed: P_DamageMobj ignored MF2_NODMGTHRUST if the damaging object had no owner. - Added a 'font' parameter to A_Print. - Changed A_CustomMeleeAttack to take one damage parameter only. Since expressions can be used this value is not used as a factor for a random value but as a direct damage value instead. - Fixed: AActor::SetState must check whether a called action function resulted in the actor's destruction. A_Jump constructs to a 0-length terminating state will hang if this isn't checked. SVN r329 (trunk)
96 lines
1.4 KiB
Text
96 lines
1.4 KiB
Text
|
|
// Base class for the beggars ---------------------------------------------
|
|
|
|
ACTOR Beggar : StrifeHumanoid
|
|
{
|
|
Health 20
|
|
PainChance 250
|
|
Speed 3
|
|
Radius 20
|
|
Height 56
|
|
Monster
|
|
+JUSTHIT
|
|
-COUNTKILL
|
|
+NOSPLASHALERT
|
|
MinMissileChance 150
|
|
Tag "Beggar"
|
|
MaxStepHeight 16
|
|
MaxDropoffHeight 32
|
|
|
|
AttackSound "beggar/attack"
|
|
PainSound "beggar/pain"
|
|
DeathSound "beggar/death"
|
|
States
|
|
{
|
|
Spawn:
|
|
BEGR A 10 A_Look
|
|
Loop
|
|
See:
|
|
BEGR AABBCC 4 A_Wander
|
|
Loop
|
|
Melee:
|
|
BEGR D 8
|
|
BEGR D 8 A_CustomMeleeAttack(2*random(1,5)+2)
|
|
BEGR E 1 A_Chase
|
|
BEGR D 8 A_SentinelRefire
|
|
Loop
|
|
Pain:
|
|
BEGR A 3 A_Pain
|
|
BEGR A 3 A_Chase
|
|
Goto Melee
|
|
Death:
|
|
BEGR F 4
|
|
BEGR G 4 A_Scream
|
|
BEGR H 4
|
|
BEGR I 4 A_NoBlocking
|
|
BEGR JKLM 4
|
|
BEGR N -1
|
|
Stop
|
|
XDeath:
|
|
BEGR F 5 A_TossGib
|
|
GIBS M 5 A_TossGib
|
|
GIBS N 5 A_XScream
|
|
GIBS O 5 A_NoBlocking
|
|
GIBS PQRST 4 A_TossGib
|
|
GIBS U 5
|
|
GIBS V 1400
|
|
Stop
|
|
}
|
|
}
|
|
|
|
|
|
// Beggars -----------------------------------------------------------------
|
|
|
|
ACTOR Beggar1 : Beggar 141
|
|
{
|
|
Game Strife
|
|
ConversationID 38, 37, 38
|
|
}
|
|
|
|
|
|
ACTOR Beggar2 : Beggar 155
|
|
{
|
|
Game Strife
|
|
ConversationID 39, 38, 39
|
|
}
|
|
|
|
|
|
ACTOR Beggar3 : Beggar 156
|
|
{
|
|
Game Strife
|
|
ConversationID 40, 39, 40
|
|
}
|
|
|
|
|
|
ACTOR Beggar4 : Beggar 157
|
|
{
|
|
Game Strife
|
|
ConversationID 41, 40, 41
|
|
}
|
|
|
|
|
|
ACTOR Beggar5 : Beggar 158
|
|
{
|
|
Game Strife
|
|
ConversationID 42, 41, 42
|
|
}
|