-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
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
[Half-Life] Bullsquid crashes the game when NPC enemy dies at specific time #2834
Comments
It's probably this code: Lines 531 to 569 in c7240b9
The Gonome code was based on this so it makes sense that it would have the same bugs. |
This string causes the crash, i'm not sure why. Can't we create like a aimlock function for spitoffset to enemy's last position? Which will pretty much do the same thing. |
It's crashing because it's dereferencing the pointer to the enemy without checking if the pointer is non-null first. It's easy to fix, just use the same solution as the one used for the Gonome. |
update: was able to reproduce the crash in op4 and blue shift, also i have noticed the same crash happens with pit drones in op4. i made a save a while ago thinking it was something else, if anyone wants to try it - gotcha.zip. how it works: you load a save, make no inputs and if Otis is gibbed it will crash ~0.7s later, however if you move left fast enough pit drone in the back will notice you and the game won't crash. |
Yep, Pit Drones have the exact same code, with the exact same bug. |
Similar to #2088, but doesn't seem to work with the player himself, couldn't reproduce in OpFor or Blue Shift. vid save
The text was updated successfully, but these errors were encountered: