Jump to content

The Loot

Members
  • Posts

    753
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by The Loot

  1. When using something such as "p.RemoveCommand", is there a way to remove ALL commands, or will they have to be done individually? Well, found a work around by creating new prototypes instead of worrying about removing and adding all the commands.

     

    Also, when deleting a prototype and replacing it with a new one, is there a way to make the new one automatically selected? Dug around in the US Army mod and found out the way. Thanks, Hoppah!

     

    And another, how do you arrange the order in which commands are displayed? Order in editor, apparently. I swore it hadn't worked before.

     

    Well, seems I answered all my questions. If anyone's interested in my methods, ask away.

  2. Weird, because under Resistance in Traits, the numbers are greyed out, and don't correspond to either "fireresistance" in specs nor a 0-100% scale (numbers like 3000 and 6000 for PM and PMSCBA).

     

    Also, in the first EM4 mission, it's supposed to find Person Type Mask and not do damage to them in the smoke, but both SCBA units get damaged.

     

    And in the LA Race Crash mission, I had two SCBA Firefighters go down near the burning cars.

  3. For some reason, my Firefighters are taking damage from being around fires and smoke during missions. I've tweaked a lot of things in the LA submod I'm using, but I can't think of anything that would have caused it to happen. What files and settings should I look at to fix this?

     

    The only thing I can think of is "materials", which I'd need a copy of the default one as I screwed up and edited it instead of a mod copy.

     

    Also, I've now noticed that the dog does not appear from the Rescue Dog vehicle, nor can I find a script that controls that.

     

    Scratch that, it must have glitched the first time.

  4. Using the 4x4 YSB submod and the Battalion Chief vehicle at Station One does not empty when it returns. The EMS vehicle there, and both vehicles at Station Two empty, and I can't see a difference in the script that would be causing it. Any help?

     

     

     

    LAToFireStation.rar

     

    Figured it out finally. The BCV was separated from the other commands by an if/else that is kind of confusing looking, but apparently worked otherwise. Just added the missing actions to the BCV section and it should work now.

  5. I'm trying to find a different way of doing "VehicleList patrolCars(VT_POLICE_MTW, VT_POLICE_STW);", ideally just using a list of prototypes to find. Any time I've tried to add another VT group, it causes an error. Anyone have ideas?

     

    Nevermind, found a German site that suggested "VT_THW_FGRR_BKF, VT_POLICE_GTW" to allow all vehicles to be valid, and I know how to make it look for specific prototypes. Now I can call almost ALL vehicles on my freeplay map, except for a Swift Water Rescue truck that refuses to work correctly even though it's a copy-paste-edit of working scripts.

  6. - Sometimes, police officers get bugged when holstering their guns. All of the options on that officer stop working when this happens resulting in that officer becoming 'useless' (need to send to HQ).

     

    I believe you can fix that one by getting a fire extinguisher or other equipment and then dropping it.

  7. I've been fiddling around with the call patrol car script in LA mod version 2.1. I put a WAV file i have in and replaced the pd backup call that was there (overwrited it) with my file. I won't play the file in game and i can't figure out how to remove the backup from coming.

     

    Save the following as a new .script file, and add "PcmdShotsFired" to the person in the editor.

     

    const char SND_PDBACKUP[]                = "mod:Audio/FX/radio/pd_backup.wav"; //rename if sound file differentconst char UNNAMED[]                     = "Unnamed";const char HINT_SHOTS[]                     = "Shots fired!";object PcmdShotsFired : CommandScript{PcmdShotsFired()    {SetIcon("callpatrolcar"); SetCursor("callassistance"); SetValidTargets(ACTOR_FLOOR | ACTOR_VIRTUAL); SetDeselectCaller(false); SetSelfClickActivation(true); SetHighlightingEnabled(false); SetGroupID(CGROUP_GETEQUIPMENT); SetGroupLeader(true);}    bool CheckPossible(GameObject *Caller)    {GameObjectList SelectPer = Game::GetSelectedGameObjects();        if (SelectPer.GetNumObjects() != 1) return false;        Person p(Caller);        if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false;        if (p.IsCurrentAction("EActionTreatPerson")) return false;        if (!Caller->IsValid() || Caller->GetType() != ACTOR_PERSON) return false; return true;    }    bool CheckTarget(GameObject *Caller, Actor *Target, int childID)    {if(!Caller->IsValid() || Caller->GetID() == Target->GetID()) return false;        if (Caller->GetType() != ACTOR_PERSON) return false;        Person p(Caller);        if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false;        if (p.IsCurrentAction("EActionTreatPerson")) return false; return true;    }    void PushActions(GameObject *Caller, Actor *Target, int ChildID)    {Vector CmdPos = Game::GetCommandPos(); Caller->PushActionTurnTo(ACTION_NEWLIST, CmdPos); Caller->PushActionSwitchAnim(ACTION_APPEND, "talkmike"); Caller->PushActionWait(ACTION_APPEND, 3.5f); Caller->PushActionSwitchAnim(ACTION_APPEND, "idle");        if (1){Audio::PlaySample3D(SND_PDBACKUP, Caller->GetPosition()); Mission::PlayHint(HINT_SHOTS); return;}    }}
  8. Found a few missing semicolons and added braces, so I've got this now.

     

    bool Ambulance03 = true;            bool Ambulance04 = true;            bool Ambulance05 = true;                    GameObjectList list = Game::GetGameObjects(PROTO_AMBULANCE03);                if (list.GetNumObjects() > 0){Ambulance03 = false;}            list = Game::GetGameObjects(PROTO_AMBULANCE04);                if (list.GetNumObjects() > 0){Ambulance04 = false;}            list = Game::GetGameObjects(PROTO_AMBULANCE05);                if (list.GetNumObjects() > 0){Ambulance05 = false;}                                        int Money = Mission::GetMoneyLeft();            if (Money <= 550) {Ambulance04 = false;}            else if (Money <= 850) {Ambulance03 = false; Ambulance05 = false;}                        Vehicle n;            if (Ambulance04 == true)                {n = Game::CreateVehicle(PROTO_AMBULANCE04, UNNAMED);                    int NewMoney = Money - 550;                }            else if (Ambulance05 == true)                {n = Game::CreateVehicle(PROTO_AMBULANCE05, UNNAMED);                    int NewMoney = Money - 850;                }            else if (Ambulance03 == true)                {n = Game::CreateVehicle(PROTO_AMBULANCE03, UNNAMED);                    int NewMoney = Money - 850;                }            else {Mission::PlayHint(HINT_NOAMBULANCE); return;}

     

    Problem is that it seems "GameObjectList" check isn't either finding the proto (if that's valid to use there), or isn't setting it to false if it is.

  9. I'm trying to recreate the restriction of one bomb robot when it comes to calling additional ambulances from off map.

     

    So far, I've added this to the top of the script:

    const char NAME_AMBULANCE03[]             = "Ambulance03";const char NAME_AMBULANCE04[]             = "Ambulance04";const char NAME_AMBULANCE05[]             = "Ambulance05";

    And then used this as the script for creating a vehicle:

    {System::Log("Buy ALS Ambulance");            bool Ambulance03 = true;            bool Ambulance04 = true;            bool Ambulance05 = true;                        GameObjectList list = Game::GetGameObjects(NAME_AMBULANCE03)                if (list.GetNumObjects() > 0) Ambulance03 = false;            GameObjectList list = Game::GetGameObjects(NAME_AMBULANCE04)                if (list.GetNumObjects() > 0) Ambulance04 = false;            GameObjectList list = Game::GetGameObjects(NAME_AMBULANCE05)                if (list.GetNumObjects() > 0) Ambulance05 = false;                        int Money = Mission::GetMoneyLeft();            if (Money <= 550) Ambulance04 = false;            else if (Money <= 850)(Ambulance03 = false && Ambulance05 = false);                        Vehicle n;            if (Ambulance04 = true)                {n = Game::CreateVehicle(PROTO_AMBULANCE04, UNNAMED);                    int NewMoney = Money - 550;                }            else if (Ambulance05 = true)                {n = Game::CreateVehicle(PROTO_AMBULANCE05, UNNAMED);                    int NewMoney = Money - 850;                }            else if (Ambulance03 = true)                {n = Game::CreateVehicle(PROTO_AMBULANCE03, UNNAMED);                    int NewMoney = Money - 850;                }            else {Mission::PlayHint(HINT_NOAMBULANCE); return;}                        Mission::SetMoney(NewMoney);            n.SetSpeed(12.0f);                        Person p1; Person p2;            p1 = Game::CreatePerson(OBJ_PM, UNNAMED); p2 = Game::CreatePerson(OBJ_PM, UNNAMED);            n.SetPlayerMP(Caller->GetPlayerMP()); p1.SetPlayerMP(Caller->GetPlayerMP()); p2.SetPlayerMP(Caller->GetPlayerMP());            p1.SetUpgradeLevel(3); p2.SetUpgradeLevel(3);            n.SetMaxPassengers(2); n.SetMaxTransports(1); n.AddPassenger(&p1); n.AddPassenger(&p2); n.SetPosition(Spawn); n.UpdatePlacement(); n.Hide();            n.PushActionTurnTo(ACTION_NEWLIST, Rotate); n.PushActionWait(ACTION_APPEND, 35.0f); n.PushActionShowHide(ACTION_APPEND, false); n.PushActionMove(ACTION_APPEND, CmdPos); n.RemoveCommand("VcmdToFireStation"); n.RemoveCommand("VcmdToHospital"); n.RemoveCommand("VcmdPatrolAmbulance");            if (!n.HasCommand(DUMMY_HASSIREN) && n.HasCommand(CMD_AUTOSIREN_OFF) && !Input::LShiftPressed() && !Input::RShiftPressed()) Game::ExecuteCommand(CMD_SIREN, &n, &n); Mission::PlayHint(HINT_ALSAMBUBOUGHT);                    }

     

    I end up with the following script errors:

    • ?(_LACallAmbulance80504): Error: Game::GetGameObjects(NAME_AMBULANCE03)if(list.GetNumObjects()>0)Ambulance03  Syntax error?
    • ?(_LACallAmbulance80504):  FILE:mod:/scripts/game/command/LACallAmbulance.script80504 LINE:203
    • ?(_LACallAmbulance80504): Error: if(list.GetNumObjects()>0)Ambulance03  Syntax error?
    • ?(_LACallAmbulance80504):  FILE:mod:/scripts/game/command/LACallAmbulance.script80504 LINE:203
    • ?(_LACallAmbulance80504): Error: Symbol list is not defined in current scope
    • ?(_LACallAmbulance80504):  FILE:mod:/scripts/game/command/LACallAmbulance.script80504 LINE:203
    • ?(_LACallAmbulance80504): Error: Failed to evaluate list.GetNumObjects()
    • ?(_LACallAmbulance80504): Possible candidates are...
    • ?(_LACallAmbulance80504): filename       line:size busy function type and name  
    • ?(_LACallAmbulance80504):
    • ?(_LACallAmbulance80504): Error: improper lvalue
    • ?(_LACallAmbulance80504):  FILE:mod:/scripts/game/command/LACallAmbulance.script80504 LINE:203
    • ?(_LACallAmbulance80504): !!!Dictionary position rewound...
    • ?(_LACallAmbulance80504): !!!Error recovered!!!

    Obviously I'm missing some code from the LABombRobot script, but I haven't messed with this before.

     

    I've added my "Call Ambulance" and "LA Bomb Robot" script files.

    Scripts.rar

     

  10. Just so you are aware the USFS unit that is on the model of the large rescue ambulance is a hotshot transport vehicle that is used for transporting crews of firefighters across the country. While it shares the body of the large rescue ambulance in real life it does not have any medical capabilities at all, its a tricked out bus really.

     

    I figured they just used them as transport and/or equipment trucks. I just thought the model would be good to put to use for all the departments in those roles.

     

    This mod's main units are la units.

    Therefore I think la units's role also is important.

     

    True. Personally, I've been planning on going through the missions (and freeplay), and restricting vehicles to certain AOs that make sense for them. I can use the LAFD units with no problem, though I'd prefer to have "local" units to call. Anything you don't get to I can take another shot at myself.

     

    LA County does not run ambulances.  Various private services, mostly AMR and McCormick, provide EMS services to LA County.

     

    I was noticing that most images I got when I searched for LACoFD had AMR ambulances around, but I did see one LACoFD ambulance that looked somewhat modern.

    2973936660_48e68c848d.jpg

     

    Sorry.

    I have no plan to make LAPD, LASD and LAFD's units. 

     

    There was the one LACo Sheriff Special Forces Bearcat skin in the collection you had. Was that your work?

  11. Those are all looking very nice!

     

    Would it be possible to get full vehicle fleets for all the fire departments? I'm personally stuck with very sloppy cut'n'paste reskins as my graphic design skills are very limited.

     

    LA County: All Ambulances (01, 02, 04, Large Rescue), Light Equipment Truck, Heavy Equipment Squad (remake of existing LACo skin to go with new ones), all Engines (01, 02, USFS 17, Tender, Brush), Water Rescue Truck, Rescue Crane, USAR Truck, Aerial Ladder, Crown Vic and/or SUV command vehicles (EMS and Battalion).

     

    USFS, BLM, NPS: Large Rescue Ambulance (like you have for USFS already), Light Equipment Truck, Heavy Equipment Squad, all Engines (01, 02, USFS 17, Tender, Brush), Crown Vic and/or SUV command vehicles (EMS and Battalion).

     

    I know you've got some of those listed planned or done already, but I'd love to have an entire fleet of vehicles to utilize. Take your time, and only take on as much work as you're willing to, of course. I'll be happy with whatever you release.

  12. EM4 has 20 missions, and the LA Mod adds another ten, for a total of 30.

     

    I'm going through all my missions and restricting vehicles from ones that would fall outside their AO, but when I look in the unit.xml files, numbers as high as 35 show up.

     

    Is there something not straight forward about the numbers, or are there extras?

  13. I have no information about USFS, NPS personnel because i don't live in america.

     

    I think the USFS personnel in the LA mod are close enough for both those services from what I've seen (yellow coat and green pants). A different helmet color for the Chief and Medics would suffice; White or Orange and Blue, respectively. I don't know how accurate that is to their actual equipment, but it would work well enough for me. I'm not sure if the stretcher teams really need anything changed on them, so I could just add a new unit to my game or use the LAFD personnel as-is.

  14. Sorry for asking you to release something you didn't have permission to (though I'm at least putting that stuff to good use).

     

    New work looks great! I love the chance to have more USFS vehicles, and the NPS vehicles could come in handy, too.

     

    Do you plan on doing some personnel reskins, too? I'd be nice to have a Chief, Medic, and Stretcher Teams for the USFS (and that set should work for the NPS, also), plus some generic non-turnout gear Medics, EMTs, and Stretcher Teams for AMR, McCormick, and maybe ARC.

     

    And another idea would to have a set of additional LA County Fire vehicles and personnel.

×
×
  • Create New...