[FUN] Brony Healing

Jokaru

Well-Known Member
Brony Healing
v1.0

This is for Epoch only, but can be done for dayz, with some changes.​

What it does: If you Admin on Epoch you probably seeing "FoodCanHerpy" = Cupcakes. You cant find them in game, but you can get it from admin.... So Who eat this delicious Cupcakes instantly heal + heal after 5 min (you can edit this, or remove), plus some FIM music plays and pony on their screen and some rainbow from... xD

What do You need:
variables.sqf
init.sqf
player_eat.sqf
compiles.sqf
description.ext
Some files from here:
http://www.mediafire.com/download/6bf9lz934393d83/muffins.paa
http://www.mediafire.com/download/z3hbnxrk2kvmtiz/muffinssound.ogg

How to install:
1.
Grab variables.sqf from your dayz_code.pbo and put in whatyouwantfolder in missions;

2. In init.sqf find and change variables.sqf line
Code:
call compile preprocessFileLineNumbers "whatyouwantfolder\variables.sqf";

3. In init.sqf find and change compiles.sqf line
Code:
call compile preprocessFileLineNumbers "whatyouwantfolder\compiles.sqf";

4. In your "whatyouwantfolder\variables.sqf" find this
Code:
badfood = ["FoodBioMeat","FoodCanUnlabeled"];
right after that line add
Code:
muffins = ["FoodCanHerpy"];

So you have
Code:
// Food with increased chance for infection.
badfood = ["FoodBioMeat","FoodCanUnlabeled"];
muffins = ["FoodCanHerpy"];

5. Grab player_eat.sqf from your dayz_code.pbo and put in "whatyouwantfolder\player_eat.sqf"
6. In "whatyouwantfolder\player_eat.sqf" find
Code:
if (_badfood and (random 2 < 1)) then {
    r_player_infected = true;
    player setVariable["USEC_infected",true,true];
};

Add right after that line
Code:
if (_hasmuffins) then {
    99 cutRsc ["MUFFINS","PLAIN"];
    100 cutText ["It's Pony time!","PLAIN DOWN"]; titleFadeOut 4;
    systemChat ("It's Pony time!");
    playSound "muffinssound";
    _smoke2 = "SmokeShellBlue" createVehicle (position player);
    _smoke2 attachTo [vehicle player,[0,0,1]];
    _smoke3 = "SmokeShellGreen" createVehicle (position player);
    _smoke3 attachTo [vehicle player,[0,0,1]];
    _smoke6 = "SmokeShellRed" createVehicle (position player);
    _smoke6 attachTo [vehicle player,[0,0,1]];
    sleep 15;
    99 cutText ["", "PLAIN"];
    dayz_sourceBleeding = objNull;
    r_player_blood = r_player_bloodTotal;
    r_player_inpain = false;
    r_player_infected = false;
    r_player_injured = false;
    dayz_hunger = 0;
    dayz_thirst = 0;
    dayz_temperatur = 37;
    r_fracture_legs = false;
    r_fracture_arms = false;
    r_player_dead = false;
    r_player_unconscious = false;
    r_player_loaded = false;
    r_player_cardiac = false;
    r_player_lowblood = false;
    r_player_timeout = 0;
    r_handlercount = 0;
    r_interrupt = false;
    r_doLoop = false;
    r_drag_sqf = false;
    r_self = false;
    r_action = false;
    r_action_unload = false;
    r_player_handler = false;
    r_player_handler1 = false;
    disableUserInput false;
    R3F_TIRED_Accumulator = 0;
    _selection = 'legs';
    _damage = 0;
    player setHit[_selection,_damage];
    player setVariable['NORRN_unconscious',false,true];
    player setVariable['USEC_infected',false,true];
    player setVariable['USEC_injured',false,true];
    player setVariable['USEC_inPain',false,true];
    player setVariable['USEC_isCardiac',false,true];
    player setVariable['USEC_lowBlood',false,true];
    player setVariable['USEC_BloodQty',12000,true];
    player setVariable['unconsciousTime',0,true];
    player setVariable ['hit_legs',0,true];
    player setVariable ['hit_hands',0,true];
    player setVariable['medForceUpdate',true,true];
    player setdamage 0;
    resetCamShake;
    systemChat ('You was healing by Magic!');
    systemChat ('After 5 min you will be healed by Magic!'); //if you don't want healing after 5 min remove from this
    sleep 300;
    dayz_sourceBleeding = objNull;
    r_player_blood = r_player_bloodTotal;
    r_player_inpain = false;
    r_player_infected = false;
    r_player_injured = false;
    dayz_hunger = 0;
    dayz_thirst = 0;
    dayz_temperatur = 37;
    r_fracture_legs = false;
    r_fracture_arms = false;
    r_player_dead = false;
    r_player_unconscious = false;
    r_player_loaded = false;
    r_player_cardiac = false;
    r_player_lowblood = false;
    r_player_timeout = 0;
    r_handlercount = 0;
    r_interrupt = false;
    r_doLoop = false;
    r_drag_sqf = false;
    r_self = false;
    r_action = false;
    r_action_unload = false;
    r_player_handler = false;
    r_player_handler1 = false;
    disableUserInput false;
    R3F_TIRED_Accumulator = 0;
    _selection = 'legs';
    _damage = 0;
    player setHit[_selection,_damage];
    player setVariable['NORRN_unconscious',false,true];
    player setVariable['USEC_infected',false,true];
    player setVariable['USEC_injured',false,true];
    player setVariable['USEC_inPain',false,true];
    player setVariable['USEC_isCardiac',false,true];
    player setVariable['USEC_lowBlood',false,true];
    player setVariable['USEC_BloodQty',12000,true];
    player setVariable['unconsciousTime',0,true];
    player setVariable ['hit_legs',0,true];
    player setVariable ['hit_hands',0,true];
    player setVariable['medForceUpdate',true,true];
    player setdamage 0;
    resetCamShake; //to this
};
Then add this
Code:
_hasmuffins = _itemorignal in muffins;
Right after this
Code:
_hasoutput = _itemorignal in food_with_output;


7. Now grab compiles.sqf from your dayz_code.pbo and change
Code:
    player_eat =                compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_eat.sqf";
to this
Code:
    player_eat =                compile preprocessFileLineNumbers "whatyouwantfolder\player_eat.sqf";

8. description.ext - OPEN! And add right after your load screen

Code:
onPauseScript = "";
loadScreen = "load.jpg";

This

Code:
class RscTitles
{
titles[] = {"MUFFINS"};

class MUFFINS {
  idd = -1;
  movingEnable = 0;
  duration = 10;
  fadein = 2;
  fadeout = 2;
  name="MUFFINS";
  controls[]={"Picture"};
  class Picture {
    x = safezoneX; y = safezoneY; w = safezoneW; h = safezoneH;
    text="muffins.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};
};

now find

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="";
};

After that add
Code:
class CfgSounds
{
sounds[] ={muffinssound};

class muffinssound
    {
    name="muffinssound";
    sound[]={muffinssound.ogg,1,1};
    titles[] = {};
    };
};

9. Put files in your mission
http://www.mediafire.com/download/6bf9lz934393d83/muffins.paa
http://www.mediafire.com/download/z3hbnxrk2kvmtiz/muffinssound.ogg

YAY!!! You install this!
If you need help Click Here!
 
Last edited:
Back
Top