DayZ Navigator rMod Vehicles Code

Posts 1–8 of 8 · Page 1 of 1
DayZ Navigator rMod Vehicles Code
Code:
			if(ents[i].object_classname.find("MTVR") != 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:\"" << "uaz" << "\",n:\""
					<< "MTVR" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Kamaz") != 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:\"" << "uaz" << "\",n:\""
					<< "Kamaz" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Mutt") != 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:\"" << "uaz" << "\",n:\""
					<< "Mutt" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Golf") != 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:\"" << "uaz" << "\",n:\""
					<< "Golf" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("BTR40") != 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:\"" << "uaz" << "\",n:\""
					<< "BTR40" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("BTR") != 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:\"" << "uaz" << "\",n:\""
					<< "BTR" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("LAV25") != 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:\"" << "uaz" << "\",n:\""
					<< "LAV25" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("AH64") != 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:\"" << "uaz" << "\",n:\""
					<< "AH64" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("A10") != 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:\"" << "uaz" << "\",n:\""
					<< "A10" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("T90") != 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:\"" << "uaz" << "\",n:\""
					<< "T90" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("D30") != 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:\"" << "uaz" << "\",n:\""
					<< "D30" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("M119") != 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:\"" << "uaz" << "\",n:\""
					<< "M119" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("M2") != 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:\"" << "uaz" << "\",n:\""
					<< "M2" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("AG5") != 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:\"" << "uaz" << "\",n:\""
					<< "AG5" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("DShKM") != 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:\"" << "uaz" << "\",n:\""
					<< "D5hKM" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Metis") != 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:\"" << "uaz" << "\",n:\""
					<< "Metris" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("KORD") != 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:\"" << "uaz" << "\",n:\""
					<< "Kord" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("AH1Z") != 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:\"" << "uaz" << "\",n:\""
					<< "AH1Z" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("AH6") != 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:\"" << "uaz" << "\",n:\""
					<< "AH6" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("MH6") != 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:\"" << "uaz" << "\",n:\""
					<< "MH6" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("UH60") != 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:\"" << "uaz" << "\",n:\""
					<< "UH60" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("MH60") != 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:\"" << "uaz" << "\",n:\""
					<< "MH60" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("AV8B") != 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:\"" << "uaz" << "\",n:\""
					<< "AV8B" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("KA50") != 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:\"" << "uaz" << "\",n:\""
					<< "KA50" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Mi17") != 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:\"" << "uaz" << "\",n:\""
					<< "Mi17" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Mi18") != 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:\"" << "uaz" << "\",n:\""
					<< "Mi18" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Camel") != 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:\"" << "uaz" << "\",n:\""
					<< "Camel" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Para") != 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:\"" << "uaz" << "\",n:\""
					<< "Para" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("MV22") != 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:\"" << "uaz" << "\",n:\""
					<< "MV22" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			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:\"" << "uaz" << "\",n:\""
					<< "UH1Y" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("HIND") != 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:\"" << "uaz" << "\",n:\""
					<< "HIND" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("F35B") != 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:\"" << "uaz" << "\",n:\""
					<< "F35B" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("SU25") != 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:\"" << "uaz" << "\",n:\""
					<< "SU25" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("C130") != 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:\"" << "uaz" << "\",n:\""
					<< "C130" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("KA52") != 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:\"" << "uaz" << "\",n:\""
					<< "KA52" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("BRDM2") != 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:\"" << "uaz" << "\",n:\""
					<< "BRDM2" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("HMMWV") != 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:\"" << "uaz" << "\",n:\""
					<< "HMMWV" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Sedan") != 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:\"" << "uaz" << "\",n:\""
					<< "Sedan" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Skodovka") != 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:\"" << "uaz" << "\",n:\""
					<< "Skodovka" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

			if(ents[i].object_classname.find("Stryker") != 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:\"" << "uaz" << "\",n:\""
					<< "Stryker" << "\",b:\"" << "uaz_cdf" << "\"}";
			}

Can someone please add this and release? All vehicles are not here, but most of them are. I tried adding it but compiling never works for me.

Also please thank me for this.
Why are you using the same truck icon for every type of vehicle? Doesn't that get confusing?
Quote Originally Posted by Sociopathic View Post
Why are you using the same truck icon for every type of vehicle? Doesn't that get confusing?
Go ahead and change it, I don't see the point of adding everything different, too much work.
I don't see the point of adding everything different, too much work.
Quote Originally Posted by KernWillia View Post
I don't see the point of adding everything different, too much work.
If you used rMod, you would understand why I want this.
Quote Originally Posted by KernWillia View Post
I don't see the point of adding everything different, too much work.
Congratulations, you successfully repeated exactly what he just said.
Good job with this one
Very good job with this,
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us