[Include] All GTA SA Object Array
#1

A few days ago I was thinking if it would be possible to create an in game RemoveBuildingForPlayer() for my map editor. I knew I would need a list of all the objects in GTA SA and their positions to make it happen so I went ahead extracting all the object data from all the .IPL's processed them into an array.

ENUM

Code:
enum SearchInfo { 
Search_Model, 
Search_LODModel, 
Search_Model_Name[64], 
Float:SearchX, 
Float:SearchY,
Float:SearchZ, 
Float:SearchRX, 
Float:SearchRY, 
Float:SearchRZ 
}
Test position when using test array since it takes a few minutes to compile with the full array list this will help out.

Code:
CMD:testpos(playerid, arg[])
{
	SetPlayerPos(playerid, 3.6618,-2594.0713,39.7159);
	return 1;
}
There are no LOD objects in the list the object positions have their LODModel counterpart listed so using RemoveBuildingForPlayer() for both model and LODmodel should remove the building.

Known issues:
There are a few objects that might not actually have a LODModel associated but is listed anyways although not very many and really should be so much an issue as these objects are often small components of a house for example that has the same position as house object.

The rotation values may not be 100 percent precise for all objects.

File:

https://www.mediafire.com/?2c8ywc3h1veza4p
Reply


Messages In This Thread
All GTA SA Object Array - by Pottus - 13.02.2013, 00:08
Re: All GTA SA Object Array - by Pottus - 13.02.2013, 00:12
Re: All GTA SA Object Array - by Jay_ - 13.02.2013, 00:27
Re: All GTA SA Object Array - by MP2 - 13.02.2013, 00:40
Respuesta: All GTA SA Object Array - by CaptainMactavish - 13.02.2013, 01:51
Re: All GTA SA Object Array - by MP2 - 21.02.2013, 00:23
Re: All GTA SA Object Array - by Pottus - 21.02.2013, 00:57
Re: All GTA SA Object Array - by Edvin - 21.02.2013, 13:20
Re: All GTA SA Object Array - by MP2 - 21.02.2013, 13:36
Re: All GTA SA Object Array - by Vince - 21.02.2013, 13:41
Re: All GTA SA Object Array - by Yashas - 10.02.2014, 16:50
Re: All GTA SA Object Array - by Pottus - 10.02.2014, 17:04
Re: All GTA SA Object Array - by kurta999 - 10.02.2014, 17:47
Re: All GTA SA Object Array - by Pottus - 11.02.2014, 00:58
Re: All GTA SA Object Array - by kurta999 - 11.02.2014, 04:40
Re: All GTA SA Object Array - by Crayder - 31.03.2014, 02:09
Re: All GTA SA Object Array - by Pottus - 02.04.2014, 02:56
Re: All GTA SA Object Array - by satafinix - 29.04.2014, 12:57
AW: All GTA SA Object Array - by BigETI - 05.05.2014, 19:03
Re: All GTA SA Object Array - by Toxik - 29.06.2014, 01:43
Re: All GTA SA Object Array - by Pottus - 21.08.2014, 13:52
Re: All GTA SA Object Array - by Toxik - 21.08.2014, 16:38
Re: All GTA SA Object Array - by Admigo - 28.12.2014, 11:17
Re: All GTA SA Object Array - by papedo - 28.12.2014, 14:25
Re: All GTA SA Object Array - by IllidanS4 - 13.10.2015, 13:46
Re: All GTA SA Object Array - by n0minal - 21.10.2015, 05:05
Re: All GTA SA Object Array - by Crayder - 21.10.2015, 05:13
Re: All GTA SA Object Array - by n0minal - 21.10.2015, 05:20
Re: All GTA SA Object Array - by IllidanS4 - 24.10.2015, 17:43
Re: All GTA SA Object Array - by n0minal - 02.11.2015, 04:15
Re: All GTA SA Object Array - by Pottus - 02.11.2015, 04:51
Re: All GTA SA Object Array - by s0nny - 02.11.2015, 04:55
Re: All GTA SA Object Array - by Pottus - 02.11.2015, 05:02
Re: All GTA SA Object Array - by s0nny - 02.11.2015, 14:08
Re: All GTA SA Object Array - by codectile - 03.11.2015, 04:50
Re: All GTA SA Object Array - by n0minal - 03.11.2015, 13:55
Re: All GTA SA Object Array - by codectile - 03.11.2015, 14:11
Re: All GTA SA Object Array - by IllidanS4 - 05.12.2015, 22:44
Re: All GTA SA Object Array - by n0minal - 05.12.2015, 23:23
Re: All GTA SA Object Array - by Crayder - 06.12.2015, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)