Posts: 95
Threads: 25
Joined: Feb 2017
Reputation:
0
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?
Posts: 6,242
Threads: 8
Joined: Jun 2008
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.
Posts: 542
Threads: 14
Joined: Aug 2016
Reputation:
0
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.
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
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).