[QUESTION] OnPlayerWeaponShot
#1

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?
Reply
#2

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.
Reply
#3

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.
Reply
#4

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)