* Return the Doom 2 Cast Call to vanilla and simply label Doomguy as Doomguy * Ensure there are TWO canvas textures available for the Plasma Blaster screen * Fix some typos in material shader definitions for Demo-chan's face (oops)
59 lines
1 KiB
Text
59 lines
1 KiB
Text
// unique voodoo doll, for better compatibility
|
|
Class SWWMVoodooDoll : PlayerPawn
|
|
{
|
|
Vector3 lastvel;
|
|
SWWMShadow myshadow;
|
|
|
|
override String GetObituary( Actor victim, Actor inflictor, Name mod, bool playerattack )
|
|
{
|
|
// as simple as it gets
|
|
return "$OB_VOODOO";
|
|
}
|
|
override void Tick()
|
|
{
|
|
Super.Tick();
|
|
if ( !myshadow ) myshadow = SWWMShadow.Track(self);
|
|
// mikoportal compat
|
|
if ( !(pos.z ~== -32768) ) return;
|
|
if ( vel.length() <= lastvel.length() )
|
|
vel = lastvel;
|
|
lastvel = vel;
|
|
}
|
|
Default
|
|
{
|
|
Tag "$FN_VOODOO_NP";
|
|
Speed 1;
|
|
Health 100;
|
|
Radius 16;
|
|
Height 56;
|
|
Mass 100;
|
|
PainChance 255;
|
|
+NOBLOOD;
|
|
+DONTGIB;
|
|
+NOICEDEATH;
|
|
+DONTCORPSE;
|
|
+NOSKIN;
|
|
-FRIENDLY;
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
XZW1 A -1;
|
|
Stop;
|
|
Pain:
|
|
XZW1 A 1;
|
|
XZW1 B 2 A_StartSound("voodoodoll/hit",CHAN_BODY,CHANF_OVERLAP);
|
|
XZW1 CDEF 2;
|
|
Goto Spawn;
|
|
Death:
|
|
XZW1 A 2
|
|
{
|
|
A_StartSound("voodoodoll/fall",CHAN_BODY,CHANF_OVERLAP);
|
|
A_NoBlocking();
|
|
}
|
|
XZW1 GHIJKLMNO 2;
|
|
XZW1 PQR 2;
|
|
XZW1 S -1;
|
|
Stop;
|
|
}
|
|
}
|