Jump to content

NathanDollinger

Members
  • Posts

    172
  • Joined

  • Last visited

Everything posted by NathanDollinger

  1. So i have every thing working but!.... I can't get the supply line to un hook form the truck.... It all goes together fine but when the fires out and where cleaning up that craps stuck! any ideas? ( P.S. It shows the get in car icon instead of the unhook hose icon ) Edit.....! I got it to work! Thanks though!
  2. Just some interesting playing around i did until hoppah gives us instruction to add this to other mods ( I tryed didn't go so well so now im waiting! ) Based off the US general pump rated of 1000 Gallons / Minute I found that with the following settings int MAX_WATER_TLF = 1300;int MAX_WATER_LPF = 400;int MAX_WATER_GTF = 1000;int MAX_WATER_DLK = 500;int OUTTAKE_HOSE = 30; //outtake per secondint OUTTAKE_TLF_CANNON = 50;int OUTTAKE_LPF_CANNON = 50;int OUTTAKE_DLK_CANNON = 50;int INTAKE_SUPPLYLINE = 80;You can run 3 hose lines at a time with out depleting your water source( 4 or more will work until the tank is empty ), Or you can run one hose line and the deck cannon. ( 2 ore more hose lines and the deck cannon works until the tank is empty) With this it ads more to the script to limit just how much water you can flow, Hydrants have limits to you know!
  3. Agreed will be looking forward to it! Script on my friend!
  4. Thats great! Any ideas on when will get to see it=D
  5. Hows the testing coming hoppah? Hope we see this today! Can't wait to start working with it! It will with out a doubt go down as one of the best modding scripts in EM4 History!
  6. .... Grr lol Good job Hoppah! Hope to see it soon!
  7. Got a lot going on during the next 3 months already some what feeling stressed! Will be glad when every thing is done and over with regardless of the out come of some stuff and finishing up my FF Level 2 by November i guess all and all it will be a accomplished year when its over!Also good luck to every one as they go through AFD's Hiring process!

  8. No it is two completely different ways of writing the script, Also I worked out my previous issue and believe i will have a working free play version some time later this after noon! Will post updates later but for now its time for sleep!
  9. Okay so here is what i got, when loading i get limitation statement to long as an error ( Around line 60 ) This is playing for about an hour with the code any thoughts? int ETL[] = 1000;const char OBJ_E04[] = "mod:Prototypes/Vehicles/02 Fire Department/engine01.e4p";int OUTTAKE_HOSE = 6;int OUTTAKE_CANNON = 10;int INTAKE_SUPPLYLINE = 24;int WaterLevel;int Engine01Level;object VcmdWaterLVL : CommandScript{ VcmdWaterLVL() { SetCursor(""); SetIcon(""); SetGroupID(DummyGroup); SetGroupLeader(true); SetRestrictions(RESTRICT_SELFEXECUTE); } Vehicle veh(StrCompare(v.GetPrototypeFileName(), OBJ_E04); { if (veh)->HasCommand("DummyLimitedWater")) { int numActiveHoses = 0; int numActiveCannons = 0; int numSupplyLines = 0; int Outtake = 0; int Intake = 0; if (veh.HasCommand("DummyWaterSupplyOn")) numSupplyLines++; if (veh.GetVehicleType() == VT_FIREFIGHTERS_GTF && veh.IsInstalled()) } { PersonList Pconnected(ROLE_SQUAD); for(int k = 0; k < Pconnected.GetNumPersons(); k++) { if (Pconnected.GetPerson(k)->GetEquipment() == EQUIP_FIREHOSE && Pconnected.GetPerson(k)->GetType() == ACTOR_PERSON && Pconnected.GetPerson(k)->GetFirehoseID() != 0 && !Pconnected.GetPerson(k)->IsFlagSet(OF_HIDDEN)) { Vector TargetPos; GameObject Phydrant = Pconnected.GetPerson(k)->GetHydrant(); if (Phydrant.GetID() == veh.GetID()) { Person p(Pconnected.GetPerson(k)); if (p.IsCurrentAction("EActionExtinguish") || p.IsCurrentAction("EActionCool")) numActiveHoses++; } } } } if (veh.HasCommand("VcmdWaterSwitch") && veh.IsCurrentAnimation("activate")) { GameObjectList cannonlist = Game::GetGameObjectsWithPrefix("engine_water_cannon"); for(int j = 0; j < cannonlist.GetNumObjects(); j++) { Vehicle cannon = cannonlist.GetObject(j); if (cannon.GetUserData() == veh.GetID() && (cannon.IsCurrentAction("EActionExtinguish") || cannon.IsCurrentAction("EActionCool"))) numActiveCannons++; } } Intake = numSupplyLines*INTAKE_SUPPLYLINE; Outtake = numActiveHoses*OUTTAKE_HOSE+numActiveCannons*OUTTAKE_CANNON; if (veh.GetID() == v.GetID()) { Engine01Level = Engine01Level+Intake-Outtake; if (Engine01Level < 20) veh.AssignCommand("DummyEmptyTank"); if (Engine01Level > ELT) Engine01Level = ELT; else if (Engine01Level < 0) Engine01Level = 0; } if (veh.HasCommand("DummyEmptyTank")) { PersonList Pconnected(ROLE_SQUAD); for(int k = 0; k < Pconnected.GetNumPersons(); k++) { if (Pconnected.GetPerson(k)->GetEquipment() == EQUIP_FIREHOSE && Pconnected.GetPerson(k)->GetType() == ACTOR_PERSON && Pconnected.GetPerson(k)->GetFirehoseID() != 0 && !Pconnected.GetPerson(k)->IsFlagSet(OF_HIDDEN)) { Vector TargetPos; GameObject Phydrant = Pconnected.GetPerson(k)->GetHydrant(); if (Phydrant.GetID() == veh.GetID()) { Person p(Pconnected.GetPerson(k)); if ((veh.GetID() && Engine01Level < 20)) { if (p.IsCommandEnabled("Extinguish")) { p.EnableCommand("Extinguish", false); p.EnableCommand("Cool", false); p.EnableAutoTarget(false); p.ClearActions(); p.PushActionWait(ACTION_NEWLIST, 2.f); } } else { p.EnableCommand("Extinguish", true); p.EnableCommand("Cool", true); p.EnableAutoTarget(true); } } } } if (veh.HasCommand("VcmdWaterSwitch") && veh.IsCurrentAnimation("activate")) { GameObjectList canlist = Game::GetGameObjectsWithPrefix("engine_water_cannon"); for(int j = 0; j < canlist.GetNumObjects(); j++) { Vehicle can = canlist.GetObject(j); if (can.GetUserData() == veh.GetID() && ((veh.GetID() && Engine01Level > 20))) { can.EnableAutoTarget(true); } else { can.EnableAutoTarget(false); can.ClearActions(); can.PushActionWait(ACTION_NEWLIST, 2.f); System::Log("Disable cannon"); } } } if (veh.GetID() && !Engine01Empty) { Engine01Empty = true; Game::ShowHelpTextWindow("Water tank of Local Fire Truck is empty!"); } if ((veh.GetID() && Engine01Level > 20)) { veh.RemoveCommand("DummyEmptyTank"); if (veh.HasCommand("Extinguish")) veh.EnableCommand("Extinguish", true); if (veh.HasCommand("Cool")) veh.EnableCommand("Cool", true); if (veh.GetID() && Engine01Empty) Engine01Empty = false; } else { if (veh.HasCommand("Extinguish")) veh.EnableCommand("Extinguish", false); if (veh.HasCommand("Cool")) veh.EnableCommand("Cool", false); } } }};
  10. I looked at trying to find it in the winterberg mods ones and quickly realized i don't read German very well!
  11. As i said next to number one "Possibly even a different script for each truck would be necessary to keep track of its water level better" Thinking about it further i would about say that is with out a doubt the best option, Each truck with its own script would make for a simplistic start to finding a solution! Hoppah could you break down the part of the code that dose adding and subtracting? I don't really know the mission scripting stuff but if i had the basics to put in to a command script i might be able to play around with it a bit better!
  12. I need a 48 hour day and 200 hour work week for about 3 months and maybe i can get every thing done i need done..... Crap!

  13. This is so very frustrating as a moder, and EM4 player this in freeplay would be so great, However it acts to escape every one! Here has what i came up with, and maybe will give some with more knowledge and skill a way to look! 1. The best way would be to assign a tank level to one class of units, ( Possibly even a different script for each truck would be necessary to keep track of its water level better ) 2. Then have preset way of adding and subtraction between 0 ( tank empty ) and the tank full level ( W/E Its set at ) 3. To update on tank level you could do a text at the top of the screen or as hoppah suggested icons ( However i think this is the lest import aspect of the script) 4. Lag would be a potential problem due to the fact that each truck is constantly updating its water level 5. A code idea ( i am fully aware that this is not actually right it is just a brain storm! ) Please any suggestions or ideas off this would be welcomed between all of us we can make it work, Even with a little lag! Ideas ??
  14. This third shift crap has got me all twisted...... 4 am and im home and wide awake! Oh how i miss sleeping at night!

  15. This would actually be really simple! almost a copy and past set up! The way the scripts work is it follows the order in which its written so in theory if you copy and pasted the core part of the change clothes script to in front of the core part of the rapid deploy script the fire fighters would get out, change clothes, go get the hose, connect the hose , and be ready to fight fire in the correct order! You would have to do some tinkering to get every thing lined up right and work the bugs out but it should work with very little effort!
  16. Well with any luck and a lot of effort within a couple of months one of my job applications will turn into a career!

  17. Well that was awkward!

  18. AFD Application submitted! Praying for a good outcome!Good luck to everyone who has applied wish you all the best and ill see ya there!

  19. What a night. Never know what to expect when I go to work...

    1. cops

      cops

      that's the fun part of the job :)

  20. One more hour... hey at lest its over time

  21. you said you did this but~! Set your resolution in the config file manually Use a text editor Go in to your EM4 game directory Open em4.cfg ( Make sure its not set to read only ) find <var name="r_xres" value="1600" /> <var name="r_yres" value="900" />And set the values to your screens resolution ( Go to your control panel and make sure you set it to the resolution displayed under Appearance & Personalization )Change the compatibility mode to windows XP EM4 Is a XP era game not windows 7 also make sure that run as administrator is checked for every start up!U could also try lowering your UAC level to see if that helps! ( it will block file changes and other crap on occasion) Should solve your problem, However if you try the above listed ( Actually try them! )Ill troubleshoot some more stuff with you i had this issue on windows 8 as well and the game is running great
  22. Looking forward to the next 4 1/2 hours being over!

  23. i am extremely bored!

  24. Hhmmm applying to Lenoir and Shelby Fire Departments, Expanding my opportunity, Wish me luck! Prayers are appreciated as well!

    1. Thomasvista207

      Thomasvista207

      Good luck! Are these in North Carolina?

  25. 911 services back up!In a emergency dial 911!

    1. Handsup!

      Handsup!

      They were down? Holy crap

×
×
  • Create New...