Adding new vehicles to dayz nav

Posts 1–3 of 3 · Page 1 of 1
Adding new vehicles to dayz nav
Hey guys,

I was just wondering if anyone can give me a quick rundown on how to add the new vehicles added in last patch to dayz nav? I found all the vehicles listed in the main.cpp file and was wondering what the codes and if I can just add them into that file and then recompile it??

Thanks, I am a real noob at programming but thought this wouldn't be too hard to add in....

Inten5ity
Find the classname for the vehicle you want to add, and put it in this format:

Code:
if(ents[i].object_classname.find("VEHICLECLASSNAME") != string::npos) {
                if(!first) marker_str << ","; else first = false;
                marker_str << "{id:" << ++id << ",lat:" << game_to_lat(ents[i].object_pos.z) 
                    << ",lng:" << game_to_lng(ents[i].object_pos.x) << ",t:\"" << "VEHICLETYPE" << "\",n:\""
                    << "VEHICLENAME" << "\",b:\"" << "VEHICLEIMAGE" << "\"}";
			}
Where VEHICLECLASSNAME is the classname, VEHICLETYPE is the type of vehicle (helicopter/bigtruck/truck/etc.), VEHICLENAME is the name that shows when you hover over it in Nav, and VEHICLEIMAGE is the image that shows when you click the vehicle (the image makes no difference, I recommend just using uaz_cdf unless you really care that much).

For example, if I wanted to find the UH-1Y, I would add this code:
Code:
if(ents[i].object_classname.find("UH1Y") != string::npos) {
                if(!first) marker_str << ","; else first = false;
                marker_str << "{id:" << ++id << ",lat:" << game_to_lat(ents[i].object_pos.z) 
                    << ",lng:" << game_to_lng(ents[i].object_pos.x) << ",t:\"" << "helicopter" << "\",n:\""
                    << "UH-1Y" << "\",b:\"" << "uaz_cdf" << "\"}";
			}
Here are some databases you can use:
ArmAII/ArmAII:OA library of available equipment and objects
http://community.bistudio.com/wiki/ArmA_2:_Vehicles
I've got a dll with the latest choppers added.If you wish I can upload it.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us