Jump to content
Sign in to follow this  
booshisloose

Ace - Disabling friendly deaths

Recommended Posts

Hello, I'm not sure if this is the right part of the forum for this question, as I am unsure where the problem comes from.

 

I've got a problem with running Ace and using the re-spawning system.

 

What currently happens is that a player will take too much damage and will die immediately. I have turned instant death off, but this does not fix my problem.

 

I would like a player to go unconscious when they take too much damage, but not be able to be killed in the vanilla arma sense.

 

Essentially I would like to turn off death for friendly units, without preventing the player to choose to respawn.

 

I would appreciate any help you could give me.

Share this post


Link to post
Share on other sites

Turning ON "Prevent instant death" in the ACE medical module in the editor should do it. If not, ACE might be running into some conflict with a script in your mission or your modset.

 

Try testing that without additional mods in a simple mission, if you're still having troubles, I would recommend reporting this to the ACE team.

Share this post


Link to post
Share on other sites

Turning ON "Prevent instant death" in the ACE medical module in the editor should do it. If not, ACE might be running into some conflict with a script in your mission or your modset.

 

Try testing that without additional mods in a simple mission, if you're still having troubles, I would recommend reporting this to the ACE team.

Cheers for the response.

 

Instant death is working as intended.

 

I think I need to phrase my question better. I was wondering if there was a loop or something I could do in the init file, so when a player goes unconscious they are invulnerable to all damage, but can still be revived.

Share this post


Link to post
Share on other sites

ACE 3 uses his own handle damage system.

You need to setup correctly  ACE medical and  ACE Revive modules in editor.

Otherwise its setup are default.

 

You need to know some important things.

Ace 3 has huge impact on vanilla  game.

It is like total conversion. In addition there are over 200 issues/bugs in current release.

If you are looking just for revive there are many lightweight community scripts to achieve that or

even vanilla BIS revive.

 

My favorite is Farooq's Revive

Share this post


Link to post
Share on other sites

ACE 3 uses his own handle damage system.

You need to setup correctly  ACE medical and  ACE Revive modules in editor.

Otherwise its setup are default.

 

ACE is working completely as intended, apart from my issue, which is that players can still be killed on the ground or a AI will fire one too many bullets and perma-kill the player, forcing them to respawn at base and breaking the flow of the mission.

 

I don't know how to set up medical or revive modules to achieve this.

 

Failing that, I was wondering if it is possible set players in the unconscious state to set damage false or something.

 

If you have any links to any documentation or guides on setting up the medical system in ACE  to do this, that would be much appreciated.

Share this post


Link to post
Share on other sites

For unconscious units, 

_unit getVariable ["ACE_isUnconscious", false]

will return true.

 

 

You can probably do "_unit allowDamage false" as soon as this variable returns true, and "_unit allowDamage true" as soon as it returns false. I would suggest against using "handleDamage" event handlers because they tend to be overridden by ACE.

 

 

If you have any links to any documentation or guides on setting up the medical system in ACE  to do this, that would be much appreciated.

 

ACE does not have a lot of scripting documentation right now, but you can view the source code on Github https://github.com/acemod/ACE3

  • Like 1

Share this post


Link to post
Share on other sites

 

For unconscious units, 

_unit getVariable ["ACE_isUnconscious", false]

will return true.

 

 

You can probably do "_unit allowDamage false" as soon as this variable returns true, and "_unit allowDamage true" as soon as it returns false. I would suggest against using "handleDamage" event handlers because they tend to be overridden by ACE.

 

 

 

ACE does not have a lot of scripting documentation right now, but you can view the source code on Github https://github.com/acemod/ACE3

 

 

I think I may have solved it by playing around a bit with the placement of the Ace Revive and medical modules.

 

I also set respawn to INSTANT, so if it does happen, players can respawn where they died (albeit with a punishment of about a minute).

 

Thank you for your help. I'm going to continue looking at what I did to solve this, and I'll update this post if I find out.

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
Sign in to follow this  

×