Jump to content

RedHawk504

Members
  • Posts

    1,026
  • Joined

  • Last visited

Posts posted by RedHawk504

  1. Hello,

     

    I want to add a sound to this script, so whenever i click it it will only play a single sound once.
    What am i doing wrong?

     

    //**********************************************************************************************************
    // #Version 2.0#
    //          
    //          Original script for em3 by: Rev Bem
    //          Made compatible for em4 by: Godra
    //          Godra's version fixed by: Hoppah
    //          Script commented for easier use by: Stan
    //          
    // Usage of this script in other is allowed with mention of Godra, Hoppah & Rev Bem in the readme
    //
    //**********************************************************************************************************
    int DummyGroup = 20;
     
    // Definitionen - Hier muss geändert werden!
     
    const char AlarmMessage[] = "Container afzetten."; // Die Nachricht die beim Alarm abgespielt wird
    const char AlarmSound[] = "mod:Audio/FX/Motoren/aan.wav"; // Pfad zum Sound der abgespielt wird - muss Mono & WAV sein
     
     
    object wlfloadupTEST : CommandScript
    {
    wlfloadupTEST()
    {
    SetCursor("wlfloadup");
    SetIcon("wlfloadup");
    SetValidTargets(ACTOR_VEHICLE);
    }
     
     
    bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
    {
    if(!Caller->IsValid() || !Target->IsValid() || (Caller->GetID()==Target->GetID()))
    return false;
     
    Vehicle v(Target);
                    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    //INFO:
                    //[ENG]: Put the link to the e4p file of the container only
                    //[DE]:  Hier nur den link zur e4p von dem container reinschreiben
                    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/02Brandweer/27.e4p") == 0)
                    {
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    //INFO:
                    //[ENG]: The "if (v.IsInstalled())" function checks if the hose conenctions are curently used
                    //[DE]:  Die "if (v.IsInstalled())" function checkt ob schlauch anschlusse benutzt werden 
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
              if (v.IsInstalled())
           return false;
     
                            if(v.GetUserData() == 0)
                                    return true;
                    }
    return false;
    }
     
    void PushActions(GameObject *Caller, Actor *Target, int childID)
    {
                    Vehicle v(Caller);
                    Vehicle c(Target);
                    v.PushActionMove(ACTION_NEWLIST, Target, TARGET_LOADUP);
                    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    //INFO:
                    //[ENG]: Put the link to the e4p file of the container only
                    //[DE]:  Hier nur den link zur e4p von dem container reinschreiben
                    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    if(StrCompare(c.GetPrototypeFileName(), "mod:Prototypes/Vehicles/02Brandweer/27.e4p") == 0)
                    {
                            v.PushActionExecuteCommand(ACTION_APPEND, "DummyWLF", Target, 1, false);
                    }
            }
            
    };
     
    object DummyWLF: CommandScript
    {
    DummyWLF()
    {
    }
     
    bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
    {
    }
     
    void PushActions(GameObject *Caller, Actor *Target, int childID)
    {
                    Vehicle v(Caller);
                    Vehicle c(Target);
                    float r1, r2, r3, r4, r5, r6, r7, r8, r9;
                    Vector pos = v.GetPosition();
                    v.GetRotation(r1, r2, r3, r4, r5, r6, r7, r8, r9);
                    Vehicle WLF;
                    if(childID == 1)
                    {
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    //INFO:
                    //[ENG]: Put the link to the e4p file of the container truck including container
                    //[DE]:  Hier den link zur e4p von dem container truck mit container
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                            WLF = Game::CreateVehicle("mod:Prototypes/Vehicles/02Brandweer/53.e4p", "WLF1");
                    }
                    if(childID == 2)
                    {
                            WLF = Game::CreateVehicle("mod:Prototypes/Vehicles/02Brandweer/53leeg.e4p", "WLF2");
                    }
                    WLF.SetPosition(pos);
                    WLF.SetRotation(r1, r2, r3, r4, r5, r6, r7, r8, r9);
     
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    //INFO:
                    //[ENG]: WLF.SetMaxPassengers(3); = Max units in the container truck (can change if you changed in editor)
                    //[ENG]: WLF.SetSpeed(9.0f); = Vehicle speed 9.0 is egal to 90
                    //[DE]:  WLF.SetMaxPassengers(3); = Einheiten im container truck (kan man heir ander fals im editor geandert)
                    //[DE]:  WLF.SetSpeed(9.0f); = Fahrzeug speed 9.0 is gleich an 90
                    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    WLF.SetMaxPassengers(2);
       WLF.SetSpeed(8.0f);
     
       int PlayerID = v.GetPlayerMP();
       WLF.SetPlayerMP(PlayerID);
     
       PersonList passengers = v.GetPassengers();    
       for(int i = 0; i < passengers.GetNumPersons(); i++)
       {
    v.RemovePassenger(&passengers.GetPerson(i));
    WLF.AddPassenger(&passengers.GetPerson(i));
       }
     
       PersonList transports = c.GetTransports();
       for(int i = 0; i < transports.GetNumPersons(); i++)
       {
          c.RemoveTransport(&transports.GetPerson(i));
          WLF.AddTransport(&transports.GetPerson(i)); 
       }
     
       v.PushActionWait(ACTION_APPEND, 0.1f);
                    v.PushActionDeleteOwner(ACTION_NEWLIST);
                    c.PushActionDeleteOwner(ACTION_NEWLIST);
    }
            };
            Mission::PlayHint(AlarmMessage);
            if(GameSoundID == 1)
            {
            Audio::PlaySample(AlarmSound);
            }
            Vector TargetPos=Game::GetCommandPos();
            Game::FindFreePosition(&v, TargetPos, 90);
            };
     

  2. Okay guys,

     

    We've got a small update for you guys lol:

     

    Vindt hier alle voertuigen die tot op heden gemaakt zijn.

    AMBULANCE

    Ambulance 20-101 Mercedes-Benz Sprinter 319 CDI [NL]
    y57u.png

    HAP (Medic Car) Volkswagen Touareg 2013 [NL]
    kw12.png







    Brandweer

    Laddertruck from  Kapellen [bE]
    dlk.png

    First fire truck from Kapellen [bE]
    taskapellen.png

    Watertruck (brush truck) Kapellen [bE] (Retired vehicle, will still be able for use ingame.)
    twkapellen.png

    7234 Fire Department Bergen op Zoom Primary Vehicle for region TAS [NL]
    7234preview.png


    Communication Truck DAF CF + Small respond vehicle to Communication truck when there's a big fire going on.( Volkswagen Polo 9904 ) [NL]
    ngof.png


    Shiftcar Fire Department of Antwerpen (Opel Insignia) [bE]
    u6ha.png

    CP-OPS (Team of special trained firemen, to rescue people from all hights) Fire Departnebt Kapellen Ford Transit 1993 [bE]
    bqnv.png

    Daily ''Officier'' Could be compared with a batallion chief. (OvD 2591, Moerdijk res. OvD) Ford C-Max [NL]
    czpe.png

    Commandvehicle Fire Department Kapellen Ford C-Max [bE]
    ztdu.png

    Shiftcar for dutch fire department ( 6195+ 7292 + 7291 (Volkswagen Golf Variant + Opel Vivaro + Opel Combo) [NL]
    nzbv.png
    sdcx.png

    Brushtruck Vehicle 7263 Fire Department Bergen op Zoom Volvo FM 2013 [NL]
    ij0u.png



    Politie

    Police van from  Roosendaal 01.01 + 01.02 [NL]
    x67j.png

    Volkswagen T5 Dog van (Will be able to use dogs if necessary) (01.45) Roosendaal [NL]
    7u69.png

    Country units police ( Politie) Volkswagen Polo + Neighborhood inspection vehicle (  Volkswagen Golf Variant )
    ghva.png

    Volkswagen T5 Road Police ( Vlaanderen [bE] )
    kyvj.png

    Audi A4 Station (Station is been swapped because the sedan version was not there yet.) Road Police [bE]
    cwfo.png


    Volkswagen T5 Royal Marshals (Koninklijke Marechaussee . Sportlaan, Hogerheide [NL]
    xkpm.png

  3. Hey Scrivis,

     

    You forgot to mention me in the credits for the back part of the Dennis Rapier from the Antwerpen Mod.

     

    ''If you were to give permission for me to release the model I would of course give full credit  :)'' 

     

    Not a big problem mate, but just mention me in the credits alright?

    Cheers.

     

  4. That looks very nice actually, although it does need some polishing here and there. The cars look very detailed and the map looks good, a lot of Dutch influences are visible. I especially like what you did with the 1-6 buttons and the lights look very good too. I may actually try this mod out once I have some time.

     

    Will this mod be updated?

     

     

     

    Hoppah

     

     

    When Hoppah reacts: shit-just-got-real.jpg

  5. Windows XP SP 1, that's the best way to run it. Make also sure you have SWAT 4 allowed to use internet for multiplayer.

    It's an nice game. I've been admin on an server for years! Good to know there are still people out there playing this kickass game!

  6. Hello people of this community,

    Today i'm proud to announce i'm working together with Alexandre Costa Kikuchi to make an police simulation game.

    The game will mostly be focused on the way thing will work, as example the ticket system, handcuff system and more.

    Also the game won't have really high graphics like battlefield 3 and stuff, but also it won't be that bad.

    Please visit the website of the game for more info: http://policetacticsgame.blogspot.com.br/

    For now i have made an really tiny footage of the first stage of the game: The prototype.

    The video will show you some basic functions of the map, car and bluelight/siren options.

    Enjoy the video! Please subscribe for new footage of the game.

    If you have any questions, please ask here.

  7. I can give you a good example what this chief does,

    Whenever there's chemical risks, this chief will come to the accident's location, he will in combination with other chief's (OVD)/(H-OvD) change the situation to a new lever which will need more vehicles to respond to the area of the accident.

    In Netherlands we use:

    NL ENG

    Middelbrand = Middle big fire (think like kitchen fire's and stuff like that)

    Grote Brand = Big fire (This alarm will be given whenever there's a big fire, like a house fire or something familiar.)

    Zeer Grote Brand = Even bigger than the last one (This one will require many more units because now you can see the flames coming out of the building already as example, could also be other structures)

    GRIP 1 = This situation is the almost the same as ''Zeer Grote Brand'' Only now the ROGS 9895 which i made will come to the scene to speak with other fire chief's to change the level to GRIP 2

    GRIP 2 = Whenever GRIP 2 is given, there will be more units out of the local area respond to the fire or accident's place because its pretty big to handle with only 5-6 fire engines.

    GRIP 3 = Reall Really but a really big fire, this situation is not given very often. When it's given it's mostly because an factory is on fire. (More units needed to respond to the fire or accident's place.) Think now like more laddertrucks, fire engine's rescue squads and more.

    GRIP 4 = Is almost the biggest situation there will be given. Now there will be crashtenders from the local airports on their to an fire to help extinguish it. Those have big water canons to extinguish.

    GRIP 5 = Recently added to the GRIP 1/4 situations. I don't exactly know what this situation does, but in any case it's a really worse sitation.

    All the things i named above this will be only given by fire truck chiefs (Bevelvoerders) or by fire chiefs (OVD/HOVD)

    It's not possible to give out of nothing GRIP 5, all situations had to be used before the last one could be given.

    Hopefully i explained enough? If you have any further questions you can post them here-under. (Sorry if you couldn't understand if, but it's really hard to explain in American ways of usage.)

×
×
  • Create New...