Jump to content
rafael09ed

[RELEASE] Survivable Crashes Script

Recommended Posts

Survivable Crashes Script

 

 

This script allows the crew of a vehicle to survive it's destruction and escape with some damage taken. While designed for helicopters, any vehicle that would normally explode and kill all the crew members, should instead knock the players unconscious, eject them once next to the ground, deal some damage to the players, and then be woken up. Then in 60-120 seconds, the vehicle will explode if it had not already exploded on impact. ACE3 damage will be automatically applied if it is in the active mod pack.

 

As of v1.2.1, this script should work in MP.

 

This Script has been replaced by the Survivable Crashes Mod

For information on this script, visit it's Github Page

 

Video:

Github

Download: Github

  • Like 3

Share this post


Link to post
Share on other sites

Awesome thanks for releasing this. And glad this utilizes ACE as its part of our mudpack. 

 

Question.... does it matter if your ACE medical setting are set to advanced or basic ?

Share this post


Link to post
Share on other sites

Awesome thanks for releasing this. And glad this utilizes ACE as its part of our mudpack. 

 

Question.... does it matter if your ACE medical setting are set to advanced or basic ?

I tried it under advance, and I bleed out a few seconds after I woke up. Everything was red.  If you want to use it under advance, I would recommend going to "f\crash\fn_localCrashEffects.sqf", line #54, and changing 

[_unit, random 1, _x, _cause] call ace_medical_fnc_addDamageToUnit; 

To 

[_unit, random .2, _x, _cause] call ace_medical_fnc_addDamageToUnit;

This way, less damage will be applied to the player. You can play around with that number to find something that fits what you want.

 

Thanks for that script mate. What about non ace version ?

Uploaded under version 1.2 . If you have any problems, please tell me.

 

Release frontpaged on the Armaholic homepage.

Thank you!

Share this post


Link to post
Share on other sites

Can you make a mod out of this?  Don`t fancy scripts,really.

 

Could you make this work for planes,too? 

Share this post


Link to post
Share on other sites
  • If using ACE3, The Medical module's 'Prevent Instant Death' setting should be turned on. 

 

I'm happy to be corrected on this one, but I believe this will result in all AI being prevented from instant death too.  Or at least I recall it used to work like that (whether bug or 'feature').  Whilst this isn't an issue for pilots, it can/does create issues on the ground for infantry struggling to kill  AI infantry.

 

Can anyone confirm/contribute to this?

 

Love the script, want to make it a core part of our framework.

Share this post


Link to post
Share on other sites

I'm happy to be corrected on this one, but I believe this will result in all AI being prevented from instant death too.  Or at least I recall it used to work like that (whether bug or 'feature').  Whilst this isn't an issue for pilots, it can/does create issues on the ground for infantry struggling to kill  AI infantry.

Under the ACE Medical Settings Module, you can disable AI Unconsciousness, and I believe that would kill the AI if they go down, but I don't know if that is what you are looking to do. 

 

I made the 'Prevent Instant Death' setting a requirement, because during testing with a land vehicle and an AI AT specialist I was not able to survive the impact of the missile without that setting enabled. I could not come up with a good reason of why I would survive all the crashes in a helicopter, but not once when I was hit in a Strider with an ACE Javelin missile, so I assume that it is possible to die without that setting even though I have never experienced it. I would eventually like to get to the point where I don't have to worry about the settings and it would work all the time, but until I figure out why and have a solution, I would prefer to present it as a required setting, then have someone unexpectedly die in an actual mission. 

 

If your clan has any problems or suggestions, I would like to hear them.

 

Can you make a mod out of this?  Don`t fancy scripts,really.

 

Could you make this work for planes,too? 

I have never made a mod before, so I will have to do some research and get some help. I think it does make sense to have this as a mod. 

I believe it should work for all vehicles as long as you enable prevent instant death. 

Share this post


Link to post
Share on other sites

If the vehicle explode and burn on crash no one should survive that.

Share this post


Link to post
Share on other sites

Thanks for the script, really interesting.

If you want to make it even more accessible, I suggest to implement global variables to

- adjust the probability of death in general OR (even better) adjust the probability of death depending on impact speed

- adjust the probability of vehicle exploding in the end

  • Like 1

Share this post


Link to post
Share on other sites

If you want to make it even more accessible, I suggest to implement global variables to

- adjust the probability of death in general OR (even better) adjust the probability of death depending on impact speed

- adjust the probability of vehicle exploding in the end

Thanks for the suggestions. If I am able to make this into a mod, I will include those options.

 

It´s possible to run that script in Arma2?

Probably not.

Share this post


Link to post
Share on other sites

A server side mod would be fanastic! No need to unpack and implement to all our server missions.

Share this post


Link to post
Share on other sites

Hiya, great script!

 

I run a non-ace dedicated server which we use as a sort of zeus sandbox. Anyway, would it be possible to code this script so that its automatically applied to all vehicles a player gets into? That way I could run it as a mission script and my players can hop into any vehicle and have a chance of surviving its destruction without me needing to manually apply this script to each vehicle the players use.

 

Thanks :)

Share this post


Link to post
Share on other sites

Hiya, great script!

 

I run a non-ace dedicated server which we use as a sort of zeus sandbox. Anyway, would it be possible to code this script so that its automatically applied to all vehicles a player gets into? That way I could run it as a mission script and my players can hop into any vehicle and have a chance of surviving its destruction without me needing to manually apply this script to each vehicle the players use.

 

Thanks :)

Yes it is possible, I will look into this for the next version. Thanks for the suggestion.

Share this post


Link to post
Share on other sites

Yes it is possible, I will look into this for the next version. Thanks for the suggestion.

 

Awesome I cant wait! This will be a great addition to have on our server :)

 

I look forward to the next release!

Share this post


Link to post
Share on other sites

I saw your reply about making this work better with advanced medical for ace 3 but it seems in the most recent version of the script, there is no localcrasheffect.sqf so how do I go about editing the amount of damage the player will take. every time the plane that I use crashes the player takes insane amounts of damage to the point that they will bleed out and die in 10 seconds after unconsciousness.

Share this post


Link to post
Share on other sites

Is there any way of making it were you survive more then one hit with the ACE medical like you can with vanilla 

Share this post


Link to post
Share on other sites
On 7/7/2017 at 1:03 PM, wclark3 said:

Is there any way of making it were you survive more then one hit with the ACE medical like you can with vanilla 

I am currently testing a version that I think may work properly which is on the master branch of the github. 

Also you must still have the Medical module's 'Prevent Instant Death' setting turned on if you are using ACE 3.

Share this post


Link to post
Share on other sites

I love the mod, it makes crashes perfect, and adds tension to the situation rather than just instadeath.

However, in ace, it overrides "prevent instadeath" leading to units dying instantly when shot, even when the module is disabled. To have "prevent instadeath" work right, the module must be removed  from the scenario.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×