Posts: 578
Threads: 40
Joined: Dec 2016
This might be wrong section but;
Is it anywhere possible to gather all tree object locations in GTA SA by its files and possible recreate them? If so, how?
I'd rather not use MapAndreas since it recreates whole GTA SA.
Edit: Thanks for moving it to the correct section. :)
Posts: 266
Threads: 22
Joined: Jan 2017
Reputation:
0
First you would need to collect all the possible ModelIDs that are trees, then you can use that gtasa object array (texture studio has it inside) and loop through it and extract trees you would get their locations etc. so you can easily recreate them
Posts: 435
Threads: 2
Joined: Jul 2017
Reputation:
0
ColAndreas may be what you need.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Most - if not all - tree and bush model ids can be conveniently found in data/maps/generic/vegapart.ide. Then what I would do is copy all IPL files to the scriptfiles directory and write a script to read those files line by line. Split with sscanf and then check if the id is a tree. If it is, write position and rotation to another file or into the database.
Note that the IPL files use quaternions for rotation so you will need to convert those to Euler.