mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
-Fix kDudeModernCustomDude may not morphing during specific events
copied from NBlood commit 0fbf9a1b2efef997e9ab8ba16e0405acd8d860b0
This commit is contained in:
parent
98c985de73
commit
84834b0095
1 changed files with 5 additions and 1 deletions
|
@ -796,7 +796,7 @@ static void unicultThinkChase(DBloodActor* actor)
|
|||
if (hitactor->IsDudeActor() && (weaponType != kGenDudeWeaponHitscan || hscn))
|
||||
{
|
||||
// dodge a bit in sides
|
||||
if (hitactor->GetTarget() != actor)
|
||||
if (hitactor->xspr.health > 0 && hitactor->GetTarget() != actor)
|
||||
{
|
||||
if (pExtra->baseDispersion < 1024 && weaponType != kGenDudeWeaponMissile)
|
||||
{
|
||||
|
@ -1215,6 +1215,10 @@ void aiGenDudeNewState(DBloodActor* actor, AISTATE* pAIState)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (actor->xspr.health <= 0 || actor->xspr.sysData1 == kGenDudeTransformStatus)
|
||||
return;
|
||||
|
||||
|
||||
// redirect dudes which cannot walk to non-walk states
|
||||
if (!actor->genDudeExtra.canWalk)
|
||||
|
|
Loading…
Reference in a new issue