08-11-2012, 00:54
Hi there,
i have a problem with OnPlayerDamaged.
When i use explosive weapons (launchers, grenades, etc.) and hit a enemy with it the OnPlayerDamaged method is called, but the Attacker is always the Victim.
Here an example (Deviler and Maximalus are each a Client):
1. Deviler shoots with RPG at Maximalus
2. Maximalus is about to get Damage -> OnPlayerDamaged is called
3. Problem in OnPlayerDamaged: The Attacker.Name and Victim.Name are both Maximalus
Is this suppose to happen? Or is this a mistake in the Addon?
Or is it just impossible to detect the person who shot/threw the missile/grenade because of the timespan between shooting and impact/explosion?
P.s.: I tested both impact and explosion and the damagemod differs but the end result is the same.
i have a problem with OnPlayerDamaged.
When i use explosive weapons (launchers, grenades, etc.) and hit a enemy with it the OnPlayerDamaged method is called, but the Attacker is always the Victim.
Here an example (Deviler and Maximalus are each a Client):
1. Deviler shoots with RPG at Maximalus
2. Maximalus is about to get Damage -> OnPlayerDamaged is called
3. Problem in OnPlayerDamaged: The Attacker.Name and Victim.Name are both Maximalus
Is this suppose to happen? Or is this a mistake in the Addon?
Or is it just impossible to detect the person who shot/threw the missile/grenade because of the timespan between shooting and impact/explosion?
P.s.: I tested both impact and explosion and the damagemod differs but the end result is the same.