Jump to content

Ammo Dropping From NPC After Death


Recommended Posts

Posted

Trying to get the ammo to spawn from a dead NPC instead of a weapon in SP's "g_combat.cpp" "TossClientItems".

 

Managed to get it done by using a weapon switch, however the first NPC killed spawns 3 axis lines instead of an actual model. The second NPC spawn the ammo model however.

Posted

I believe this happens when the model has not yet been loaded. I guess it gets loaded when you pick the item up. So maybe you could preload it when an NPC that would drop it is loaded?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...