22.01.2014, 14:30
Quote:
|
The Enable... functions arent needed here. In some cases it could be useful to disable it again, so you should rather change them to setters with a parameter (you could also replace them with defines, thats the fastest way to handle getter/setter-functions in pawn).
The reason why samp uses such "one-time-enablers" is probably because they change the way the server is initialized, and it would be pretty difficult or technically impossible to disable them during the server runtime. Here it would be no problem, and, as said, in some cases even pretty useful, to disable the detecions. Nice work nevertheless. Im also curious, but too lazy to test, if the OnPlayerWeaponShot offsets are relative to the rotation/angle. If they are, this should work correctly. Would be pretty useless to give unrotated offsets though, but maybe thats the way GTA provides that data. |
Quote:
|
True but I did find a small issue with some rotations but nevertheless it basically works
this is indeed an issue "- Not all vehicles have the right offset for the vehicle parts (Wheels only). I will improve the offsets later." also.. idk but are all the wheel components the same size? maybe you could also consider that for more accuracy *shrugs* |
Quote:
|
There is a much better way to detect gas tank shots and tires.
Note that you'll need to do a few corrections for some vehicles tires such as the trashmaster. pawn Код:
|
Tonight i will make a quick update with a check for the vehicle tires. Thanks for the suggestion.


