SA-MP Forums Archive
Predator damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Predator damage (/showthread.php?tid=650336)



Predator damage - ball - 25.02.2018

I noticed while ago, that damaging another player from predator is weird. For example, in comparison to rustler:

- damage from rustler calls OnPlayerTakeDamage with connected issuerid
- damage from predator calls OnPlayerTakeDamage with issuerid equal INVALID_PLAYER_ID

- damage from rustler calls OnPlayerTakeDamage with M4 as weaponid and takes 9.9 damage
- damage from predator calls OnPlayerTakeDamage with weaponid 52 and takes 4.9 damage

It had been always like that? I mean this weaponid (52) and INVALID_PLAYER_ID as issuerid. On the wiki, there is no information about weaponid 52. Anybody have some informations on this topic?


Re: Predator damage - AstroPoid - 25.02.2018

Haunter / hydra using rocketlauncher / minigun weapons and you have to take a look on this https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage , wiki says that if the player take damage by invalid playerid , then he harmed him self , thats all. i think its hard to detect if the bullets came from vehicle weapon. so the logs just sending that , nobody did he harmed him self.