08.04.2013, 19:17
Very interesting! thank you for sharing!
Edit:
You have mentioned in the include file this:
There are actually weapon objects in the game, are they supported?
Edit:
Quote:
Well the array is not actually static, so I just something like this:
Code:
new Float:l = 0.0l for (new i = 0; i != sizeof (MODELS_gColRadius); ++i) { if (MODELS_gColRadius[i] > l) l = MODELS_gColRadius[i]; } printf("%f", l); I also just realised that you can do this: Code:
stock bool:IsModelValid(objectmodel) { if (0 <= objectmodel < sizeof (MODELS_gColRadius)) { return MODELS_gColRadius[objectmodel] != 0.0; } return false; } |
Quote:
This array lists all the radii of the collision spheres for all the GTA objects used in SA (including the SA:MP objects); except skins, vehicles, and weapons. |