Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Enable
Enable [message #318186] Wed, 20 February 2008 13:51 Go to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Hey m8tes,

i want to ask how to enable purchase Vehicles in de SSGM CTF Mode.

i tryed to activate the Warfactory and Airstrip with c++ but after i buy a vehicle nothing happen


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Enable [message #318321 is a reply to message #318186] Thu, 21 February 2008 13:28 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
That is because the SSGM disables it you cant enable it.

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Enable [message #318347 is a reply to message #318186] Thu, 21 February 2008 15:16 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
MDB_SSGM_Vehicle destroys the vehicle object if the mode is not 1 or it isn't a harvester.
It does this on the ::Created event here:

void MDB_SSGM_Vehicle::Created(GameObject *obj) {
	if (Settings->GameMode != 1 && !Is_Harvester_Preset(obj)) {
		Commands->Destroy_Object(obj);
	}
	else if (!Data->Mod && Settings->EnableVehicleDamageAnim) {
		Commands->Attach_Script(obj,"MDB_SSGM_Vehicle_Damage_Animation","");
	}
}


If you want your purchase vehicle chat hook to work properly in CTF mode then you will have to remove this line:

Commands->Destroy_Object(obj);


This way butchers the script really, as that would mean vehicles could be created in all modes, but if you are just running a plain ctf server with no other maps using other modes I can;t really see the harm.
If you are using other modes for other maps on the same FDS then please say so, as you will need to do something else entirely to make it work as intended.



Re: Enable [message #318433 is a reply to message #318186] Fri, 22 February 2008 05:26 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

thanks for your help reborn Smile

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Enable [message #318453 is a reply to message #318433] Fri, 22 February 2008 13:15 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
ty

Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Enable [message #318733 is a reply to message #318186] Sun, 24 February 2008 07:00 Go to previous messageGo to next message
renalpha is currently offline  renalpha
Messages: 1000
Registered: January 2007
Location: Holland - Zuid-Holland - ...
Karma: 0
General (1 Star)
paddy ur sig r0x
i love it Razz


Aircraftkiller wrote on Fri, 18 February 2011 23:50

I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing! Smile

Re: Enable [message #318911 is a reply to message #318733] Mon, 25 February 2008 10:58 Go to previous messageGo to next message
The Executor is currently offline  The Executor
Messages: 464
Registered: February 2008
Location: Eastern Coast, USA
Karma: 0
Commander
renalpha wrote on Sun, 24 February 2008 08:00

paddy ur sig r0x
i love it Razz


Me too. Thumbs Up


Imperial Class Super Star Destroyer
http://l.yimg.com/us.yimg.com/i/us/wrlds/strwrs/gr/hdrs/super-star-destroyer-1.jpg

Quote:

"Fear will keep these systems inline, fear of this battle station!"

-Grand Admiral Moff Tarkin



Re: Enable [message #318912 is a reply to message #318186] Mon, 25 February 2008 11:02 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Pwnz0r Sig. XD best Sig ever Very Happy
Re: Enable [message #318929 is a reply to message #318186] Mon, 25 February 2008 12:48 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
TGPaddy wrote on Wed, 20 February 2008 14:51

Hey m8tes,

i want to ask how to enable purchase Vehicles in de SSGM CTF Mode.

i tryed to activate the Warfactory and Airstrip with c++ but after i buy a vehicle nothing happen


Could you post the code for activating WF and Air?

thanks Smile
Re: Enable [message #318938 is a reply to message #318186] Mon, 25 February 2008 14:05 Go to previous message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

	}
	if (obj != damager && damage != 0.0f) {
		if (Settings->GameMode == 2 && (Is_SoldierFactory(obj) || Is_VehicleFactory(obj) || Is_Refinery(obj))) {
			Commands->Set_Health(obj,Commands->Get_Max_Health(obj));
		}
		else if ((Settings->GameMode == 3 || Settings->GameMode == 4) && Is_SoldierFactory(obj)) {
			Commands->Set_Health(obj,Commands->Get_Max_Health(obj));
		}

		if (Settings->InvinBuild) {
			Commands->Set_Health(obj,Commands->Get_Max_Health(obj));
		}
	}
}


in gmscripts.cpp i think Razz


My like my sigpicture too


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Mon, 25 February 2008 14:06]

Report message to a moderator

Previous Topic: ramjet gmax request
Next Topic: What to do with a mod
Goto Forum:
  


Current Time: Mon Sep 02 14:21:57 MST 2024

Total time taken to generate the page: 0.01055 seconds