View Full Version : [QUESTION] OnPlayerWeaponShot

03/03/2018, 11:24 PM
Hello guys, i wanted to know how the weapon shoot when
player throws a grande is definated. Is it when the player
throw the bomb, or when the bomb explodes?

03/03/2018, 11:29 PM
It's not too hard to have these in a test FS, and report all outputs to the RCON admin.

Someone should almost have done this already for testing things, and checking what will be fired, when.

03/03/2018, 11:57 PM
This is a really good question, however, I mainly believe it is when the grenade is fired and not exploded. I mean you throwing a grenade and disconnecting would still count as you throwed it. But Iím only guessing, perhaps do a small test like Sew_Sumi mentioned above and correct it.

04/03/2018, 12:41 AM
OnPlayerWeaponShot only reports you bullet weapons (no RPGs).

To detect if a player has thrown a grenade, OnPlayerKeyStateChange will be helpful. (Note: sometimes player press KEY_FIRE and switch weapon instantly can trigger false positive, hence the grenade is not thrown but callback occurs).