[Include] Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)
#21

Aah, yes, thanks for sharing that. It's quite not possible in GTA SA to have a borderless object, particle - effect thing.. Anyways, cheers, and do share anything else that could be used to make this better
Reply
#22

Does this contain CreateObject only ??
Reply
#23

Please read the main topic to see what it does, and you'll understand why only 'create_OBJECT'.
Reply
#24

Very interesting! thank you for sharing!

Edit:

Quote:
Originally Posted by Y_Less
View Post
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);
That's not generally good practice in case the underlying structures change - the API (i.e. functions) will change with it.

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;
}
However, I don't know if there are any valid objects with a radius of 0.0. I don't think there are as I'm pretty sure that even LOD objects, which have no collision, still have a bounding sphere.
You have mentioned in the include file this:

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.

There are actually weapon objects in the game, are they supported?
Reply
#25

Quote:
Originally Posted by Maxips2
View Post
Very interesting! thank you for sharing!
There are actually weapon objects in the game, are they supported?
Thanks !
Quote:
except skins, vehicles, and weapons.

Reply
#26

AWSUM!! REP+
Reply
#27

Quote:
Originally Posted by Gamer_007
View Post
AWSUM!! REP+
Thank you! Cheers
Reply
#28

Maybe possible that CreateDynamicObject function automatic set distance, not need to convert all objects?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)