• Weapons having wrong view models for the local player
    6 replies, posted
For a while now, I encountered a bug, which it seems happens randomly. In a few cases after stripping all weapons and ammo serverside and giving the player at the same time a new weapon and selecting it using SelectWeapon, the players viewmodel remains from the old weapon with the old model. It does not update to any time, only when switching to a different weapon and back to the new weapon. I could not figure out, what causes it and what fixes it. I am not messing with any viewmodel hooks or anything. I hope, someone can tell me what's going on.
Does this also happen when adding a .1 second delay between stripping and giving a player the weapon?
I didn't try but this wouldn't be the correct fix, I think. I wanna fix the root cause, not bypass it.
I remember things like this occuring in the past, like switching weapons and having the last weapon's viewmodel. It probably has to do something with how the game internally handles switching weapons. Probably not much you can do, unless there indeed is a better solution. Many things however require a .1 timer in order for the engine to update certain things. All i can say is, Source :P
Sounds completely an internal desync, completely expected, you can call it a bug maybe, but if you're stripping from serverside and at the same time you're giving a new weapon, there might be a problem, what @Gmod4phun said it's right, if you're still insecure about that timer, just use ping as reference than a plain value, or a net message to verify all weapons were wiped away
I have given you your coins back, 25 was too much. Merry christmas
Thanks buddy
Sorry, you need to Log In to post a reply to this thread.