Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command
Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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
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
- Attachments
-
- Dynamic Pi.. and SAR.zip
- (34.43 KiB) Downloaded 97 times
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Sorry I don't understand.
It's a scenario or the lua code to add the feature?
It's a scenario or the lua code to add the feature?
- michaelm75au
- Posts: 12455
- Joined: Sat May 05, 2001 8:00 am
- Location: Melbourne, Australia
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
Michael
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Thank you Michael.
Suggestion to angster: it would be possible to do a similar script to simulate the rescue of crippled ships?
Suggestion to angster: it would be possible to do a similar script to simulate the rescue of crippled ships?
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
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.
-
- Posts: 2418
- Joined: Thu Dec 18, 2014 1:53 am
- Location: Brooklyn, NY
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Very cool! Thanks!
Mike
Mike
-
- Posts: 589
- Joined: Sat Nov 22, 2014 7:54 pm
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
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.
- Attachments
-
- Operation..Promise.zip
- (745.61 KiB) Downloaded 11 times
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Hey Fisher, if you can send me the scenario file. I can take a look at it.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Hey Fisher,
I think that I fixed your errors. Try this one.
I think that I fixed your errors. Try this one.
- Attachments
-
- Operation..Promise.zip
- (706.42 KiB) Downloaded 28 times
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Angster,
Your SAR files are great! Nice job and thank you for sharing.
Rob
Your SAR files are great! Nice job and thank you for sharing.
Rob
-
- Posts: 589
- Joined: Sat Nov 22, 2014 7:54 pm
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
- Attachments
-
- DynamicPi..andSAR.zip
- (52.27 KiB) Downloaded 31 times
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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%
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%
- Attachments
-
- Operation .. Promise.zip
- (708.71 KiB) Downloaded 27 times
-
- Posts: 589
- Joined: Sat Nov 22, 2014 7:54 pm
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
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.
- Attachments
-
- Operation..miseSAR2.zip
- (689.18 KiB) Downloaded 13 times
-
- Posts: 589
- Joined: Sat Nov 22, 2014 7:54 pm
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
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.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.
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.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
Hmmmm, that can certainly be done. Probably touch up on that in the next update.
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)
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.