Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Replacing Vehicles With Weapons
Re: Replacing Vehicles With Weapons [message #177597 is a reply to message #177592] Wed, 02 November 2005 23:21 Go to previous messageGo to previous message
ghostSWT
Messages: 262
Registered: December 2003
Karma:
Recruit
in ssaow 1.3.4

under
void M00_GrantPowerup_Created::Created(GameObject *obj) {

there is a
		if (Settings_ShowPlayerPurchase) {
			char PurchaseMsg[512];
			sprintf(PurchaseMsg,"%s purchased a %s",Get_Player_Name(obj),Translate_Preset(IsPlayerVehicle(obj)));
			FDSMessage(PurchaseMsg,"_PURCHASE");
		}


based on that in that function make something like
if (Translate_Preset(IsPlayerVehicle(obj)) == "Nod Flame Tank") 
{
  kill tank
  grant flame thrower
}
else if (Translate_Preset(IsPlayerVehicle(obj)) == "GDI Medium Tank")
{
  kill tank
  grant rocket
} 


you will find the tank names in the server2.ini
 
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: AOW 1.34 compile - 2 libs missing [wsock32.lib and ?????]
Next Topic: Obelisk Problem
Goto Forum:
  


Current Time: Wed Dec 11 23:18:56 MST 2024

Total time taken to generate the page: 0.01058 seconds