CS:S Issue - Impossible to use your grenade
Posted: Thu Apr 21, 2016 3:56 am
Hi there!
I'm just going to describe the issue in hope that somebody might have experienced it before and knows how to fix it. Because I've yet to figure out the conditions for this problem to happen, it can happen occasionally, and the only relatively stable way I've found to reproduce it is too complicated - when trying to simplify it, detach all things that are related to my plugin, the problem disappears.
So. If only may happen if you:
1. Only have a grenade, let's say weapon_flashbang equipped - no knife or other weapons
2. You throw it
Now, normally your character would've gone reference pose - you know that pose - because there're no weapons on him. Upon receiving another flashbang via GiveNamedItem, he would've automatically switched to that flashbang. And then he would've been able to throw it again.
Think of it as of a flashbang battle.
But when the subject problem occurs, your character doesn't go reference pose. Instead, he remains holding his non-existing flashbang. Upon receiving another flashbang, nothing happens. What is interesting, there's no viewmodel on his screen. What is sad, he can't use the new flashbang anymore. He just runs around with this flashbang in his hand. He does own it, he drops it on death.
If nobody has a clue, then I'll do my best to give a working code. But maybe anyone knows what I am talking about? Or maybe just wants to give some hints on what tests to run? Thanks.
I'm just going to describe the issue in hope that somebody might have experienced it before and knows how to fix it. Because I've yet to figure out the conditions for this problem to happen, it can happen occasionally, and the only relatively stable way I've found to reproduce it is too complicated - when trying to simplify it, detach all things that are related to my plugin, the problem disappears.
So. If only may happen if you:
1. Only have a grenade, let's say weapon_flashbang equipped - no knife or other weapons
2. You throw it
Now, normally your character would've gone reference pose - you know that pose - because there're no weapons on him. Upon receiving another flashbang via GiveNamedItem, he would've automatically switched to that flashbang. And then he would've been able to throw it again.
Think of it as of a flashbang battle.
But when the subject problem occurs, your character doesn't go reference pose. Instead, he remains holding his non-existing flashbang. Upon receiving another flashbang, nothing happens. What is interesting, there's no viewmodel on his screen. What is sad, he can't use the new flashbang anymore. He just runs around with this flashbang in his hand. He does own it, he drops it on death.
If nobody has a clue, then I'll do my best to give a working code. But maybe anyone knows what I am talking about? Or maybe just wants to give some hints on what tests to run? Thanks.