BritishArmyReserveCadets
Members-
Posts
545 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Everything posted by BritishArmyReserveCadets
-
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Not armed response Theyre on all vehicles that are WMP (Even the non-emergency community support vehicles have them) Might remove the ones on the front windscreen and rear window (only seen it on them on a few vehicles) but will keep the ones on the side as ive seen them on every WMP vehicle. -
Hi all, Just got a few questions and problems. Firstly, I have added the LAPoliceBarricade to the WM Mod and changed the model file so it is the Police Accident Sign. I am able to get the sign from a vehicle (The Vauxhall Vivaro as youll see from the script) and it appears on the person to place with no problems, but when i click the button to place it, the game CTD's with no error (nor am i unable to load the logfile) Below is the script, as modified to work with the police accident sign: const char CMD_GETBARRICADE[] = "PcmdBarricadeGet"; const char CMD_REMOVEBARRICADE[] = "PcmdBarricadeRemove"; const char CMD_PLACEBARRICADE[] = "PcmdBarricadePlace"; const char CMD_GETCONE[] = "PcmdTrafficConeGet"; const char CMD_ROTATECW[] = "VcmdRotateBarricadeClockwise"; const char CMD_ROTATECCW[] = "VcmdRotateBarricadeCounterClockwise"; const char CMD_DOORS[] = "OpenCloseDoor"; const char OBJ_BARRICADEGROUND[] = "mod:Prototypes/Objects/West Midlands Equipment/Police Accident Sign.e4p"; const char NAME_BARRICADE[] = "Police Accident Sign"; const char OBJ_BARRICADE[] = "Equipment/Police Accident Sign.V3O"; const char DUMMY_BARRICADE[] = "DummyPoliceBarricade"; const char NAME_HALT[] = "pHalt"; const char OBJ_HALT[] = "mod:Prototypes/Objects/West Midlands Equipment/invisible.e4p"; int DummyGroup = 17; object PcmdBarricadeGet : CommandScript { PcmdBarricadeGet() { SetIcon("policebarricade"); SetCursor("policebarricade"); SetPriority(180); SetValidTargets(ACTOR_VEHICLE | ACTOR_OBJECT); SetGroupID(CGROUP_GETEQUIPMENT); SetRestrictions(RESTRICT_NOTDESTROYED | RESTRICT_NOTBURNING | RESTRICT_HASROADBLOCK); SetPossibleCallers(ACTOR_PERSON); SetNeedsCarWithFlagSet(OF_HAS_ROADBLOCK); } /*bool CheckPossible(GameObject *Caller) { if(!Caller->IsValid() || Caller->GetType() != ACTOR_PERSON) return false; Person p(Caller); if (p.IsCarryingPerson()||p.IsLinkedWithPerson()|| p.GetFirehoseID()!=0 || p.IsPulling()) return false; if (p.IsCurrentAction("EActionTreatPerson")) return false; if (!Game::ExistsNormalObjectWithFlagSet(OF_HAS_ROADBLOCK)) return false; return true; }*/ bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || !Target || !Target->IsValid() || Target->GetType()!=ACTOR_VEHICLE) return false; if(Caller->GetObjectType()==TYPE_PERSON) { Person p(Caller); Vehicle v(Target); if (v.IsDestroyed()) return false; if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false; Vehicle v(Target); if ((v.HasCommand("FlyTo") || v.HasCommand("VcmdDeInstallRope")) && !v.IsOnGround()) return false; if (v.IsValid() && !v.IsDestroyed() && StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/suv_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/West Midlands Police/Vauxhall Vivaro.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/rescue_truck01_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/rescue_truck02_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_armoured_vehicle.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_truck.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 US Army/hmmwv.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/05 US Army/us_army_truck.e4p") == 0) return true; if (v.IsValid() && !v.IsDestroyed() && StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_suv.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/atf_mcp.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/atf_nru.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/bpat_tahoe.e4p") == 0) return true; return false; } } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vector TargetPos = Target->GetTargetPoint(Caller, TARGET_EQUIPMENTDOOR); Caller->PushActionmove(ACTION_NEWLIST, TargetPos); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionGetEquipment(ACTION_APPEND, Target, EQUIP_NONE); Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_BARRICADE, Target, 1, false); } }; object PcmdBarricadeRemove : CommandScript { PcmdBarricadeRemove() { SetIcon("policebarricaderemove"); SetCursor("policebarricaderemove"); SetValidTargets(ACTOR_VEHICLE | ACTOR_OBJECT); SetRestrictions(RESTRICT_NOTDESTROYED | RESTRICT_NOTBURNING | RESTRICT_HASROADBLOCK); SetPossibleCallers(ACTOR_PERSON); SetNeedsCarWithFlagSet(OF_HAS_ROADBLOCK); } /*bool CheckPossible(GameObject *Caller) { if(!Caller->IsValid() || Caller->GetType() != ACTOR_PERSON) return false; Person p(Caller); if (p.IsCarryingPerson()||p.IsLinkedWithPerson()|| p.GetFirehoseID()!=0 || p.IsPulling()) return false; if (!Game::ExistsNormalObjectWithFlagSet(OF_HAS_ROADBLOCK)) return false; return true; }*/ bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || !Target || !Target->IsValid() || Target->GetType()!=ACTOR_VEHICLE) return false; if(Caller->GetObjectType()==TYPE_PERSON) { Person p(Caller); Vehicle v(Target); if (v.IsDestroyed()) return false; if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false; Vehicle v(Target); if (v.IsValid() && !v.IsDestroyed() && StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/suv_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/West Midlands Police/Vauxhall Vivaro.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/rescue_truck01_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/rescue_truck02_lapd.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_armoured_vehicle.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_truck.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 US Army/hmmwv.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/05 US Army/us_army_truck.e4p") == 0) return true; if (v.IsValid() && !v.IsDestroyed() && StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_suv.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/atf_mcp.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/atf_nru.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/bpat_tahoe.e4p") == 0) return true; return false; } } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vector TargetPos = Target->GetTargetPoint(Caller, TARGET_EQUIPMENTDOOR); Caller->PushActionmove(ACTION_NEWLIST, TargetPos); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionGetEquipment(ACTION_APPEND, Target, EQUIP_NONE); Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_BARRICADE, Target, 2, false); } }; object PcmdBarricadePlace : CommandScript { PcmdBarricadePlace() { SetIcon("policebarricadeplace"); SetCursor("policebarricadeplace"); SetGroupID(DummyGroup); SetGroupLeader(true); SetRestrictions(RESTRICT_SELFEXECUTE); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; if (Caller->GetType() == ACTOR_PERSON) { return true; } return false; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Caller->IsValid() || !Target->IsValid() || Target->GetID() != Caller->GetID()) return false; if (Caller->GetType() == ACTOR_PERSON) { return true; } return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Person p(Caller); Caller->PushActionWait(ACTION_NEWLIST, 0.1f); Vector Pos = Caller->GetPosition(); float r[9]; float childr[9]; Caller->GetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); if (Game::FindFreePosition(Caller, Pos, 35.f)) { Vehicle v = Game::CreateVehicle(OBJ_BARRICADEGROUND, NAME_BARRICADE); if (v.IsValid()) { float dx = 40.f, dy = 0.f, dz = 0.f; Math::RotateVector(dx, dy, dz, r); Math::EulerToMatrix(90.0f, 0.f, 0.f, childr); Math::MultiplyMatrices(childr, r); Pos = Pos + Vector(dx, dy, 0); v.SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); v.SetPosition(Pos); v.UpdatePlacement(); v.AssignCommand(CMD_ROTATECW); v.AssignCommand(CMD_ROTATECCW); } GameObject pHalt = Game::CreateObject(OBJ_HALT, NAME_HALT); if (pHalt.IsValid()) { float dx = 60.f, dy = 0.f, dz = 0.f; Math::RotateVector(dx, dy, dz, r); Math::EulerToMatrix(0.0f, 0.f, 0.f, childr); Math::MultiplyMatrices(childr, r); Pos = Pos + Vector(dx, dy, 0); pHalt.SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); pHalt.SetPosition(Pos); pHalt.UpdatePlacement(); } pHalt.PushActionHalt(ACTION_NEWLIST, 250, HALT_PERSONS); pHalt.SetSelectable(false); int UnitID = p.GetID(); v.SetUserData(UnitID); int PersonID = v.GetID(); pHalt.SetUserData(PersonID); int PlayerID = p.GetPlayerMP(); v.SetPlayerMP(PlayerID); pHalt.SetPlayerMP(PlayerID); } Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_BARRICADE, Target, 2, false); } }; object DummyPoliceBarricade : CommandScript { DummyPoliceBarricade() { SetGroupID(DummyGroup); } bool CheckGroupVisibility(GameObject *Caller) { return false; } bool CheckPossible(GameObject *Caller) { return false; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return false; } void PushActions(GameObject *Caller, Actor *Target, int childID) { if(childID == 1) { Person p(Caller); p.PlaceObjectInRightHand(OBJ_BARRICADE); p.PushActionSwitchAnim(ACTION_APPEND, "idleequipped2"); p.PushActionExecuteCommand(ACTION_APPEND, DUMMY_BARRICADE, Caller, 4, false); Vehicle v(Target); v.PushActionExecuteCommand(ACTION_APPEND, CMD_DOORS, Caller, 1, false); } if(childID == 2) { Person p(Caller); p.RemoveObjectInRightHand(); p.PushActionSwitchAnim(ACTION_APPEND, "idle"); p.RemoveCommand(CMD_REMOVEBARRICADE); p.RemoveCommand(CMD_PLACEBARRICADE); p.AssignCommand(CMD_GETBARRICADE); p.AssignCommand(CMD_GETCONE); p.AssignCommand("PcmdFlareGet"); p.AssignCommand("EnterCar"); p.AssignCommand("EnterHouse"); p.AssignCommand("GetRoadBlock"); p.AssignCommand("Arrest"); p.AssignCommand("ReleaseArrested"); p.AssignCommand("DrawWeapon"); p.AssignCommand("PutInCar"); p.AssignCommand("AskPerson"); p.AssignCommand("Halt"); p.AssignCommand("PickUp"); p.AssignCommand("GetExtinguisher"); p.AssignCommand("Lift"); p.AssignCommand("UnloadPerson"); p.AssignCommand("Redirect"); if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/West Midlands Police/beat_fluoro_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_agent.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/bp_officer.e4p") == 0) { p.AssignCommand("SendPeople"); p.AssignCommand("HaltVehicle"); p.AssignCommand("Stop"); p.AssignCommand("PcmdCallPatrolCar"); p.AssignCommand("PcmdCallAmbulance"); p.AssignCommand("PcmdCallPoliceHelicopter"); if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/West Midlands Police/beat_fluoro_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_officer.e4p") == 0) { p.AssignCommand("PcmdGetTrafficVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_traffic_officer.e4p") == 0) { p.AssignCommand("PcmdRemoveTrafficVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_agent.e4p") == 0) p.AssignCommand("PcmdGetTacVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_motorcycle_officer.e4p") == 0) { p.AssignCommand("PcmdMotorcycleEnter"); p.AssignCommand("SendPeople"); p.AssignCommand("HaltVehicle"); p.AssignCommand("Stop"); p.AssignCommand("PcmdCallPatrolCar"); p.AssignCommand("PcmdCallAmbulance"); p.AssignCommand("PcmdCallPoliceHelicopter"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_swat.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_swat.e4p") == 0) { p.AssignCommand("HaltVehicle"); p.AssignCommand("PcmdMP5Get"); p.AssignCommand("PcmdBallisticShieldGet"); p.AssignCommand("GetFlashgrenade"); p.AssignCommand("PcmdCallPatrolCar"); p.AssignCommand("PcmdCallAmbulance"); p.AssignCommand("PcmdCallPoliceHelicopter"); if (StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_swat.e4p") == 0) p.AssignCommand("PcmdRemoveTacVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/05 US Army/us_army_soldier.e4p") == 0) { p.AssignCommand("PcmdM4Get"); p.AssignCommand("PcmdStabilize"); p.AssignCommand("GetFlashgrenade"); p.AssignCommand("GetAxe"); p.AssignCommand("GetShears"); p.AssignCommand("GetChainsaw"); p.AssignCommand("Pull"); p.AssignCommand("StopPull"); p.AssignCommand("SendPeople"); //p.AssignCommand("DriveAwayPerson"); p.AssignCommand("Stop"); } Vehicle v(Target); v.PushActionExecuteCommand(ACTION_APPEND, CMD_DOORS, Caller, 1, false); } if(childID == 3) { Person p(Caller); p.PlaceObjectInRightHand(OBJ_BARRICADE); p.PushActionSwitchAnim(ACTION_APPEND, "idleequipped2"); p.PushActionExecuteCommand(ACTION_APPEND, DUMMY_BARRICADE, Caller, 4, false); Vehicle v(Target); int PersonID = v.GetID(); GameObjectList list = Game::GetGameObjects(NAME_HALT); for(int i = 0; i < list.GetNumObjects(); i++) { GameObject *obj = list.GetObject(i); if (obj->GetUserData() == PersonID) { obj->PushActionDeleteOwner(ACTION_NEWLIST); } } Vehicle v(Target); v.PushActionWait(ACTION_NEWLIST, 0.1f); v.PushActionDeleteOwner(ACTION_APPEND); } if(childID == 4) { Person p(Caller); p.AssignCommand(CMD_REMOVEBARRICADE); p.AssignCommand(CMD_PLACEBARRICADE); p.RemoveCommand(CMD_GETBARRICADE); p.RemoveCommand(CMD_GETCONE); p.RemoveCommand("PcmdFlareGet"); p.RemoveCommand("EnterCar"); p.RemoveCommand("EnterHouse"); p.RemoveCommand("GetRoadBlock"); p.RemoveCommand("Arrest"); p.RemoveCommand("ReleaseArrested"); p.RemoveCommand("DrawWeapon"); p.RemoveCommand("PutInCar"); p.RemoveCommand("AskPerson"); p.RemoveCommand("Halt"); p.RemoveCommand("PickUp"); p.RemoveCommand("GetExtinguisher"); p.RemoveCommand("Lift"); p.RemoveCommand("UnloadPerson"); p.RemoveCommand("Redirect"); if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/West Midlands Police/beat_fluoro_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_agent.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/bp_officer.e4p") == 0) { p.RemoveCommand("SendPeople"); p.RemoveCommand("HaltVehicle"); p.RemoveCommand("Stop"); if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/West Midlands Police/beat_fluoro_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_officer.e4p") == 0) { p.RemoveCommand("PcmdGetTrafficVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_m.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_traffic_officer_f.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/chp_traffic_officer.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lasd_traffic_officer.e4p") == 0) { p.RemoveCommand("PcmdRemoveTrafficVest"); } if (p.HasCommand("PcmdGetTacVest")) p.RemoveCommand("PcmdGetTacVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_motorcycle_officer.e4p") == 0) { p.RemoveCommand("PcmdMotorcycleEnter"); p.RemoveCommand("SendPeople"); p.RemoveCommand("HaltVehicle"); p.RemoveCommand("Stop"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/lapd_swat.e4p") == 0 || StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/03 LA Police/atf_swat.e4p") == 0) { p.RemoveCommand("HaltVehicle"); p.RemoveCommand("PcmdMP5Get"); p.RemoveCommand("PcmdBallisticShieldGet"); p.RemoveCommand("GetFlashgrenade"); if (p.HasCommand("PcmdRemoveTacVest")) p.RemoveCommand("PcmdRemoveTacVest"); } if(StrCompare(p.GetPrototypeFileName(), "mod:Prototypes/Persons/05 US Army/us_army_soldier.e4p") == 0) { p.RemoveCommand("PcmdM4Get"); p.RemoveCommand("PcmdStabilize"); p.RemoveCommand("GetFlashgrenade"); p.RemoveCommand("Extinguish"); p.RemoveCommand("Cool"); p.RemoveCommand("GetExtinguisher"); p.RemoveCommand("GetAxe"); p.RemoveCommand("GetShears"); p.RemoveCommand("GetChainsaw"); p.RemoveCommand("Pull"); p.RemoveCommand("StopPull"); p.RemoveCommand("Lift"); p.RemoveCommand("UnloadPerson"); p.RemoveCommand("SendPeople"); //p.RemoveCommand("DriveAwayPerson"); p.RemoveCommand("Stop"); } if (p.HasCommand("PcmdCallPatrolCar")) p.RemoveCommand("PcmdCallPatrolCar"); if (p.HasCommand("PcmdCallAmbulance")) p.RemoveCommand("PcmdCallAmbulance"); if (p.HasCommand("PcmdCallPoliceHelicopter")) p.RemoveCommand("PcmdCallPoliceHelicopter"); } } }; object VcmdRotateBarricadeClockwise : CommandScript { VcmdRotateBarricadeClockwise() { SetIcon("rotate_cw"); SetCursor("rotate_cw"); SetGroupLeader(true); SetRestrictions(RESTRICT_SELFEXECUTE); SetPriority(120); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; if (Caller->GetType() == ACTOR_VEHICLE) { return true; } return false; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || !Target->IsValid() || (Target->GetID() != Caller->GetID())) return false; if(Caller->GetType() == ACTOR_VEHICLE) return true; return false; } void PushActions(GameObject *Caller, Actor *Target, int childID) { float r[9]; float childr[9]; Caller->GetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); Math::EulerToMatrix(-25.0f, 0.f, 0.f, childr); Math::MultiplyMatrices(childr, r); Caller->SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); Vehicle v(Caller); int PersonID = v.GetID(); GameObjectList list = Game::GetGameObjects(NAME_HALT); for(int i = 0; i < list.GetNumObjects(); i++) { GameObject *obj = list.GetObject(i); if (obj->GetUserData() == PersonID) { obj->SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); } } } }; object VcmdRotateBarricadeCounterClockwise : CommandScript { VcmdRotateBarricadeCounterClockwise() { SetIcon("rotate_ccw"); SetCursor("rotate_ccw"); SetRestrictions(RESTRICT_SELFEXECUTE); SetPriority(120); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; if (Caller->GetType() == ACTOR_VEHICLE) { return true; } return false; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || !Target->IsValid() || (Target->GetID() != Caller->GetID())) return false; if(Caller->GetType() == ACTOR_VEHICLE) return true; return false; } void PushActions(GameObject *Caller, Actor *Target, int childID) { float r[9]; float childr[9]; Caller->GetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); Math::EulerToMatrix(25.0f, 0.f, 0.f, childr); Math::MultiplyMatrices(childr, r); Caller->SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); /*Vehicle v(Caller); int PersonID = v.GetID(); GameObjectList list = Game::GetGameObjects(NAME_HALT); for(int i = 0; i < list.GetNumObjects(); i++) { GameObject *obj = list.GetObject(i); if (obj->GetUserData() == PersonID) { obj->SetRotation(childr[0], childr[1], childr[2], childr[3], childr[4], childr[5], childr[6], childr[7], childr[8]); } }*/ } }; Secondly, How can the LACallPatrol car script be modified so that all cars on patrol/standby respond instead of just one. And Finally, how is the order of vehicles re-arranged in the vehicle selection pane. Many Thanks in advance
-
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Were looking at having WMP Regular officers, CMPG Motorway officers, WMP traffic officers, Firearms officers and a dog handler for the first version, but that may change as time progresses. -
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Our facebook page can be found here: https://www.emergency-planet.com/WestMidlandsMod Here is some latest work to improve the 'feel' of the game; Updated Battenberg for all police unit - especially the CMPG BMW, which was horrible. Roof Markings - Minus the skoda octavia as the UV is a little funny on it. Other general changes to the skin West Midlands Police Volvo S60 Traffic Car -
Fair enough, wish i could do more first aid stuff through ACF Entonox, I take it you became a student para from the positions WMAS had open a month of so ago?
-
ive been reading through the articles that they did live in dorchester, boston. but ive read in a few articles and seen on TV news that he was a british boy (maybe born in the uk? dont know, just going off what ive read/seen on the news)
-
One of them was an 8 year old british lad... just 2 americans (as what ive read so far) and people are starting to turn a blind eye about africa and the middle east, because war has been going on there for too long now and people are just getting used to it now.
-
Polygon Lightings
BritishArmyReserveCadets replied to BritishArmyReserveCadets's topic in Modding Related Support
Cheers for the reply's, will let you see what its like (eventually ) -
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
-
Hi everyone! I have started using polygon lights instead of coronas, with some success, but can anyone give me colour values to make a good dark-blue colour while still having it very bright (Ive experimented but cant find anything good, its either too light blue or too dark and un-see-able) Thanks
-
Emergency Unit Pictures
BritishArmyReserveCadets replied to emergency4freak's topic in Picture forum
To be fair, livered up with a lightbar they look pretty amazing -
Emergency Unit Pictures
BritishArmyReserveCadets replied to emergency4freak's topic in Picture forum
West Midlands Police Peugoet 307 - Photographed a few hours ago outside my house (Not for me, dont worry ) -
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Yeah ECP's will be in but under a different name of Paramedic Practitioner -
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
We will be adding various units that ae assosciated with WMAS (ie MERIT, CARE, Various CFRs) -
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Hi All, Apologies for no updates recently (Most have been on our facebook page) We have done a few more units; All Can now be viewed on my Flickr photostream New Vehicles Include: 2 New ARV's (BMW X5 and Audi A6) Volvo XC70 RRV (Older Model) Volvo XC70 Officers Vehicle (Older Model Citroen Relay Emergency Ambulance We are also recruiting someone who can add units in game and do basic scripting to add sirens (We have the audio, units, proto's, etc, we just need someone who is able to add the vehicles in game) Please inbox me or freelancer if your active and willing to help (This is the final stage of the mod and then it can be released!) Many Thanks -
What would you like in Emergency 5?
BritishArmyReserveCadets replied to Miercolini's topic in General Talk
As I love pre-hospital care, I'd like to see a more medically realistic side, especially regarding the ECG and condition of the patient in the taskbar (Takes longer than 30 or however many seconds it is for someone to become fully clinically dead from being alive and injured) Especially depending on the type of call, someone who has just fallen over isnt going to arrest after a period of time (Same with most injuries in EM4) and I would also like to see a cardiac arrest incident (Never seen them as an initial incident in freeplay)- 122 replies
-
- Emergency 5
- is
-
(and 1 more)
Tagged with:
-
Yeah england mod had something like that, the only other alternative is to remove incidents you dont want to occur from the specs file (cant remember which one) and the ones you do want more than others, set them to occur more often and reduce the occurence of the ones you want less.
-
Bag - £82.99 9 Saline Pods (Did have 10) - £5.00 2 x Micropore - £1 Spencer Wells - FREE Bandage Scissors - £1.99 Tweezers - £1.99 Small Scissors - £0.99 2x Foil Blankets - £3 Burn Bag - FREE Burn Shield Sachet - FREE Antiseptic Wipes - about £10 worth Stethoscope - FREE Hi-Vis Vest - £10 Wound Pads - about £15 worth Interior Pouches (Not included in the bag) - £20 Blood Glucose Testing Kit (Inc Lancets, strips, etc) - FREE (refills cost though ) Aspirin - £0.99 Massive Pack of Plasters - about £20 worth Antihistamine Cream - £1 Radian B - £1 Paper - about £15 worth 5 x Sick Bags - £1.75 2 x Glow Sticks - FREE BluTak - £0.99 White Tape - FREE Camouflage Cream - £1 Permanent Marker - FREE Various Pens - about £5 worth Heat Spray - £1 Cold Spray - £1 Knife Fork Spoon - £10 Sterizar Hand Sanitizer - £1.95 Trauma Shears - £2.50 Torch - £10 (Its a surface mount LED, better than any normal led or lumen torch) 2 Multitools - £10 Weapon Multitool - £2 Weapon Cleaning Kit - £10 Paracord - FREE Waterproof Jacket - On loan for FREE Diary - £2.50 PRF's - £2.50 for folder, about £20 total for ink and paper Clinical Handbook - FREE Clingfilm - £1 Fire Extinguisher - £15 Trauma Dressings - £2.92 500ml Saline Bottle - £2.65 Germolene w/Local Anaesthetic - £1 Antiseptic Spray - £1 Spray Plaster - £1 50 Various Bandages - about £30 worth 5x3 Wound Closure Strips - £2 Large Blanket - FREE Omron M2 BP Monitor - FREE Adult Cuff - FREE Pulse Oximeter - £21 Thermometor - £5.95 30 Sugary Sweets - FREE 10 Clinical Waste Bags - £0.70 So about £356 Including free things comes to about £400-£450 and about £500 with some other military things in the side pocket which i missed off (Knee pad, bush hat, neck gaiter, minetape, waterbottle, kevlar gloves)
-
did cost a bit, ill look at everything ive got and pull up an average cost list. and nah i aint got any kind of waterproof cover (well, i do have a dpm one but its ripped) and i know someone who uses dpm bag with mtp cover.....i wanted to burn it
-
Emergency Unit Pictures
BritishArmyReserveCadets replied to emergency4freak's topic in Picture forum
if you mean the white on the lightbar thats just a protective plastic casing, the bulb is actually green as the vehicle carrys a doctor, and a doctor responding to calls by law has to have a flashing green beacon. however a lot of vehicles are now using white leds as they are more visible. -
Ok, sorry its a month later but here you go (forgot ) Pro Force Tomahawk Elite SF Backpack The Bag Lower Front Compartment - Specifically designed for Medical Equipment, contains 2 Saline Solution pods, 2 rolls of micro-porous tape, 1 Spencer Wells artery forceps, 1 Bandage scissors, 1 Tweezers, 1 Small Scissors, 2 Foil Blankets, 1 Burn Bag, 1 Burn Shield sachet, Pack of antiseptic wipes, My Purple Stethoscope, Hi-Vis Vest, Wounds dressing pads, blood glucose testing kit, Aspirin, Massive pack of various plasters (Including child ones ), Antihistamine cream and Radian B. Front Compartment - Paper, 10 Sick Bags, 2 Glow sticks, BluTak, White Tape, Camouflage Cream, Permanent Marker, various pens, Heat Spray, Cold Spray, Knife fork spoon, Sterizar hand sanitiser, Trauma Shears, Torch, 2 Multitools, 1 Weapon Multitool, Weapon cleaning kit, Paracord (Rope) Main Compartment - Waterproof Jacket, Diary, Patient Report Forms, Clinical Handbook, Main Compartment with PRF'S, Diary, etc removed - Clingfilm, Fire Extinguisher, 4 Trauma Dressings, 7 Saline Pods, 1 500ml Saline Bottle, Germolene w/Local Anaesthetic, Antiseptic Spray, Spray Plaster, 50 Various Bandages, 20 Wound Pads, 5 Wound Closure strips, Large Blanket (Hidden behind everything), Omron M2 Blood Pressure Monitor, Adult Cuff, Pulse Oximeter, Thermometer, 30 Sugary Sweets, 10 Clinical Waste Bags
-
The Midlands Modification [Released 1.0]
BritishArmyReserveCadets replied to Freelancer's topic in European Modding
Actually I believe the Police accident sign will be more like the barricade so that you can rotate it so it faces traffic properly. And an update on the map; About 85% is now done, should have it finished by tonight, then object placement will start.