Sleem Posted June 29, 2011 Posted June 29, 2011 I'm playing around with different ways of ending a MP mission. I would prefer to end the mission once all active players either are dead or have landed back at base. This is easy enough if I know how many planes are occupied but some will be inactive or even some may have disconnected during the mission. How do you end your missions? Is there an elegant way to do the above without using lots of flags?:dunno:
Grimes Posted June 29, 2011 Posted June 29, 2011 Uhm, it depends. Usually just let players know they accomplished the mission. If the server admin is playing, they will pick another mission. If Servman is up, it will allow players to pick another mission when they are ready. In some cases I guess you could just set a simple timer up. Where you tell players they won the mission and give them X amount of time to do whatever until the mission restarts. Random side note, could a lua script be written to interface directly with servman to rotate to the next mission? The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Cibit Posted June 29, 2011 Posted June 29, 2011 To end it on all players landing at a given airfield a simple trigger can be used. Once> all of coalition is in zone /coalition "Blue" /zone "end"> end mission. stick a small trigger on the apron or end of runway called end The above would only be possible if your the only friendly units on the map Or alternatively a group in zone would work for single player:) And a mix of the above and some creativity should get the ending you require i5 8600k@5.2Ghz, Asus Prime A Z370, 32Gb DDR4 3000, GTX1080 SC, Oculus Rift CV1, Modded TM Warthog Modded X52 Collective, Jetseat, W10 Pro 64 [sIGPIC][/sIGPIC] Adding JTAC Guide //My Vid's//229th AHB
mia389 Posted June 29, 2011 Posted June 29, 2011 I tried making it so all clients had to be parked at base for mission to end. I tried it this way. Condition: Flag 50 true (all objectieves complete flag) Unit Speed less than 1, ford1 Unit Speed less than 1, ford2 Unit Speed less than 1, ford3 Unit Speed less than 1, ford4 Unit Speed less than 1, ford5 Unit Speed less than 1, ford6 This does not work unless all 6 clients are on server though. I use Grimes method. Give message to all mission is complete. If you use end mission action that only gets broadcast to host not clients.
Speed Posted June 29, 2011 Posted June 29, 2011 Here's a simple system: Once("Client 1 ready for debrief")-> <MISSION OBJECTIVES> AND Unit inside Zone(Client1, homeplate) AND Unit Speed Lower Than (Client1, 15) AND Unit Alive(Client1) OR <MISSION OBJECTIVES> AND Unit Dead(Client1)->Set Flag(101) Repeat this trigger for every client, but with a different flag number, like this: Once("Client 2 ready for debrief")-> <MISSION OBJECTIVES> AND Unit inside Zone(Client2, homeplate) AND Unit Speed Lower Than (Client2, 15)AND Unit Alive(Client2) OR <MISSION OBJECTIVES> AND Unit Dead(Client2)->Set Flag(102) Next, just check if all those flags are true: Once("End Mission")->Flag is true (101) AND Flag is true (102) AND Flag is true (103)...AND Flag is true (100 + number of clients)-><DO END MISSION STUFF> Intelligent discourse can only begin with the honest admission of your own fallibility. Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/ Lua scripts and mods: MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616 Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979 Now includes remote server administration tools for kicking, banning, loading missions, etc.
Steel Jaw Posted June 29, 2011 Posted June 29, 2011 In our neck of the woods you need to land the jet at a friendly airfiled, or eject from a crippled one, to count mission kills in the VFW flight log. Also an eject would be so marked in the flight log. "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB, monitor: GIGABYTE M32QC 32" (31.5" Viewable) QHD 2560 x 1440 (2K) 165Hz.
mia389 Posted July 2, 2011 Posted July 2, 2011 (edited) Here's a simple system: Once("Client 1 ready for debrief")-> <MISSION OBJECTIVES> AND Unit inside Zone(Client1, homeplate) AND Unit Speed Lower Than (Client1, 15) AND Unit Alive(Client1) OR <MISSION OBJECTIVES> AND Unit Dead(Client1)->Set Flag(101) Repeat this trigger for every client, but with a different flag number, like this: Once("Client 2 ready for debrief")-> <MISSION OBJECTIVES> AND Unit inside Zone(Client2, homeplate) AND Unit Speed Lower Than (Client2, 15)AND Unit Alive(Client2) OR <MISSION OBJECTIVES> AND Unit Dead(Client2)->Set Flag(102) Next, just check if all those flags are true: Once("End Mission")->Flag is true (101) AND Flag is true (102) AND Flag is true (103)...AND Flag is true (100 + number of clients)-><DO END MISSION STUFF> I tried this in my Operation Raindrop. Its not working though. It seems it should so a couple of us did some testing. We found that the unit dead gets triped the minute the unit joins the server. Any other ideas? If you want you can download the mission and take a look at the way I tried it. Edited July 2, 2011 by mia389 added link
Recommended Posts