Sniper Shots - OPWS not called if another bullet is shot at the same location -
Yashas - 31.05.2016
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).
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Gammix - 01.06.2016
Is OnPlayer(Take/Give)Damage called when hit to a player?
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Yashas - 01.06.2016
Quote:
Originally Posted by Gammix
Is OnPlayer(Take/Give)Damage called when hit to a player?
|
I don't think so since the player takes no damage.
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
]Rafaellos[ - 01.06.2016
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.
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
SickAttack - 01.06.2016
No problems here. Screenshot of shooting at the same spot without moving (each shot calls the callback):
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Banana_Ghost - 02.06.2016
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.
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Yashas - 02.06.2016
Quote:
Originally Posted by Banana_Ghost
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.
|
Yes, I know, I was shooting the road for that very reason. It stops triggering OPWS if I don't move my sniper.
Quote:
Originally Posted by SickAttack
No problems here. Screenshot of shooting at the same spot without moving (each shot calls the callback):

|
Weird.
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Evocator - 02.06.2016
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.
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
Logic_ - 03.06.2016
Ralfie's correct, the player doesn't gets any kind of damage but the animation is played (sometimes)..
Re: Sniper Shots - OPWS not called if another bullet is shot at the same location -
SickAttack - 03.06.2016
May anyone consider elaborating more in depth? Everything seems to be working properly on my end.