Enable [message #318186] |
Wed, 20 February 2008 13:51 |
|
SODPaddy
Messages: 233 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 #318347 is a reply to message #318186] |
Thu, 21 February 2008 15:16 |
|
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 #318938 is a reply to message #318186] |
Mon, 25 February 2008 14:05 |
|
SODPaddy
Messages: 233 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
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
|
|
|