OnPlayerTakeDamage (projectiles)
#6

I can confirm this, I have spent countless hours trying to get throwables to work in OnPlayerGiveDamage, and the only thing you can hurt is yourself. Unless, like Stront says, the grenade actually hits the player.

It's also the same for rockets, and it seems like OnPlayerGiveDamage GetPlayerTargetPlayer will return INVALID_PLAYER_ID unless your crosshair is aiming at the skin - ex: the projectile spread of shotguns will call OnPlayerGiveDamage even if your crosshair is not aiming directly at the damagedid and the projectiles still hit the damagedid, so GetPlayerTargetPlayer will return INVALID_PLAYER_ID.
Reply


Messages In This Thread
OnPlayerTakeDamage (projectiles) - by Riddick94 - 19.01.2014, 12:54
AW: OnPlayerTakeDamage (projectiles) - by BigETI - 19.01.2014, 12:57
Re: AW: OnPlayerTakeDamage (projectiles) - by Riddick94 - 19.01.2014, 13:06
Respuesta: Re: AW: OnPlayerTakeDamage (projectiles) - by Stront - 19.01.2014, 13:25
Respuesta: OnPlayerTakeDamage (projectiles) - by MugiwaraNoLuffy - 19.01.2014, 18:46
Re: OnPlayerTakeDamage (projectiles) - by [FAT]Klabauter[LST] - 22.01.2014, 22:33
Re: OnPlayerTakeDamage (projectiles) - by CuervO - 22.01.2014, 22:42
Re: OnPlayerTakeDamage (projectiles) - by [FAT]Klabauter[LST] - 23.01.2014, 03:58

Forum Jump:


Users browsing this thread: 4 Guest(s)