Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

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

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) - 10/11/2017 5:51:12 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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


Attachment (1)

< Message edited by angster -- 10/15/2017 3:49:13 PM >
Post #: 1
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 7:10:52 AM   
Andrea G


Posts: 325
Joined: 10/9/2017
From: Genoa, Italy
Status: offline
Sorry I don't understand.
It's a scenario or the lua code to add the feature?

_____________________________


(in reply to angster)
Post #: 2
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 9:30:53 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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

(in reply to Andrea G)
Post #: 3
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 11:34:00 AM   
Andrea G


Posts: 325
Joined: 10/9/2017
From: Genoa, Italy
Status: offline
Thank you Michael.

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

_____________________________


(in reply to michaelm75au)
Post #: 4
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 1:03:07 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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.

< Message edited by angster -- 10/11/2017 1:11:10 PM >

(in reply to Andrea G)
Post #: 5
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 3:09:18 PM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
Nice work angster!

(in reply to angster)
Post #: 6
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/11/2017 7:30:38 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Very cool! Thanks!

Mike

_____________________________


(in reply to Rory Noonan)
Post #: 7
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 1:45:58 AM   
JPFisher55

 

Posts: 589
Joined: 11/22/2014
Status: offline
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.

Attachment (1)

(in reply to angster)
Post #: 8
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 2:13:55 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Hey Fisher, if you can send me the scenario file. I can take a look at it.

(in reply to JPFisher55)
Post #: 9
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 2:20:12 AM   
Mini_Von


Posts: 134
Joined: 12/17/2013
Status: offline
Hey Fisher,

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

Attachment (1)

_____________________________


(in reply to angster)
Post #: 10
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 2:23:17 AM   
Mini_Von


Posts: 134
Joined: 12/17/2013
Status: offline
Angster,

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

Rob

_____________________________


(in reply to Mini_Von)
Post #: 11
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 4:17:47 AM   
JPFisher55

 

Posts: 589
Joined: 11/22/2014
Status: offline
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.

(in reply to Mini_Von)
Post #: 12
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 4:39:43 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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.

Attachment (1)

(in reply to JPFisher55)
Post #: 13
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 5:02:09 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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%

Attachment (1)

< Message edited by angster -- 10/12/2017 5:26:54 PM >

(in reply to JPFisher55)
Post #: 14
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 8:36:51 PM   
JPFisher55

 

Posts: 589
Joined: 11/22/2014
Status: offline
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.

Attachment (1)

(in reply to angster)
Post #: 15
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 8:48:37 PM   
JPFisher55

 

Posts: 589
Joined: 11/22/2014
Status: offline
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.

< Message edited by JPFisher55 -- 10/12/2017 8:49:49 PM >

(in reply to JPFisher55)
Post #: 16
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 10:57:54 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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.

(in reply to JPFisher55)
Post #: 17
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/12/2017 11:53:19 PM   
Mini_Von


Posts: 134
Joined: 12/17/2013
Status: offline
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.



_____________________________


(in reply to angster)
Post #: 18
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/13/2017 12:55:31 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Hmmmm, that can certainly be done. Probably touch up on that in the next update.

(in reply to Mini_Von)
Post #: 19
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/13/2017 7:08:01 AM   
Andrea G


Posts: 325
Joined: 10/9/2017
From: Genoa, Italy
Status: offline
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.

< Message edited by Andrea G -- 10/13/2017 7:10:12 AM >


_____________________________


(in reply to angster)
Post #: 20
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/15/2017 3:48:20 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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

Attachment (1)

(in reply to angster)
Post #: 21
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/17/2017 5:07:56 PM   
Mini_Von


Posts: 134
Joined: 12/17/2013
Status: offline
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

_____________________________


(in reply to angster)
Post #: 22
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 10/20/2017 6:05:37 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Thanks Von, gonna get a guide out sometime next week.

(in reply to Mini_Von)
Post #: 23
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/22/2018 12:15:24 AM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
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?

(in reply to angster)
Post #: 24
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/24/2018 9:41:39 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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

< Message edited by angster -- 1/24/2018 9:44:29 PM >

(in reply to Gunner98)
Post #: 25
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/25/2018 12:24:38 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
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

(in reply to angster)
Post #: 26
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/26/2018 2:04:00 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
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

(in reply to Gunner98)
Post #: 27
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/26/2018 3:45:51 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Thanks I'll give that a try tonight.

Cheers

(in reply to angster)
Post #: 28
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/29/2018 11:39:52 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
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


Attachment (1)

(in reply to angster)
Post #: 29
RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1... - 1/30/2018 3:29:34 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Hi Gunner, PM me the scenario and I'll take a look.

(in reply to Gunner98)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.064