Jump to content
UkMod999

Scotland Mod V2.0 In The Make! (Work In Progress) UPDATE 06/6/11!

Recommended Posts

I hope this can get back up and carry on despite...well, needs no mentioning.

Least we can take heart in the fact a mod paid a visit and all is still well in terms of the thread being open =]

I wish I could mod, i'd offer straight up to help otherwise :(

Best of luck with this (I especially like the idea of 15 minor followed by major :12: )

Thanks Allot Mate. Its Going To Take Allot Of Time To Get This Mod Going. Im Not Stopping. This Mod Is Going To Keep Getting Better. Thanks For The Comment On The 15 Then A Major.

Thanks And I Hope You Can Keep Giving Great Comments And Feedback.

Link to comment
Share on other sites

How do i add sirens to my truck. Its in game and i have the siren i want to use. How can i make it work on the truck

First of al you need the SoSi script (you can download it from www.lamod.emergency-planet.com)

Than you need to add your vehicle prototype line:

**explain**

(LA mod 1.9)

(beginning)

const char CMD_AUTOSIREN_OFF[] = "VcmdAutoSirenOff";

const char EACTION_FINDPATH[] = "EActionFindPath";

const char EACTION_EXTINGUISH[] = "EActionExtinguish";

const char DUMMY_HASSIREN[] = "DummyHasSiren";

const char DUMMY_UPDATEPOS[] = "DummyUpdatePos";

const char DUMMY_FINDPATH[] = "DummyFindPath";

const char DUMMY_HOSESON[] = "DummyHosesAreOn";

const char NAME_DUMMYOBJECT[] = "HelpingObjekt_Hoppah";

const char DUMMY_GETTIL[] = "DummyGetTiller";

(the car line('s))

const char PROTO_ENGINE01[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p";

const char PROTO_ENGINE02[] = "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine2.e4p";

than you need to have this:

int DummyGroup = 23;

object VcmdSiren : CommandScript

{

VcmdSiren()

{

SetIcon("sirenson");

SetCursor("sirens");

SetRestrictions(RESTRICT_SELFEXECUTE);

SetPossibleCallers(ACTOR_VEHICLE);

SetGroupID(DummyGroup);

SetGroupLeader(true);

}

bool CheckPossible(GameObject *Caller)

{

if (!Caller->IsValid())

return false;

if (Caller->HasCommand(DUMMY_HASSIREN))

SetIcon("sirensoff");

else

SetIcon("sirenson");

if(Caller->HasCommand(DUMMY_HOSESON))

return false;

return true;

}

bool CheckTarget(GameObject *Caller, Actor *Target, int childID)

{

if (!Target->IsValid() || Target->GetID() != Caller->GetID())

return false;

return true;

}

void PushActions(GameObject *Caller, Actor *Target, int childID)

{

Vehicle v(Caller);

if (!v.HasCommand(DUMMY_HASSIREN))

{

and after this you need to add a line for sirene

}

int soundID;

Vector CarPos = v.GetPosition();

if (StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE01) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE02) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_WATERTENDER) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_LADDER) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_TILLER) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_HAZMAT) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_MOTORBOAT) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_CRASHTENDER) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_USAR) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_MCU01) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_USFS02) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_SWAT_TRUCK) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_HEAVY_RESCUE) == 0 ||

StrCompare(v.GetPrototypeFileName(), PROTO_FBI_COMMAND) == 0)

{(this is for the Fire department but you also can do it for police EMS etc...)

If I have it wrong please say it to me!!

( you can also look in an siren script for an mod LA mod or something like that)

I hope it works :12: :12:

Cops

Edited by cops
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...