Skip to content

Commit

Permalink
Call MaybeNotifyOwnerOfDeath on apache, osprey and barnacle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed Sep 25, 2024
1 parent 74e8586 commit 2312223
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/server/entities/NPCs/aliens/barnacle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ void CBarnacle::Killed(CBaseEntity* attacker, int iGib)

pev->nextthink = gpGlobals->time + 0.1;
SetThink(&CBarnacle::WaitTillDead);

MaybeNotifyOwnerOfDeath();
}

void CBarnacle::WaitTillDead()
Expand Down
2 changes: 2 additions & 0 deletions src/game/server/entities/NPCs/military/apache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ void CApache::Killed(CBaseEntity* attacker, int iGib)
{
m_flNextRocket = gpGlobals->time + 15.0;
}

MaybeNotifyOwnerOfDeath();
}

void CApache::DyingThink()
Expand Down
2 changes: 2 additions & 0 deletions src/game/server/entities/NPCs/military/osprey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ void COsprey::Killed(CBaseEntity* attacker, int iGib)
pev->deadflag = DEAD_DYING;

m_startTime = gpGlobals->time + 4.0;

MaybeNotifyOwnerOfDeath();
}

void COsprey::CrashTouch(CBaseEntity* pOther)
Expand Down

0 comments on commit 2312223

Please sign in to comment.