Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


angster -> Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 5:51:12 AM)

Have fun guys!


Dynamic Pilot Ejection And SAR Rescue (Must have v1.13 Beta)

1.) Pilots have 60% chance of ejecting

2.) SAR works for all choppers

3.) SAR can only pick up pilots of same side

4.) SAR must be very close to pilot to start rescue

5.) Easy to use, no coding required for adding extra side

Cons:

1.) Cannot pick up pilots of other teams yet

2.) Must keep the Events/Triggers/Actions provided and Neutral side cannot be changed/removed


Updated Attachment with refactored code

10/15/2017 - Updated Pilot Time Limit For Pickup




Andrea G -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 7:10:52 AM)

Sorry I don't understand.
It's a scenario or the lua code to add the feature?




michaelm75au -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 9:30:53 AM)

The attached file has a scenario that has Lua and events in it. Just be a matter of using the data as a template for including in other scenarios.




Andrea G -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 11:34:00 AM)

Thank you Michael.

Suggestion to angster: it would be possible to do a similar script to simulate the rescue of crippled ships?




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 1:03:07 PM)

Yup, this scenario takes advantage of the event handling lua functions in 1.13 to simulate SAR pickups. There will be more adjustments but you can definitely use it as a base for future scenarios.

As for crippled ships, it would depend on the scenario. The lua function only cares about the trigger unit and spawns a unit at it's position. It's entirely possible to spawn stranded sailors or life rafts if a ship is damaged or destroyed by changing the event trigger and what the lua script will spawn.




Rory Noonan -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 3:09:18 PM)

Nice work angster!




mikmykWS -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/11/2017 7:30:38 PM)

Very cool! Thanks!

Mike




JPFisher55 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 1:45:58 AM)

I don't know anything about LUA. But, I tried implementing these files. I think that I correctly copied everything, but I am getting this error message in the attached saved game.
It may be that the pilot downed in Iranian and I am playing the US. But I thought that the OP may want to take a look.




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 2:13:55 AM)

Hey Fisher, if you can send me the scenario file. I can take a look at it.




Mini_Von -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 2:20:12 AM)

Hey Fisher,

I think that I fixed your errors. Try this one.




Mini_Von -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 2:23:17 AM)

Angster,

Your SAR files are great! Nice job and thank you for sharing.

Rob




JPFisher55 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 4:17:47 AM)

I tested the game and still received error message about downed pilot failing for some reason. For all I know it could be working and the error message is wrong.




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 4:39:43 AM)

Thanks for the feedback guys. Here's an updated version of it. It includes ships this time but unfortunately some life rafts are destroyed along with the ship. Also some refactoring of the code.




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 5:02:09 AM)

Hey Fisher, I'll take a look at it tomorrow. I'm refactoring some code and probably will apply here.

Edit, Here's the Broken Promise scenario with the SAR scripts, enjoy. You will need v1.13 to make it work.
You can adjust the frequency of pilot ejecting by changing the probability setting on Event "Pilot Down". Right now, it's set to 100%




JPFisher55 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 8:36:51 PM)

Dear Angster,

I tried again using the scripts, triggers and events in your updated file. Initially it seemed to work, but I just received error message in the attached file.
I'll retest using your recent saved game.




JPFisher55 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 8:48:37 PM)

Dear Angster;

The Operation Broken Promise game file seems to work. However, when I looked at all the new triggers, I realized that it is unique to that saved game. I'll wait until you have files applicable to any scenario with planes and helicopters.
FWIW, I have only played Operation Broken Promise using 1.13 with database rebuilt.




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 10:57:54 PM)

Yeah, gonna be difficult to do that. Best case is use the scen file I provided as a base. I'll probably setup a guide to add SAR to an existing scenario in the future.




Mini_Von -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/12/2017 11:53:19 PM)

Angster,

To expand on this, what if the pilot turns into a POW if not picked up within a randomized "X" amount of time. Points can be taken away if the pilot is captured. This would add to the sense of urgency to retrieve the pilot.





angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/13/2017 12:55:31 AM)

Hmmmm, that can certainly be done. Probably touch up on that in the next update.




Andrea G -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/13/2017 7:08:01 AM)

Wonderful work, I'm looking forward to see the guide on how adding the SAR to existing scenarios, I'm thinking about "The Grecale Affair" and the rescue of the stranded sailing boat, so it would be possible to send the chopper to do the work before the nasty tunisians wipe out the helpless crew.




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/15/2017 3:48:20 PM)

Updated to include time limit for pilot pickup
1.) -50 points if pilot is lost
2.) +50 points for pilot pickup
3.) pilot time limit is random




Mini_Von -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/17/2017 5:07:56 PM)

Angster,

I tested out the scenario with the new "Lost Pilot" functionality. I really think you did an awesome job. This is a great addition to the sim. Thank you for sharing your work.

Rob




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (10/20/2017 6:05:37 PM)

Thanks Von, gonna get a guide out sometime next week.




Gunner98 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/22/2018 12:15:24 AM)

Angster

This is a great bit of scripting - well done.

I'm going to try and adapt it into one of my scenarios - Hot Tamale's if that's OK with you?

Is there any limit to the number of Pilots needing rescue?




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/24/2018 9:41:39 PM)

Hi Gunner! Feel free to use or update the SAR scripts. If you run into any issues, let me know. Currently, there’s no limit on pilot rescue. Cheers




Gunner98 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/25/2018 12:24:38 PM)

Thanks angster

Have got it to work partially.

The downed pilots appear as advertised, and I have reduced the VP count, but I cannot seem to get the rescue triggered.

Also is there a way of reducing the probability of creating a downed pilot from 100% to about 60%?

Thanks, this code is really solving a big problem. Thanks

B




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/26/2018 2:04:00 AM)

Hi Gunner! This is based on the attachment from Post 21:

1.) To setup probability of pilot ejecting => Go to event and edit "Event - Aircraft Destroyed And Create Pilot" and set probability to 60%
2.) To get rescue pilot triggered, you will need to copy "Event - Start SAR Target Pickup" and all the triggers and actions. Make sure you add a side named "Neutral" to hide all the reference points




Gunner98 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/26/2018 3:45:51 PM)

Thanks I'll give that a try tonight.

Cheers




Gunner98 -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/29/2018 11:39:52 PM)

angster

Got the probability working, should have spotted that one.
The event when a pilot is lost works:
1:00:00 PM - 1:00:00 PM - Event: 'Event - Cancel Pilot ef764738-cd1e-4248-a671-402e6e6ff355' has been fired.

Still haveing an issue with the pilot pickup however. Here is the Lua log.

I now have a Neutral side, am using the upload from post 21 and have the event loaded.

Any ideas?

I can PM you the scenario if you like?

B




angster -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (1/30/2018 3:29:34 AM)

Hi Gunner, PM me the scenario and I'll take a look.




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.53125