Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
Most of us already know that Sniper shots do not trigger OPWS (OnPlayerWeaponShot) sometimes. I believe that I have the cause of the problem.
It happens when you shoot at the same location again and again. OPWS is called for the first shot and isn't called for the rest of the shots until you move your sniper.
Some players might have already observed that shooting with the sniper at the same location doesn't damage the player (I have observed it almost an year ago but never realized the issue that time).
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
Is OnPlayer(Take/Give)Damage called when hit to a player?
Posts: 731
Threads: 29
Joined: Feb 2012
Reputation:
0
I was running some tests when I was trying to create my server-sided weapon system and I released that sometimes it doesn't trigger almost at all. Firing 7-8 shoots at random places but still nothing.
Haven't really figure why tho.
I ended up doing it manual through OnPlayerKeyStateChange.
Posts: 251
Threads: 3
Joined: Jul 2011
Reputation:
0
OPWS isn't called at all when a sniper's bullets don't land anywhere (i,e: the sky, or a very far away distance) unlike other weapons.
Posts: 470
Threads: 7
Joined: Nov 2013
Reputation:
0
The sniper is the only weapon that cause trouble in most of TDM servers. It, for some reason, inflict no damage on certain players (Take/Give callbacks never get called) randomly. The player has to quit the game and start again for it to work. Also, that player that can not be damaged, cannot also damage others with a sniper. The player can no longer take and give damage.
OPWS does not get called too - I have tested this.
Posts: 1,506
Threads: 13
Joined: Jun 2015
Ralfie's correct, the player doesn't gets any kind of damage but the animation is played (sometimes)..
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
May anyone consider elaborating more in depth? Everything seems to be working properly on my end.