Jump to content

Emergency-fan

Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by Emergency-fan

  1. Hello Some news and a video The mod is almost over just a video to see our new back up command We need your help to modify the entercar script to let a firefighter enter in RTWs NEFs RHCs and ITWs Can you help us ? Code : object EnterCar : CommandScript { Vector TargetPos; bool NotInLandingStage; EnterCar() { SetValidTargets(ACTOR_VEHICLE); SetRestrictions(RESTRICT_NOTDESTROYED); SetNeedsConnectedHose(CFN_FAIL); SetPriority(200); SetSelfClickActivation(true); } bool CheckPossible(GameObject *Caller) { return Commands::IsEnterCarPossible(Caller); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || !Target || !Target->IsValid() || Target->GetType()!=ACTOR_VEHICLE) return false; SetPriority(200); if (Input::PriorityKeyPressed()) SetPriority(2000); Vehicle v(Target); if (v.GetEnergy() < = 0.1f * v.GetMaxEnergy()) return false; if(Caller->GetObjectType()==TYPE_PERSON/* && v.IsFlagSet(OF_ACCESSIBLE)*/) { Person p(Caller); if (p.GetEnteredCarID() != -1) return false; if (v.GetVehicleType() == VT_FIREFIGHTERS_DEKONP) { if (!p.IsLinkedWithPerson() && !p.IsCarryingPerson() && v.GetFreePassengers()==0 && !p.IsContaminated()) return false; else if (!p.IsLinkedWithPerson() && !p.IsCarryingPerson() && p.IsContaminated() && v.GetFreeTransports() < 1) return false; else if ((p.IsLinkedWithPerson() || p.IsCarryingPerson()) && v.GetFreeTransports() < 2) return false; } else if(v.GetFreePassengers()==0 && !(p.IsLinkedWithPerson() || p.IsCarryingPerson())) return false; if (p.IsCarryingPerson() && v.GetFreeTransports() == 0) return false; else if (p.IsLinkedWithPerson() && v.GetFreeTransports() == 0) return false; if(v.HasCommand("FlyTo") && !v.IsOnGround()) return false; if(p.IsPulling() || (p.GetEquipment() == EQUIP_FIREHOSE && p.GetFirehoseID() > 0)) return false; switch(v.GetVehicleType()) { case VT_NOSQUAD : case VT_TAXI : case VT_BUS : case VT_DRIVERCAR : case VT_POLICE_GTW: case VT_POLICE_WAW : return false; break; case VT_THW_FGRR_BKF : case VT_THW_FGRB_BLF : return false; break; case VT_THW_FGRI_EKW : case VT_THW_FGRT_BH: if(!p.HasCommand("Repair")) return false; break; case VT_FIREFIGHTERS_ASF : case VT_FIREFIGHTERS_DLK : case VT_FIREFIGHTERS_RW : case VT_FIREFIGHTERS_TLF : case VT_FIREFIGHTERS_LF : case VT_FIREFIGHTERS_FLB : case VT_FIREFIGHTERS_LPF : case VT_FIREFIGHTERS_TFMB : case VT_FIREFIGHTERS_GTF : if ((p.GetPersonType() == PT_FIREFIGHTER_NORMAL) || (p.GetPersonType() == PT_FIREFIGHTER_MASK) || (p.GetPersonType() == PT_FIREFIGHTER_ABC) || (p.GetPersonType() == PT_DIVER)) return true ; else return false ; break; case VT_FIREFIGHTERS_DEKONP : if (!p.HasCommand("DriveAwayPerson") && !p.IsContaminated()) return false; if(!p.CanEnterDekonP()) return false; break; case VT_FIREFIGHTERS_FMB: { // FMB in LStage ? - Liefere Zielpunkt an Land < 0 (=-0.2f) if (v.IsInLandingStage(false, TargetPos, -0.2f) >= 0) { NotInLandingStage = false; return true; } if (v.IsInLandingStage(true, TargetPos, -0.2f) >= 0) { NotInLandingStage = false; return true; }; NotInLandingStage = true; // Taucher kann immer rein if (!p.HasCommand("Dive")) return false; break; } case VT_POLICE_SW : case VT_POLICE_PHC : case VT_POLICE_STW : case VT_POLICE_MTW : if (p.IsLinkedWithPerson()) return false; if ((p.GetPersonType() == PT_SHOOTER) || (p.GetPersonType() == PT_SHARPSHOOTER) || (p.GetPersonType() == PT_PSYCHOLOGIST) || (p.GetPersonType() == PT_SCOUT) || (p.GetPersonType() == PT_POLICEMEN)) return true ; else return false ; break; case VT_POLICE_GETAWAY : return false; break; case VT_AMBULANCE_RHF : if(!p.HasCommand("SendDog") && !p.HasCommand("CallDog")) return false; break; case VT_AMBULANCE_ITW : if(p.IsCarryingPerson()) return false; if(!p.HasCommand("Heal") && !p.HasCommand("UnloadPerson") && !p.HasCommand("PutInCar")) return false; if(p.HasCommand("Extinguish") || p.HasCommand("GetRoadBlock")) return false; break; case VT_AMBULANCE_NEF : if(!p.HasCommand("Heal")) return false; case VT_AMBULANCE_RHC : case VT_AMBULANCE_RTW : if (v.GetFreePassengers() == 0) return false; if(!p.HasCommand("Heal") && !p.IsParamedicTeam() ) return false; break; default : return false; } if((p.HasCommand("extinguish") && (p.IsCarryingPerson() || p.IsLinkedWithPerson())) || p.IsContaminated()) { if (v.GetVehicleType() == VT_FIREFIGHTERS_DEKONP) return true; else return false; } return true; } return false; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Person p(Caller); Vehicle v(Target); if (p.IsCarryingPerson()) { Person carried = p.GetCarried(); bool carriedClassified = false; if (carried.IsClassified()) carriedClassified = true; if(!carriedClassified && (v.GetVehicleType() == VT_AMBULANCE_ITW || v.GetVehicleType() == VT_AMBULANCE_RTW || v.GetVehicleType() == VT_AMBULANCE_RHC)) { ScriptInterface::ShowMessageTickerTextForSinglePlayer(Caller, "Cette personne doit d'abord être examinée par un médecin"); return; } } TargetPoint targetPoint; if (v.GetVehicleType() == VT_AMBULANCE_ITW) targetPoint = TARGET_PASSENGERDOOR; else if (v.GetVehicleType() == VT_THW_FGRT_BH) targetPoint = TARGET_REARDOOR; else if (v.GetVehicleType() == VT_FIREFIGHTERS_FMB) { if (NotInLandingStage) targetPoint = TARGET_OBJECTSURFACE; else { Caller->PushActionMove(ACTION_NEWLIST, TargetPos); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionEnterCar(ACTION_APPEND, Target); return; } } // diese Abfrage auf jeden Fall erst nach ITW und FMB else if (p.IsParamedicTeam() || (p.HasCommand("Heal") && (v.GetNumTransported()>0 || Game::IsParamedicWithInjuredInSelection(Caller)))) targetPoint = TARGET_REARDOOR; else targetPoint = TARGET_PASSENGERDOOR; if((p.HasCommand("extinguish") && (p.IsCarryingPerson() || p.IsLinkedWithPerson())) || p.IsContaminated()) { if (v.GetVehicleType() == VT_FIREFIGHTERS_DEKONP) targetPoint = TARGET_REARDOOR; } if (p.HasCommand("SendDog") && p.GetArrestedID() != -1) { targetPoint = TARGET_REARDOOR; Caller->PushActionMove(ACTION_NEWLIST, Target, targetPoint); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionPutInCar(ACTION_APPEND, Target); targetPoint = TARGET_PASSENGERDOOR; Caller->PushActionMove(ACTION_APPEND, Target, targetPoint); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionEnterCar(ACTION_APPEND, Target); } else { Caller->PushActionMove(ACTION_NEWLIST, Target, targetPoint); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionEnterCar(ACTION_APPEND, Target); } } }; Emergency-fan
  2. new french mod will coming soon . it was devellopeped for 3 years

    1. gamer1368

      gamer1368

      sounds intresting, looking forward to it.

    2. nick the greek

      nick the greek

      it sounds promising...

  3. hello we are making the UV Mapping for the new Master yused in most models we will make firestattions but it's not our priority new version will be released soon (some weeks)
  4. sure i reinstall it yesterday (delete olders etc)
  5. Hello Hoppah i've found a bug when you call an additional helicopter with policeman small pic : The first(NEW) was called by the buy menu, the second with backup helicopter command Thanks for reading Emergency Fan
  6. I already said that my problem is fixed Thanks for all
  7. FIXED PROBLEM I just missed an "s" pffff
  8. i don't have any icon i can ad them to the vejcile but when i call the vehicle , units are not inside scrreen http://img10.hostingpics.net/pics/815868Em4_2010_05_10_22_21_26_29.png
  9. Hello I need your help to add stretchers on the game and i don't how make that Can someone help me ? Prototype path stretcher : Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p Prototype path stretcher + injured : Prototypes/Persons/02 Ambulance/SP_Brancardiersinjured.e4p Prototype path single : .../.../SP_Brancardiers_single.e4p unit.xml <unit id="SPBRA"> <campaign> <missions value="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21"> <prototypes> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="0"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="1"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="2"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="3"/> </prototypes> <space value="1" /> <price value="25" /> </missions> </campaign> <freeplay> <missions value="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22"> <prototypes> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="0"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="1"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="2"/> <prototype name="mod:Prototypes/Persons/02 Ambulance/SP_Brancardier.e4p" level="3"/> </prototypes> <space value="1" /> <price value="25" /> </missions> </freeplay> </unit> Portraits.xml <portrait prototype="mod:Prototypes/Persons/02 Ambulance/SP_Brancardiers.e4p" big="norm" unit="SPBRA" text="SPBRA"/> <portrait prototype="mod:Prototypes/Persons/02 Ambulance/SP_Brancardiersinjured.e4p" big="norm" unit="SPBRA" text="SPBRA"/> HELP ME PLEASE ^^ Emergency-Fan
  10. Hello News of the mod - Renault Master has been modeled again : it will replace the old master. - Bomb Squad has been added - Electric engineer has been added - New Commands (I keep that secret) see you
  11. that one is the best Free Mc do
  12. Hello i'm going to present you a french guy who make funny videos His Name : Rémi Gaillard He plays Pacman , Or mario Olympic games by remi gaillard His website : http://www.nimportequi.com/fr/ see you Emergency-fan
  13. ok i'll do that during that week cause i'm busy for studies i'll update my post soon
  14. Hello I would know where i can download Em4 - Map Texture in .jpg format them can't be download in download section Can someone help me ? Emergency-fan
  15. the mod progress but no news for the moment
  16. of course , a big version is in progress news will be add later see you emergency-fan
  17. yes of course a big version with much vehicles will be released i don't know the date exactly (2010)
  18. Patch 1 released correction of much bugs http://www.megaupload.com/?d=UEHXBJ0G
  19. The month is correct ^^ 11 = November 10 = October See you Emegency-fan
  20. correct ^^ http://www.megaupload.com/?d=AKLGKHEI
  21. hello release date : today download link : http://modfrance.forumactif.net/telecharge...v01b-t35.htm#88 you have to be registerred support on that forum http://modfrance.forumactif.net in englsih forum see you later Emergency-Fan
  22. not yet it's a beta version with 6 vehicles gameplay original : no new command (just flashing lights and sosi) New vehicle (future version)
  23. Hello release date tomorrow : screens Installer Mod and vehicles
  24. Hello Small bug while redirecting LA Bus he doesn't disappear
×
×
  • Create New...