Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Veteran Plugin.  () 1 Vote
Re: Veteran Plugin. [message #307600 is a reply to message #307350] Thu, 03 January 2008 10:14 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
RoShamBo wrote on Wed, 02 January 2008 12:37

IsLowClassVehicle
GetPoints

are missing


I forgot about those...


int GetPoints(const char* Preset) {
	int VetWorth = 0;
	if (stricmp(Preset,"CnC_GDI_Engineer_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_GDI_Engineer_2SF") == 0) VetWorth = 3;
	else if (stricmp(Preset,"CnC_GDI_Grenadier_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_GDI_Grenadier_2SF") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_Ignatio_Mobius")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_GDI_MiniGunner_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_GDI_MiniGunner_1Off") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_GDI_MiniGunner_2SF") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_GDI_MiniGunner_3Boss")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_GDI_RocketSoldier_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_GDI_RocketSoldier_1Off") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_GDI_RocketSoldier_2SF") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_Nod_Engineer_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_Nod_FlameThrower_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_Nod_FlameThrower_1Off") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_Nod_FlameThrower_2SF") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_FlameThrower_3Boss")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_Nod_Minigunner_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_Nod_Minigunner_1Off") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_Nod_Minigunner_2SF") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_Minigunner_3Boss")) VetWorth = 3;
	else if (strstr(Preset,"CnC_Nod_MiniGunner_3Boss")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_Nod_RocketSoldier_0") == 0) VetWorth = 1;
	else if (stricmp(Preset,"CnC_Nod_RocketSoldier_1Off") == 0) VetWorth = 2;
	else if (stricmp(Preset,"CnC_Nod_RocketSoldier_2SF") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_RocketSoldier_3Boss")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_Nod_Technician_0") == 0) VetWorth = 3;
	else if (strstr(Preset,"CnC_Sydney_PowerSuit")) VetWorth = 3;
	else if (stricmp(Preset,"CnC_Sydney") == 0) VetWorth = 2;
	else if (strstr(Preset,"CnC_GDI_APC")) VetWorth = 3;
	else if (strstr(Preset,"CnC_GDI_Humm-vee")) VetWorth = 2;
	else if (strstr(Preset,"CnC_GDI_MRLS")) VetWorth = 3;
	else if (strstr(Preset,"CnC_Civilian_Pickup01_Secret")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Civilian_Sedan01_Secret")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_APC")) VetWorth = 3;
	else if (strstr(Preset,"CnC_Nod_Buggy")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_Mobile Artillery")) VetWorth = 3;
	else if (strstr(Preset,"Nod_Chameleon")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_Recon_Bike")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_Transport")) VetWorth = 2;
	else if (strstr(Preset,"CnC_GDI_Transport")) VetWorth = 2;
	else if (strstr(Preset,"CnC_GDI_Medium_Tank")) VetWorth = 4;
	else if (strstr(Preset,"CnC_GDI_Mammoth_Tank")) VetWorth = 5;
	else if (strstr(Preset,"CnC_Nod_Light_Tank")) VetWorth = 4;
	else if (strstr(Preset,"CnC_Nod_Flame_Tank")) VetWorth = 4;
	else if (strstr(Preset,"CnC_Nod_Stealth_Tank")) VetWorth = 5;
	else if (strstr(Preset,"CnC_Nod_Apache")) VetWorth = 4;
	else if (strstr(Preset,"CnC_GDI_Orca")) VetWorth = 4;
	else if (strstr(Preset,"CnC_GDI_Harvester")) VetWorth = 2;
	else if (strstr(Preset,"CnC_Nod_Harvester")) VetWorth = 2;
	return VetWorth;
}




bool IsLowClassVehicle(const char *Preset) {
	if (strstr(Preset,"CnC_GDI_APC")) return true;
	else if (strstr(Preset,"CnC_GDI_Humm-vee")) return true;
	else if (strstr(Preset,"CnC_GDI_MRLS")) return true;
	else if (strstr(Preset,"CnC_Civilian_Pickup01_Secret")) return true;
	else if (strstr(Preset,"CnC_Civilian_Sedan01_Secret")) return true;
	else if (strstr(Preset,"CnC_Nod_APC")) return true;
	else if (strstr(Preset,"CnC_Nod_Buggy")) return true;
	else if (strstr(Preset,"CnC_Nod_Mobile Artillery")) return true;
	else if (strstr(Preset,"Nod_Chameleon")) return true;
	else if (strstr(Preset,"CnC_Nod_Recon_Bike")) return true;
	else if (strstr(Preset,"CnC_Nod_Transport")) return true;
	else if (strstr(Preset,"CnC_GDI_Transport")) return true;
	return false;
}




 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: c++ simple commands
Next Topic: strings
Goto Forum:
  


Current Time: Tue Dec 24 11:37:41 MST 2024

Total time taken to generate the page: 0.01545 seconds