Tempust85 Posted September 17, 2013 Share Posted September 17, 2013 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. Link to comment
mrwonko Posted September 17, 2013 Share Posted September 17, 2013 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? Link to comment
Tempust85 Posted September 17, 2013 Author Share Posted September 17, 2013 I added a "RegisterItem" in my weapon switch, and that seems to work although there is a very slight jitter when the ammo model spawns. Link to comment
eezstreet Posted September 19, 2013 Share Posted September 19, 2013 Try registering the models when you're loading the game then. Shouldn't be too difficult to find where they do that, hopefully. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now