Added a check for a broken leg.
This commit is contained in:
parent
5a871c6fd5
commit
39daa94345
4
Changelog.txt
Normal file
4
Changelog.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
Verson 1.1
|
||||||
|
|
||||||
|
Added code to stop the autorun script if the player has injuries to the legs, abdomen or diaphragm.
|
@ -2,11 +2,16 @@
|
|||||||
Adapted from code written by Exile Mod team.
|
Adapted from code written by Exile Mod team.
|
||||||
By Ghostrider-DbD-
|
By Ghostrider-DbD-
|
||||||
For DeathBeforeDishonorClan
|
For DeathBeforeDishonorClan
|
||||||
|
Last Update 8/13/17
|
||||||
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
||||||
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_canRun = (vehicle player == player && !(surfaceIsWater (getPos player)) && !((damage player) >= 0.5));
|
private["_legsHit","_canRun","_allHitPointsDamage","_index"];
|
||||||
|
_legsHit = (vehicle player) getHitPointDamage "HitLegs";
|
||||||
|
_abdHit = (vehicle player) getHitPointDamage "HitAbdomen";
|
||||||
|
_diaphragmHit = (vehicle player) getHitPointDamage "HitDiaphragm";
|
||||||
|
_injured = if (_legsHit > 0.25 || _abdHit > 0.25 || _diaphragmHit > 0.25) then {true} else {false};
|
||||||
|
_canRun = (vehicle player == player && !(surfaceIsWater (getPos player)) && !((damage player) >= 0.5) && !(_injured) );
|
||||||
_canRun
|
_canRun
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
epochmod Autorun Version 1.0 for Epochmod for Arma 3 version 0.5.0 + and Arma 3 V 1.70 +.
|
epochmod Autorun Version 1.1 for Epochmod for Arma 3 version 0.5.0 + and Arma 3 V 1.70 +.
|
||||||
|
|
||||||
This is a simple script that adds an autorun function to epoch.
|
This is a simple script that adds an autorun function to epoch.
|
||||||
I have tried to make installation as simple as possible so that this is plug and play.
|
I have tried to make installation as simple as possible so that this is plug and play.
|
||||||
|
Loading…
Reference in New Issue
Block a user