[Release] Church heal

Merg

Well-Known Member
Church healing
V. 0.1
What it does:
This script makes the players able to heal their infection in churches with gods powers by a scroll menu. The normal player will just get a infection heal while heroes get a infection + Blood heal. Bandits gets the infection heal but a slap after it :)
Requirements:
Notepad++ and PBO manager.


Easy = <10 minutes

Installation:

Step 1:

You need your compiles.sqf and fn_selfactions.sqf from the dayz_code.sqf folder and put them in your mission.pbo

If you don't have this already, then please do it. Follow a tutorial like Krixies Self Bloodbag.

Step 2:
After you have doe that, add this code to the bottom of your fn_selfactions.sqf.

Code:
//-------------------------------Mergs Church cure-------------------------------------

private["_playerPos","_canCure"];
_playerPos = getPosATL player;
_canCure = count nearestObjects [_playerPos, ["Land_Church_01","Land_Church_03","Land_Church_02","Land_Church_02a"], 20] > 0;

if (_canCure) then {
if (s_church_cure < 0) then {
s_church_cure = player addaction[("<t color=""#FF0000"">" + ("Cure Infection") +"</t>"),"church_cure.sqf"];
};
} else {
player removeAction s_church_cure;
s_church_cure = -1;
};
//-----------------------------Mergs Church cure end-------------------------------------

Step 3:

After this download the files (Link at bottom of the page),extract them and put them in your mission.pbo ROOT folder.
Step 4:


Now add the following lines in description.ext

After this:
Code:
class RscPicture
{
    access=0;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="TahomaB";
    sizeEx=0;
    lineSpacing=0;
    text="";
};

Add this:
Code:
class CfgSounds
{
    sounds[] =
    {
    cureEffect
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={cure_effect.ogg,0.9,1};
    titles[] = {};
    };
};
Save and close.

Step 5:
If you are using a ANTIHACK, Make sure to whitelist:
Code:
s_church_cure
That's it. Pack your Pbo's and restart your server.
Credits:

- ebay - For helping me with a couple of problems.
- Krixie and Dami - I copied a couple of lines from their projects, Self Bloodbag and Disable sidechat.

 
Last edited:
CHANGELOG NO. 1:

- Added a post processing effect to the script
- Some small changes
 
Back
Top