We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a monster_osprey is spawned with no valid target it will crash when it attempts to skip targets that are used for the grunt resupply path.
monster_osprey
Change this:
halflife/dlls/osprey.cpp
Lines 397 to 404 in c7240b9
To this:
if (m_pGoalEnt != nullptr) { if (m_pGoalEnt->pev->speed == 0) { SetThink(&COsprey::DeployThink); } do { m_pGoalEnt = CBaseEntity::Instance(FIND_ENTITY_BY_TARGETNAME(NULL, STRING(m_pGoalEnt->pev->target))); } while (m_pGoalEnt->pev->speed < 400 && !HasDead()); UpdateGoal(); }
This change adds a null check to prevent the crash.
This also applies to the Black Ops Osprey in Opposing Force.
The text was updated successfully, but these errors were encountered:
Fix Black Ops Osprey crashing if it has no valid target Resolves Valv…
18312ed
…eSoftware/halflife#3259 Fix Black Ops Osprey teleporting to world origin if it isn't moving at all Resolves ValveSoftware/halflife#3260 Fix Black Ops Osprey not firing trigger targets Resolves ValveSoftware/halflife#3261
No branches or pull requests
If a
monster_osprey
is spawned with no valid target it will crash when it attempts to skip targets that are used for the grunt resupply path.Change this:
halflife/dlls/osprey.cpp
Lines 397 to 404 in c7240b9
To this:
This change adds a null check to prevent the crash.
This also applies to the Black Ops Osprey in Opposing Force.
The text was updated successfully, but these errors were encountered: