ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.74k stars 629 forks source link

[CS CZ DS] game crash when NPC spawn ammo upon death #3834

Open unknown-men opened 1 month ago

unknown-men commented 1 month ago

If any NPC spawn any ammo entity upon death when that ammo entity currently not appear in the map, map crash. If all the ammo entity was taken off by player before then a dying NPC spawn that same ammo entity, map crash, I think there should be a method to precache the ammo model when load the map to solve this problem (currently game don't have it or I don't know).

tschumann commented 1 month ago

Is this in a custom map? I think if you create an entity somewhere in the map that uses the model, that should precache it.

On Wed, 2 Oct 2024 at 17:31, unknown-men @.***> wrote:

If any NPC spawn any ammo entity upon death when that ammo entity currently not appear in the map, map crash. If all the ammo entity was taken off by player before then a dying NPC spawn that same ammo entity, map crash, I think there should be a method to precache the ammo model when load the map to solve this problem (currently game don't have it or I don't know).

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/halflife/issues/3834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA34IYT54IQ4EWXV5JY3QBLZZOOMXAVCNFSM6AAAAABPHCZZKGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DAOBVGIYDOMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>