Skip to content

Commit

Permalink
floorhitdamage for several dudes.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 10, 2023
1 parent ecf15a3 commit c0d1c8c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 40 deletions.
42 changes: 2 additions & 40 deletions source/games/blood/src/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2351,13 +2351,6 @@ static void checkFloorHit(DBloodActor* actor)

int mass1 = actor->mass();
int mass2 = actor2->mass();
switch (actor2->GetType())
{
case kDudeModernCustom:
case kDudeModernCustomBurning:
mass2 = getSpriteMassBySize(actor2);
break;
}

if (mass1 > mass2 && actor2->IsDudeActor())
{
Expand Down Expand Up @@ -2404,39 +2397,8 @@ static void checkFloorHit(DBloodActor* actor)
actDamageSprite(actor, actor, kDamageBullet, 16);
}
break;
case kDudeCultistTommy:
case kDudeCultistShotgun:
case kDudeZombieAxeNormal:
case kDudeZombieButcher:
case kDudeZombieAxeBuried:
case kDudeGargoyleFlesh:
case kDudeGargoyleStone:
case kDudePhantasm:
case kDudeHellHound:
case kDudeHand:
case kDudeSpiderBrown:
case kDudeSpiderRed:
case kDudeSpiderBlack:
case kDudeGillBeast:
case kDudeBat:
case kDudeRat:
case kDudePodGreen:
case kDudeTentacleGreen:
case kDudePodFire:
case kDudeTentacleFire:
case kDudePodMother:
case kDudeTentacleMother:
case kDudeCerberusTwoHead:
case kDudeCerberusOneHead:
case kDudeTchernobog:
case kDudePlayer1:
case kDudePlayer2:
case kDudePlayer3:
case kDudePlayer4:
case kDudePlayer5:
case kDudePlayer6:
case kDudePlayer7:
case kDudePlayer8:
default:
if (actor2->IsDudeActor() && (actor2->classflags() & 2))
#ifdef NOONE_EXTENSIONS
if (pPlayer && !isShrinked(actor))
#else
Expand Down
28 changes: 28 additions & 0 deletions wadsrc/static/zscript/games/blood/actors/dudes.zs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class BloodDudeBase : Bloodactor
property explodeSound: explodeSound;
property deathMorphType: deathMorphType;
flagdef burning: classflags, 0;
flagdef floorhitdamage: classflags, 1;


default
Expand Down Expand Up @@ -397,6 +398,7 @@ class BloodPlayerBase : BloodDudeBase
turnrange 11.25;
gibtype 15, -1, -1;
dmgcontrol 256, 256, 256, 256, 256, 256, 256;
+BloodDudeBase.floorhitdamage;
}

override int getRespawnTime()
Expand Down Expand Up @@ -433,6 +435,7 @@ class BloodDudeCultistTommy : BloodDudeBase
dmgcontrol 256, 256, 96, 256, 256, 256, 192;

explodesound 717;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -464,6 +467,7 @@ class BloodDudeCultistShotgun : BloodDudeBase
dmgcontrol 256, 256, 128, 256, 256, 256, 192;

explodesound 717;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -493,6 +497,7 @@ class BloodDudeZombieAxeNormal : BloodDudeBase
turnrange 67.5;
gibtype 15, -1, -1;
dmgcontrol 256, 256, 112, 256, 256, 256, 160;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -522,6 +527,7 @@ class BloodDudeZombieButcher : BloodDudeBase
turnrange 45;
gibtype 15, -1, -1;
dmgcontrol 256, 256, 32, 128, 256, 64, 128;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -551,6 +557,7 @@ class BloodDudeZombieAxeBuried : BloodDudeBase
turnrange 67.5;
gibtype 15, -1, -1;
dmgcontrol 256, 256, 112, 256, 256, 256, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -580,6 +587,7 @@ class BloodDudeGargoyleFlesh : BloodDudeBase
turnrange 67.5;
gibtype 30, -1, -1;
dmgcontrol 0, 128, 48, 208, 256, 256, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -609,6 +617,7 @@ class BloodDudeGargoyleStone : BloodDudeBase
turnrange 45;
gibtype 19, -1, -1;
dmgcontrol 0, 0, 10, 10, 0, 128, 64;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -691,6 +700,7 @@ class BloodDudePhantasm : BloodDudeBase
turnrange 67.5;
gibtype -1, -1, -1;
dmgcontrol 0, 0, 48, 0, 0, 16, 0;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -718,6 +728,7 @@ class BloodDudeHellHound : BloodDudeBase
turnrange 67.5;
gibtype 29, -1, -1;
dmgcontrol 48, 0, 48, 48, 256, 128, 192;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -745,6 +756,7 @@ class BloodDudeHand : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 64, 256, 256, 256, 0, 64, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -773,6 +785,7 @@ class BloodDudeSpiderBrown : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 64, 256, 256, 96, 256, 64, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -801,6 +814,7 @@ class BloodDudeSpiderRed : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 64, 128, 256, 96, 256, 64, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -829,6 +843,7 @@ class BloodDudeSpiderBlack : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 128, 256, 256, 96, 256, 64, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -886,6 +901,7 @@ class BloodDudeGillBeast : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 48, 80, 64, 128, 0, 128, 48;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -913,6 +929,7 @@ class BloodDudeBoneEel : BloodDudeBase
turnrange 22.5;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 256, 256, 0, 256, 192;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -940,6 +957,7 @@ class BloodDudeBat : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 256, 256, 256, 64, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -967,6 +985,7 @@ class BloodDudeRat : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 256, 256, 256, 128, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -993,6 +1012,7 @@ class BloodDudePodGreen : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 160, 160, 128, 160, 0, 0, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -1018,6 +1038,7 @@ class BloodDudeTentacleGreen : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 256, 80, 0, 0, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -1044,6 +1065,7 @@ class BloodDudePodFire : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 96, 0, 128, 64, 256, 64, 160;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -1069,6 +1091,7 @@ class BloodDudeTentacleFire : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 128, 0, 128, 128, 0, 0, 128;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -1095,6 +1118,7 @@ class BloodDudePodMother : BloodDudeBase
turnrange 0;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 256, 256, 256, 256, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand All @@ -1120,6 +1144,7 @@ class BloodDudeTentacleMother : BloodDudeBase
turnrange 0;
gibtype 7, -1, -1;
dmgcontrol 256, 256, 128, 256, 128, 128, 256;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -1148,6 +1173,7 @@ class BloodDudeCerberusTwoHead : BloodDudeBase
gibtype 7, -1, -1;
dmgcontrol 16, 0, 16, 16, 0, 96, 48;
deathMorphType "BloodDudeCerberusOneHead";
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -1175,6 +1201,7 @@ class BloodDudeCerberusOneHead : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 16, 0, 16, 16, 0, 96, 48;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down Expand Up @@ -1202,6 +1229,7 @@ class BloodDudeTchernobog : BloodDudeBase
turnrange 67.5;
gibtype 7, -1, -1;
dmgcontrol 3, 1, 4, 4, 0, 4, 3;
+BloodDudeBase.floorhitdamage;
}
}

Expand Down

0 comments on commit c0d1c8c

Please sign in to comment.