Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » SSGM plug-in release; Base Defence
Re: SSGM plug-in release; Base Defence [message #274554 is a reply to message #273794] Fri, 20 July 2007 16:01 Go to previous messageGo to previous message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma:
General (2 Stars)

void MDB_SSGM_Base_Defense::Killed(GameObject *obj, GameObject *shooter) {
	if (Settings->GameMode == 1) {
		if (strstr(Commands->Get_Preset_Name(obj),"Nod_Turret_MP")) {
			GameObject *DestroyedTurret = Commands->Create_Object("Nod_Turret_Destroyed",Commands->Get_Position(obj));
			Commands->Set_Facing(DestroyedTurret,Commands->Get_Facing(obj));
		}
		if (Settings->LogBuildingKills) {
			GameObject *Preset = GetExplosionObj();
			if (!Preset) {
				Preset = shooter;
			}
			FDSMessage(StrFormat("%s destroyed thanks to %ls (%s)",Translate_Preset(obj).c_str(),Get_Wide_Player_Name(shooter),Get_Preset_Info(Preset).c_str()),"_BUILDING");
		}
	}
}


To get rid of the destroyed turret just comment out (or remove):
		/*if (strstr(Commands->Get_Preset_Name(obj),"Nod_Turret_MP")) {
			GameObject *DestroyedTurret = Commands->Create_Object("Nod_Turret_Destroyed",Commands->Get_Position(obj));
			Commands->Set_Facing(DestroyedTurret,Commands->Get_Facing(obj));
		}*/


That should do it afaik O_o


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
 
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: [scripts]WWH SSM 2.0
Next Topic: [scripts]WWH SSM 2.1
Goto Forum:
  


Current Time: Mon Dec 02 10:08:25 MST 2024

Total time taken to generate the page: 0.01156 seconds