Jump to content

Recommended Posts

Hello,

i made a recovery addon, nothing special, but i want to share it with you (the community).

Features:
This addon enables a recovery system which heal the wounded player by 1 percent or 0.01 damage each 90 seconds. If the damage of the player changes in the 90sec loop, the recovery will skip.

Installation :
-Extract the content of the archive into your Arma 3 installation.
-Launch arma with the shortcut -mod=@mdh_recovery

Debug Mode showcase:



release 01 - v1.0:
-Initial release

ScriptCode:
//////////////////////////////////////////////////////////////////
// Script for Arma 3 - recovery.sqf
// Created by: Moerderhoschi
//////////////////////////////////////////////////////////////////

if (isDedicated) exitWith {};

sleep 5;

waitUntil {sleep 1; player == player};

_reg = 0.01;
_time = 90;

while {true} do
{
waitUntil {sleep 1; alive player};
waitUntil {sleep 1; damage player > 0};

_damage = damage player;
sleep _time;

if (damage player == _damage) then
{
_damage = damage player;
_body = player getHit "body";
_head = player getHit "head";
_hands = player getHit "hands";
_legs = player getHit "legs";

player setDamage (_damage - _reg);
if (damage player > 0) then
{
player setHit ["head", (if ((_head - _reg) < 0) then {0} else {(_head - _reg)})];
player setHit ["body", (if ((_body - _reg) < 0) then {0} else {(_body - _reg)})];
player setHit ["hands", (if ((_hands - _reg) < 0) then {0} else {(_hands - _reg)})];
player setHit ["legs", (if ((_legs - _reg) < 0) then {0} else {(_legs - _reg)})];
};
};
};

Download:

[v1.00]
Moerderhoschi's Place
Directlink: MDH Recovery Addon

[v1.00]
banner-420x120.png

[v1.00]
news_download_a3_3.png

regards
Moerderhoschi Edited by Moerderhoschi
added downloadlinks of PlayWithSix and Armaholic

Share this post


Link to post
Share on other sites

New mod v1.0 available at withSIX. Download now by clicking:

banner-420x120.png

@Moerderhoschi;

You are now able to manage your own promo pages of your content on our web platform and publish new content yourself.

To do so, please hit 'this is me' button on the page while logged in and follow the quick and safe claim procedure to get connected to your work.

For now you can send new content or releases our way by using any filesharing service and add your notification at getsatisfaction.withsix.com.

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

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

×