Форум Pawn.Wiki - Воплоти мечту в реальность!: All GTA SA Object Array - Форум Pawn.Wiki - Воплоти мечту в реальность!

Перейти к содержимому

Страница 1 из 1
  • Вы не можете создать новую тему
  • Тема закрыта

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
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.

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.

Скачать:

0

Поделиться темой:


Страница 1 из 1
  • Вы не можете создать новую тему
  • Тема закрыта

1 человек читают эту тему
0 пользователей, 1 гостей, 0 скрытых пользователей


Яндекс.Метрика