mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
371712c53a
- fixed emission of the self pointer in FxVMFunctionCall. I did not realize that the self expression only sets up a register for the value, not pushing it onto the stack.
123 lines
2 KiB
Text
123 lines
2 KiB
Text
|
|
// Loremaster (aka Priest) --------------------------------------------------
|
|
|
|
class Loremaster : Actor
|
|
{
|
|
Default
|
|
{
|
|
Health 800;
|
|
Speed 10;
|
|
Radius 15;
|
|
Height 56;
|
|
FloatSpeed 5;
|
|
Monster;
|
|
+FLOAT
|
|
+NOBLOOD
|
|
+NOGRAVITY
|
|
+NOTDMATCH
|
|
+FLOORCLIP
|
|
+NOBLOCKMONST
|
|
+INCOMBAT
|
|
+LOOKALLAROUND
|
|
+NOICEDEATH
|
|
+NEVERRESPAWN
|
|
DamageFactor "Fire", 0.5;
|
|
MinMissileChance 150;
|
|
Tag "$TAG_PRIEST";
|
|
SeeSound "loremaster/sight";
|
|
AttackSound "loremaster/attack";
|
|
PainSound "loremaster/pain";
|
|
DeathSound "loremaster/death";
|
|
ActiveSound "loremaster/active";
|
|
Obituary "$OB_LOREMASTER";
|
|
DropItem "Junk";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
PRST A 10 A_Look;
|
|
PRST B 10 A_SentinelBob;
|
|
Loop;
|
|
See:
|
|
PRST A 4 A_Chase;
|
|
PRST A 4 A_SentinelBob;
|
|
PRST B 4 A_Chase;
|
|
PRST B 4 A_SentinelBob;
|
|
PRST C 4 A_Chase;
|
|
PRST C 4 A_SentinelBob;
|
|
PRST D 4 A_Chase;
|
|
PRST D 4 A_SentinelBob;
|
|
Loop;
|
|
Melee:
|
|
PRST E 4 A_FaceTarget;
|
|
PRST F 4 A_CustomMeleeAttack((random[SpectreMelee](0,255)&9)*5);
|
|
PRST E 4 A_SentinelBob;
|
|
Goto See;
|
|
Missile:
|
|
PRST E 4 A_FaceTarget;
|
|
PRST F 4 A_CustomMissile("LoreShot", 32, 0);
|
|
PRST E 4 A_SentinelBob;
|
|
Goto See;
|
|
Death:
|
|
PDED A 6;
|
|
PDED B 6 A_Scream;
|
|
PDED C 6;
|
|
PDED D 6 A_Fall;
|
|
PDED E 6;
|
|
PDED FGHIJIJIJKL 5;
|
|
PDED MNOP 4;
|
|
PDED Q 4 A_SpawnItemEx("AlienSpectre5", 0, 0, 0, 0, 0, random[spectrespawn](0,255)*0.0078125, 0, SXF_NOCHECKPOSITION);
|
|
PDED RS 4;
|
|
PDED T -1;
|
|
Stop;
|
|
}
|
|
}
|
|
|
|
|
|
// Loremaster Projectile ----------------------------------------------------
|
|
|
|
class LoreShot : Actor native
|
|
{
|
|
Default
|
|
{
|
|
Speed 20;
|
|
Height 14;
|
|
Radius 10;
|
|
Projectile;
|
|
+STRIFEDAMAGE
|
|
Damage 2;
|
|
MaxStepHeight 4;
|
|
SeeSound "loremaster/chain";
|
|
ActiveSound "loremaster/swish";
|
|
}
|
|
|
|
native void A_LoremasterChain ();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
OCLW A 2 A_LoremasterChain;
|
|
Loop;
|
|
Death:
|
|
OCLW A 6;
|
|
Stop;
|
|
}
|
|
}
|
|
|
|
// Loremaster Subprojectile -------------------------------------------------
|
|
|
|
class LoreShot2 : Actor
|
|
{
|
|
Default
|
|
{
|
|
+NOBLOCKMAP
|
|
+NOGRAVITY
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
TEND A 20;
|
|
Stop;
|
|
}
|
|
}
|
|
|