OnPlayerTakeDamage (Predator) Odd Weapon ID And Shooter Reported -
DrakeX - 10.06.2014
OnPlayerTakeDamage seems to report weapon ID '255' and damaging player (or shooter) '65535'. It should report 31 (M4A1) simalar to the seasparrow and rustler, but doesn't. I'm assuming '65535' = INVALID_PLAYER_ID.
Edit (06/10/20140): I was incorrect about the weapon ID that is reported. Weapon ID '52' is reported, a weapon which isn't even documented on the
weapons list!
Код:
[16:52:17] [SUCCESS]: Spawned a "Predator" (MODELID: 430, VEHICLEID: 1792)
[16:53:08] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 6);
[16:53:10] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 9);
[16:53:12] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 6);
[16:53:13] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 6);
[16:53:13] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 6);
[16:53:21] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 3);
[16:53:23] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 3);
[16:53:24] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 3);
[16:53:27] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 3);
[16:53:28] OnPlayerTakeDamage(1, 65535, 4.95000, 52, 3);
Re: OnPlayerTakeDamage (Predator) -
minijackc - 10.06.2014
Interesting, Maybe its the MODELID?
Re: OnPlayerTakeDamage (Predator) -
DrakeX - 16.06.2014
No, it isn't the model ID. I however found this (which isn't documented on the weapons page):
https://sampwiki.blast.hk/wroot/index.ph...:Weapon-52.gif
Weapon ID 52 has the same icon for night vision goggles, drowning as well as 255 (unknown).
Re: OnPlayerTakeDamage (Predator) -
iFarbod - 17.06.2014
Predator shots like Police Maverick shots (in single-player - when you have 3 or more wanted level). However in single-player. We can simulate that shots in CLEO By following opcode :
pawn Код:
06BC: create_M4_shoot_from 2193.268 -1165.441 1031.124 target $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD energy 1
Vehicles can shot :
Quote:
Rhino == Explosion
Hunter == Minigun+Explosion
Rustler == M4
Seasparrow == M4
Hydra == Explosion+Heat seeking Rocket Launcher
RC Baron == Minigun (Sometimes M4)
|
***
These are retrieved from Kill-feed with OnPlayerDeath. ***
Re: OnPlayerTakeDamage (Predator) -
Baboon - 17.06.2014
65535 = INVALID_PLAYER_ID
Seems it doesn't detect the sparrow then, how about hunter/tank?
Perhaps it doesn't detect vehicles.