Jump to content

olevla

Members
  • Posts

    127
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by olevla

  1. New ambulance and firetruck,there will be a new St.John Ambulance tomorrow.
  2. I don't know actually... SDU new vehicle
  3. My favorite police van (All retired)
  4. My friend made a firetruck model using 3D Max but he got some problem. The Firetruck look darker in game but it's look good at editing UI. What's the problem?
  5. First Responder (A fireman with first aid skill) For more information of HKFSD First Responder http://www.hkfsd.gov.hk/chi/news/responder.html Sorry for that,but who tell you that the mod will be come out next week?...
  6. I got the same problem,when firemen change to firemen with mask,it will disappear...But when firemen with mask change to firemen..it success...
  7. The model is from London Mod
  8. Motorcycles in action Is it the first fire bike in EM4? :o
  9. It's a shopping mall shuttle bus with IKEA's advertisement.
  10. Thank for you big help but still... (script are added to the vehicle) GTF Vehicle: TLF "Vehicle": Cannonswith.script: //****************************************************************************************** // Water cannon script for US Army mod by Hoppah // Usage of this script in other mods is NOT allowed without permission of Hoppah //****************************************************************************************** object VcmdCannonSwitch : CommandScript { VcmdCannonSwitch() { SetIcon("wateroff"); SetCursor("wateroff"); SetGroupLeader(true); SetGroupID(31); SetValidTargets(ACTOR_VEHICLE); SetRestrictions(RESTRICT_SELFEXECUTE); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; if (Caller->GetType() == ACTOR_VEHICLE) { Vehicle v(Caller); if (!v.HasCommand("Extinguish") && !v.HasCommand("Cool") && v.GetNumPassengers() == 0) return false; if (!v.HasCommand("Extinguish") && !v.HasCommand("Cool") && v.HasCommand("DummyEmptyTank")) return false; if (v.HasCommand("Extinguish") && v.HasCommand("Cool")) { SetIcon("wateroff"); SetCursor("wateroff"); SetPriority(65); } else { SetIcon("wateron"); SetCursor("wateron"); } } return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Caller->IsValid() || !Target->IsValid() || Target->GetID() != Caller->GetID()) return false; if (Caller->GetType() == ACTOR_VEHICLE && !Caller->HasCommand("DummyEmptyTank")) return true; return true; } void PushActions(GameObject *Caller, Actor *Target, int ChildID) { Vehicle v(Caller); if (!v.HasCommand("Extinguish") && !v.HasCommand("Cool") && !v.IsCurrentAnimation("activate")) { v.AssignCommand("Extinguish"); v.AssignCommand("Cool"); v.SetChildEnabled("cannon", false); v.SetAnimation("activate"); float r[9]; v.GetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); Vector PosChild = v.GetChildPosition("controller"); PersonList l = v.GetPassengers(); Person p = l.GetPerson(0); v.RemovePassenger(&p); if (p.IsEquipped()) p.SetEquipment(EQUIP_NONE); p.AssignCommand("VcmdCannonSwitch"); p.SetUserData(v.GetID()); p.SetCommandable(false); p.SetSelectable(false); p.SetPlacement(PLACEMENT_NONE); p.SetPosition(PosChild); p.SetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); Vector Pos = v.GetPosition(); if (StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p") == 0) { p.PushActionRotateTarget(ACTION_NEWLIST, &p, 0, 180, 0, 0.01f); p.PushActionSwitchAnim(ACTION_APPEND, "idleheavyobj"); Vehicle cannon01 = Game::CreateVehicle("mod:Prototypes/Vehicles/02 LA Fire Department/mpcannon.e4p", "local_cannon"); cannon01.SetPlacement(PLACEMENT_NONE); cannon01.SetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); cannon01.SetPosition(Pos); cannon01.UpdatePlacement(); cannon01.SetPlayerMP(v.GetPlayerMP()); cannon01.SetCommandable(false); cannon01.SetUserData(v.GetID()); cannon01.EnableAutoTarget(true); } else if (StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/01 US Army Camo/tfft.e4p") == 0) { v.EnableTrafficLight(TLT_GREEN); v.PlayAnimOpenDoor(DAT_SPECIAL, 1.5f, Caller); p.PushActionSwitchAnim(ACTION_NEWLIST, "idle"); Vehicle cannon01 = Game::CreateVehicle("mod:Prototypes/Vehicles/04 Objects/tfft_cannon01.e4p", "tfft_cannon01"); Vehicle cannon02 = Game::CreateVehicle("mod:Prototypes/Vehicles/04 Objects/tfft_cannon02.e4p", "tfft_cannon02"); cannon01.SetPlacement(PLACEMENT_NONE); cannon02.SetPlacement(PLACEMENT_NONE); cannon01.SetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); cannon02.SetRotation(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8]); cannon01.SetPosition(Pos); cannon02.SetPosition(Pos); cannon01.UpdatePlacement(); cannon02.UpdatePlacement(); cannon01.SetPlayerMP(v.GetPlayerMP()); cannon02.SetPlayerMP(v.GetPlayerMP()); cannon01.SetCommandable(false); cannon02.SetCommandable(false); cannon01.SetUserData(v.GetID()); cannon02.SetUserData(v.GetID()); cannon01.EnableAutoTarget(true); cannon02.EnableAutoTarget(true); } } else if (v.IsCurrentAnimation("activate")) { if (!v.IsSmoking() && !v.IsDestroyed() && v.IsValid()) { v.RemoveCommand("Extinguish"); v.RemoveCommand("Cool"); } v.SetChildEnabled("cannon", true); v.SetAnimation("deactivate"); int UnitID = v.GetID(); PersonList l(ROLE_SQUAD); for(int i = 0; i < l.GetNumPersons(); i++) { if (l.GetPerson(i)->GetUserData() == UnitID && l.GetPerson(i)->HasCommand("VcmdCannonSwitch")) { Person p = l.GetPerson(i); p.SetPlacement(PLACEMENT_CUSTOM_PLACEMENT); p.RemoveCommand("VcmdCannonSwitch"); p.SetCommandable(true); p.SetSelectable(true); if (!p.IsInjured() && !p.IsDead()) p.PushActionSwitchAnim(ACTION_APPEND, "idle"); if (p.IsInjured() || p.IsDead() || v.GetFreePassengers() == 0 || v.IsSmoking() || v.IsDestroyed() || !v.IsValid()) { Vector pos = v.GetPosition(); Game::FindFreePosition(&p, pos, 250.f); p.SetPosition(pos); } else v.AddPassenger(&p); } } GameObjectList l2; if (StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/02 LA Fire Department/fire_engine1.e4p") == 0) l2 = Game::GetGameObjectsWithPrefix("local_cannon"); else if (StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/01 US Army Camo/tfft.e4p") == 0) { l2 = Game::GetGameObjectsWithPrefix("tfft_cannon"); v.EnableTrafficLight(TLT_NONE); v.PlayAnimCloseDoor(DAT_SPECIAL, 1.0f, Caller); } for(int i = 0; i < l2.GetNumObjects(); i++) { GameObject *obj = l2.GetObject(i); if (obj->GetUserData() == UnitID) { obj->ClearActions(); obj->PushActionDeleteOwner(ACTION_NEWLIST); } } } } }; object DummyLimitedWater : CommandScript { DummyLimitedWater() { SetGroupID(20); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { } }; object DummyEmptyTank : CommandScript { DummyEmptyTank() { SetGroupID(20); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { } };
  11. "controller" and "cannon" is child not super? What is controller?
  12. A high school graduation exam
  13. I got to work on my HKDSE SBA now...It is very important for me...
  14. I have to remind you gays that model in beta is not the lastest one because the beta is done for a long time and i don"t want to spend time on beta,please forgive this and wait for 2.0
  15. I am sorry...You can now find the link for 0.3 in this page
×
×
  • Create New...