Jump to content

Xplorer4x4

Members
  • Posts

    4,842
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Xplorer4x4

  1. I was doing some searching and came across this. Soulbody, I know you paused the project but wanted to point out some stuff in this script: You were using: VehicleList patrolCars(VT_FIREFIGHTERS_ASF); Your trying to do dispatch based onaq vehichle type, but the way your code is written, it is written where VT_FIREFIGHTERS_ASF is a specific vehicle, not vehicle type. If you are doing vehicle type, you want something like this: if (v.GetVehicleType() == VT_FIREFIGHTERS_ASF) You can also optimize the script. You have: int NewMoney = Money - 1000; Mission::SetMoney(NewMoney); Vehicle n; Person p1; Person p2; Person p(Caller); if(StrCompare(p.GetPrototypeFileName(), OBJ_BATTALION_CHIEF) == 0) { if(l1.GetNumActors() == 0 && l2.GetNumActors() > 0) { Spawn = l3.GetActor(0)->GetPosition(); Rotate = l6.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_CHARGER_LAPD, UNNAMED); n.SetSpeed(8.0f); } else if(StrCompare(p.GetPrototypeFileName(), OBJ_OFFICER_LASD) == 0 || StrCompare(p.GetPrototypeFileName(), OBJ_TRAFFIC_OFFICER_LASD) == 0) { if(l1.GetNumActors() == 0 && l3.GetNumActors() > 0) { Spawn = l3.GetActor(0)->GetPosition(); Rotate = l6.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_CV_LASD, UNNAMED); n.SetSpeed(8.0f); } else if(StrCompare(p.GetPrototypeFileName(), OBJ_OFFICER_CHP) == 0 || StrCompare(p.GetPrototypeFileName(), OBJ_TRAFFIC_OFFICER_CHP) == 0) { if(l1.GetNumActors() == 0 && l3.GetNumActors() > 0) { Spawn = l3.GetActor(0)->GetPosition(); Rotate = l6.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_CV_CHP, UNNAMED); n.SetSpeed(8.0f); } else { if(l1.GetNumActors() == 0 && l2.GetNumActors() > 0) { Spawn = l2.GetActor(0)->GetPosition(); Rotate = l5.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_CV_LAPD, UNNAMED); n.SetSpeed(8.0f); } Most of this code is not needed. The code is written so if the BC calls for a patrol car a LAPD Charger is bought and dispatched. If an LASD officer calls for a patrol car, then an LASD CV shows up, and if CHP call for back up CHP Charger shows up. However in your case there calling a tow truck, so theres no need for that. First delete: Person p1; Person p2; Person p(Caller); Your not spawning people so no need for that. Secondly any one that calls the tow truck is calling the same unit, thw tow truck, so no point in the extra checks, and I would do it like this...first define PROTO_TOW_TRUCK as a constant at the top of the script, then do this: if(StrCompare(p.GetPrototypeFileName(), OBJ_BATTALION_CHIEF) == 0) { if(l1.GetNumActors() == 0 && l2.GetNumActors() > 0) { Spawn = l3.GetActor(0)->GetPosition(); Rotate = l6.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_TOW_TRUCK, UNNAMED); n.SetSpeed(8.0f); } else { if(l1.GetNumActors() == 0 && l2.GetNumActors() > 0) { Spawn = l2.GetActor(0)->GetPosition(); Rotate = l5.GetActor(0)->GetPosition(); } n = Game::CreateVehicle(PROTO_TOW_TRUCK, UNNAMED); n.SetSpeed(8.0f); } This way there is less code and less if/else checks. No point in checking all those things when there all calling the same unit. If you want to use my call tow truck script instead, let me know. It is in game and working.
  2. Still no luck, current code is: if (v.GetVehicleType() == VT_FIREFIGHTERS_ASF || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/04 LA Tec/tow_truck.e4p") == 0) { v.EnableBlueLights(true); } if (v.GetVehicleType() == VT_FIREFIGHTERS_ASF || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/04 LA Tec/tow_truck2.e4p") == 0) { v.EnableBlueLights(true); } Full script: http://pastebin.com/2cp6GxYw
  3. I havent played it in ages but i think there regular choppers out fitted for USAR. Its a fun game though. Try it out.
  4. Your kidding right? Please tell me your kidding? ATT is a second rate company with third rate service. I had to spend over an hour on the phone this month to get a refund for an app I didnt purchase! Not to mention the idiot on the phone was well an idiot. I had to explain 3 times it was on the cell phone bill and not the dsl portion of the bill, or the home phone bill(which we do not have anyways). He was stuttering away and triping himself up. Got a supervisor on the line after 3 requests! The supervisor claimed to issue the refund. Drop the call. Call back only to find out that she didnt put a note or refund on the account like she said. Every month AT&T screw up our bill. Literally if you went through the AT&T computer system you could find a note for almost every month I have had there service. The internet is filled with tech blogs with people irate over AT&Ts horrible service. I live about a block from an AT&T Store, now granted there is no tower there but you would think service would be good right? Wrong. Horrible reception. If it werent for the early termination fee, I would have dropped AT&T and went with Verizon ages ago and got me a Moto Droid, maybe DroidX.
  5. If you set print screen to be your hotkey in fraps it does
  6. http://forum.emergency-planet.com/index.php?/forum-42/announcement-4-read-before-requesting-assistance/ This info might be helpful to. Are you by chance playing EM4?
  7. If you cant redirect them, blow them up and tow them off.
  8. 1. Read the rules as double posting is not allowed. Please use the edit button. 2. Check the pinned topic in this forum which is conveniently called "Where's my editor?" 3. Again, please read this before continuing: http://forum.emergency-planet.com/index.php?/forum-42/announcement-4-read-before-requesting-assistance/ We are trying to help you. Help us to help you.
  9. Have you tried Simcopter? It was made in 1996 so even a intel graphics chip of todays standard should play something like this lol. It's fun but it was a 16 bit game so it will not run on 64 bit windows, only 32 bit, and even then it is so old its hard to say how well it can run.
  10. Hoppah, am I allowed to release my submods elsewhere so long as I release them with only the changed files?
  11. Technically winrar is free. Your supposed to buy after like 30 days, but it never makes you pay to continue using. Never liked 7zip myself. Nothing wrong with it just prefer winrar, but if your after a free open source app try peazip: http://www.filehippo.com/download_peazip/ The only think I dont like, is it does not have a timer when extracting files. I prefer winrar for extraction and peazip for doing the compression. More options and faster. To each there own.
  12. Actually they never specified if foam would be included. They said they had it working but they we're unsure of putting it in the first release. Will the SDK be included in the first release?
  13. Souldbody and I already discussed that in the other thread.
  14. You dont change it. http://filext.com/ is a great site for file types you dont recognize. Rar is just a zip file thats more compressed. You need something like winrar to extract the rar file and you will then have the wav files inside.
  15. Glad everything turned out alright in the end. Evansville is a river community so flooding is always a concern here but it never gets like that. I did have a tornado, more powerful then Hurricane Katrina, pass almost exactly 1 mile from my house, and didnt even know it.
  16. And for sirens, try searching the forums for "replace sirens" or "edit sirens." This has been answered twice this week alone. A little tip, not bitching at you fyi, search. Most of the times it gives you an instant answer.
  17. Just scroll a few posts up. theres a download link and the charger is in there.
  18. Could a mod please attach the file to the first post.
  19. Thats explains the file a bit more in-depth.
  20. :sigh: is it so hard to just apply common since? Just install the mod some where else other then the mods or desktop directory, or use Universal Extractor to extract the exe like a zip.
  21. Opps, your right. I copied it out of the script and was changing just then umber so i wouldnt get it wrong and still did Did you add the actual paths to the map? This is just a script, you still have to assign the command to officer, and make the paths on the map.
  22. http://forum.emergency-planet.com/index.php?/forum-42/announcement-4-read-before-requesting-assistance/ Different problem, but possible solution: And last but not least, using Fraps to grab a screen shot might help us out as well.
  23. Oh and for the record, I posted the script here for some one else to use because I have no intention of adding to my submods.
  24. If some one wants to do the foot paths on the map and release it as a submod, after getting Hoppahs permission of course, here is a script you can use. Just be sure to name the paths patrolfootpath01, patrolfootpath02, and patrolfootpath03. For the person who wants to do the project, once you have permission, and test the script in game, feel free to pm me if it needs to be tweaked or has any errors. This only applies to the person who has permission! LAFootPatrol.zip
  25. http://www.fairstars.com/recorder/index.htm I use this for taping a live feed of my local scanner some times but it will do the job. You can also use Audacity: http://audacity.sourceforge.net/ If you use Audicity you can cut the sounds of the mic keying in from the audio hoppah used.
×
×
  • Create New...