Jump to content

cops

Members
  • Posts

    3,122
  • Joined

  • Last visited

Posts posted by cops

  1. 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

  2. Posting a link to a topic that links back to our download database from which v1.8 is gone? Not too clever, are we?

    what you says XD

    a little mistake... not a little mistake but a big litte mistake

    what am I stupid!!!! :1046275767_ugly:

    sorry :sorrysign::blush:

  3. I did what Martjuh.DenB says but now is my vehicle a box with missing prototype :s

    I did my file (FDNY_ambulance.v3o and FDNY_ambulance.bak) in the file ambulance.

    I clickt on "new"in the ambulance menu

    searcht the file(s) and clickt on it and than I should have it right?

    or is a tutorial available?

    BTW: I can't convert .bak and .v3o to .dds

    maybe that someone can explain? :nixweiss:

    Cops

    (sorry for my English)

  4. A car is a 3d model with textures on it. For the model you should use Zmodeler to get it in V3O format so it could be put ingame. For the textures you can use MS paint, Photoshop or other image editing software.

    A map needs a texture that can be done using an image editing software and the Em4 editor to place the buildings and the events.

    I have a question about that .V3O file.

    I have managed it to make a .V3O file but how can I change it to a .e4p file?

    Cops

×
×
  • Create New...