Jump to content

USman

Members
  • Posts

    177
  • Joined

  • Last visited

Posts posted by USman

  1. I'm using emergency_freak and can't get it to work all the way. I don't get any prompts when loading the game and I'm able to select the command but nothing happens. Anybody see what I'm missing?

     

    // Name of Virtual Objects where Vehicles are made// These definitions are used further down in the scriptconst char *STR_VObjVehicle1Start = "emsvehicle1_vo";const char *STR_VObjVehicle2Start = "emsvehicle2_vo";const char *STR_VObjVehicle3Start = "emsvehicle3_vo";const char *STR_VObjVehicle4Start = "emsvehicle4_vo";//Name of the Virtual Object where Vehicles are parked.const char *STR_VObjVehicleTarget = "emsvehicle_target";// Prototypes of persons and vehicles// The people meet original EM4 paths and must not be changed// Vehicle Pathes need to be changedconst char *STR_ProtoPerson1 = "mod:Prototypes/Persons/Civil/civilboy03_blue.e4p";const char *STR_ProtoPerson2 = "mod:Prototypes/Persons/Civil/civilwoman01_red.e4p";const char *STR_ProtoPerson3 = "mod:Prototypes/Persons/Civil/civilworker03.e4p";const char *STR_ProtoPerson4 = "mod:Prototypes/Persons/Civil/civilman02_silver.e4p";const char *STR_ProtoPerson5 = "mod:Prototypes/Persons/Civil/civilman03_green.e4p";const char *STR_ProtoPerson6 = "mod:Prototypes/Persons/Civil/civilminister01.e4p";const char *STR_ProtoPerson7 = "mod:Prototypes/Persons/Civil/civilworker01.e4p";const char *STR_ProtoVehicle1 = "mod:Prototypes/Vehicles/Civil - Cars/civilcar01_silver.e4p";const char *STR_ProtoVehicle2 = "mod:Prototypes/Vehicles/Civil - Cars/civilcar04_red.e4p";const char *STR_ProtoVehicle3 = "mod:Prototypes/Vehicles/Civil - Trucks/civilvan01.e4p";const char *STR_ProtoVehicle4 = "mod:Prototypes/Vehicles/Civil - Trucks/civiltruck04_red.e4p";object Alarm_EMS1 : CommandScript  // Name of the script.{                                // PCmd is person bound ComandscriptAlarm_EMS1()                // Name can be changed arbitrarily{SetCursor("install");SetIcon("install");SetValidTargets(ACTOR_FLOOR);  }bool CheckTarget(GameObject *Caller, Actor *Target, int childID){       return true;}void PushActions(GameObject *Caller, Actor *Target, int childID){// In the following lines, VOs are checked to see if available// If above fundamental changes were made to the definitions, must also be changed here!     ActorList Vec1StartList(STR_VObjVehicle1Start);     if (Vec1StartList.GetNumActors() != 1)     {         System::Log("PCmdAlarmFW: Vec1StartList mismatch!");         return;     }ActorList Vec2StartList(STR_VObjVehicle2Start);     if (Vec2StartList.GetNumActors() != 1)     {         System::Log("PCmdAlarmFW: Vec2StartList mismatch!");         return;     }ActorList Vec3StartList(STR_VObjVehicle3Start);     if (Vec3StartList.GetNumActors() != 1)     {         System::Log("PCmdAlarmFW: Vec3StartList mismatch!");         return;     }ActorList Vec4StartList(STR_VObjVehicle4Start);     if (Vec4StartList.GetNumActors() != 1)     {         System::Log("PCmdAlarmFW: Vec4StartList mismatch!");         return;     }     ActorList VecTargetList(STR_VObjVehicleTarget);     if (VecTargetList.GetNumActors() != 1)     {         System::Log("PCmdAlarmFW: VecTargetList mismatch!");         return;     }     // In the following lines, Vehicles and Vehicle Guide are created// The number after 'Anzahl' represents the number of vehicles.int Anzahl = 2;for (int i=1; i<Anzahl; i++)     { Person passenger = Game::CreatePerson(STR_ProtoPerson1, "Unnamed");passenger.SetRole(ROLE_SQUAD);passenger.AssignCommand("MoveTo"); // Commands that are assigned to the person can be changed as requiredpassenger.AssignCommand("EnterCar");passenger.AssignCommand("PCmdChangeToFF");int CreateVehicle = rand()%4;switch(CreateVehicle) {case 0: Vehicle v = Game::CreateVehicle(STR_ProtoVehicle1, "privatpkw_ff1");break; case 1: Vehicle v = Game::CreateVehicle(STR_ProtoVehicle2, "privatpkw_ff1");break; case 2: Vehicle v = Game::CreateVehicle(STR_ProtoVehicle3, "privatpkw_ff1");break; case 3: Vehicle v = Game::CreateVehicle(STR_ProtoVehicle4, "privatpkw_ff1");break; }ActorList VehicleStartList;          if (i == 1){VehicleStartList = Vec2StartList;}else if (i == 2){VehicleStartList = Vec3StartList;}else if (i == 3){VehicleStartList = Vec4StartList;}else{VehicleStartList = Vec1StartList;}Vector vStartPos(VehicleStartList.GetActor(0)->GetPosition());Vector vTargetPos(VecTargetList.GetActor(0)->GetPosition());Game::FindFreePosition(&v, vStartPos, 100.f);Game::FindFreePosition(&v, vTargetPos, 100.f);v.SetPosition(vStartPos);v.SetSpeed(12.f);v.SetMaxPassengers(2);v.AddPassenger(passenger);v.AssignCommand("MoveTo");v.AssignCommand("EmptyCar");int WaitingTimeVec = rand()%3;switch(WaitingTimeVec) { case 0:int WaitingV1 = 4.f;break;case 1:int WaitingV1 = 8.f;break;case 2:int WaitingV1 = 11.f;break;}v.PushActionWait(ACTION_NEWLIST, WaitingV1);v.PushActionMove(ACTION_APPEND, vTargetPos);}     // Here the alarm message apears// In addition a sound is played     Mission::PlayHint("Ambulance 231 was paged");Audio::PlaySample("mod:Audio/FX/misc/ems1_alert");     System::Log("PCmdAlarmFW: ended");}};[/spoiler];>Again any help would be great. I'm trying to lean how to script and have some ability, but still don't have a huge grasp of code.Stay Warm, USman
  2. Would it be possible to release this in something other than an .e4mod file? I can't get my installer to work and have searched and tried the methods on the site and still no luck. I would really like to play with this to add to different mods, including the LA mod, and a personal mod I have been working on. It looks awesome and I've been itching to try it out. If you think you might have another solution for my mod installer problem please PM me so we don't get off topic. However if the files can be released in a .rar or zip file that would work just as well.

     

    Thanks,

    USman

  3. Everything looks good! but just some info on WI,

     

    Law Enforcement is the only dept allowed to use Red/Blue lights

    Fire Department is Red/amber (same for personal vehicles with sirens)

    EMS is Red/White (same for personal vehicles with siren)

    WI is also going to enact a requirement for chevron (no specified color combinations... yet) here in 2015 I believe. A lot of agencies are already begining to implement them and I see you have on your EMS fast response cars.

  4. ^^ Seems like a decent idea, probably more like a clinic than a hospital. A lot of rural towns have clinics that can stabilize most injuries for transport to larger hospitals. I know the clinic at the Grand Canyon receives patients, packages them and then loads them into the helicopter or ambulance from a larger hospital.

    In this case maybe have a command for transfers out of the county to larger hospitals, just as an idea

    Also this sounds kind of like my town, pop ~200 , we have a first responder service that is coupled with our Fire, I am an EMT and Firefighter so I go to all calls. We don't transport but offer medical assistance until an ambulance gets there. In our station we have a pumper, brush/minipumper, tanker, and responder rig (retired Ambulance)

    BTW, this sounds like a great mod!

  5. Hey everyone I have a couple questions about modifying the mod. I have added american style ambulances that follow the commands except for:

    1: they will not return to the hospital/car bay

    2: they don't hold a cot or wheelchair

    3: the Fly car driver can't get in any vehicle

    4: they don't have the radio pop up.

    otherwise the siren, light and speed controls work. They have the cases specified for that class of vehicle. What I did was replace the files in the prototypes with those of the American units added the doors and wheels and also added the commands from the orginal unit. I then named them in place of the first unit. Any ideas? do I have to change anything in the script?

  6. I am currently working on some models for a possible future rural map mod. It would have volunteer stations and all that stuff you would find in a rural community. I would need help with creating a map and then packaging the mod. I would be able to create and skin models along editing some of Hopahs scripts. If some crazy person would like to help model and skin that would be great too, but as of now this is just an intrest check. If you would be intrested in helping PM me so I can give you more info.

    Here is the start of a Freightliner fire truck:

  7. I like both ideas, I would like to see the dispatch game come out because that would be a good proving ground for your next project. The MMORPG I am to so crazy about the whole online part. This is just because I would prefer not to always have a web connection to have to play. I do understand though that it would probably be hard to then control a lot of people. But maybe you could do that like in furewere simulator. I also think it would be cool if when you got on you could pick to play as either EMS or Fire.

    My Idea:

    I also have had an idea for a game. Mine is where you start in a time like the 1900s with a small town and you slowly build your emergency services up as you town builds. You can upgrade trucks, hire volunteers or career firefighters. Get sheriffs and city officers, swat teams... kind of like Locomotion but for the emergency services. I just don't yet have the know how to develop something like that :(

×
×
  • Create New...