16.01.2014, 17:12
Quote:
Something like OnPlayerHit(playerid, hittype, hitid) for objects and vehicles would be great without having to rely on Key pressing + Camera positions + Lots of checks; Making a target system is incredibly easy with this new callback, compared to a shitload of things I had done to work around it without it, and would be perfect if not only it detected bullets but also projectiles and impacts (RPG, melees)
|
pawn Код:
#define BULLET_HIT_TYPE_NONE 0
#define BULLET_HIT_TYPE_PLAYER 1
#define BULLET_HIT_TYPE_VEHICLE 2
#define BULLET_HIT_TYPE_OBJECT 3
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);