Jump to content

[RELEASE] Morphine - nice drug


GaspArt

Recommended Posts

Hello guys!
Wanna start with special thanks for @FragZ with his cool scripts, what give ability to harvest and smoke weed.

Then I thought, that Morphine is drug too, so why it dont make for players some drug effects. 
So I found morphine file, added there FragZ's glithces of weed, changed time and made a liiiiitle funny script.
http://www.youtube.com/watch?v=PCmXMnDA0HY
So setup intructions:
1. U need to have custom compiles.sqf, open it and find strings:

player_medMorphine = compile preprocessFileLineNumbers "z\addons\dayz_code\medical\publicEH\medMorphine.sqf";

and change it to:

player_medMorphine = compile preprocessFileLineNumbers "scripts\medical\publicEH\medMorphine.sqf";

NEXT

Find:

fnc_usec_damageActions = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageActions.sqf";

and change it to:
 

fnc_usec_damageActions = compile preprocessFileLineNumbers "scripts\medical\fn_damageActions.sqf";

2. Download attached file and put it in mpmission folder.
3. PROFIT!

P.S. If u want change folders, dont forget change paths in:
Compiles.sqf

fn_damageActions.sqf

morphine.sqf


All credits to 
 FragZ !!!

Thx for attention! :)

Download link: 
http://goo.gl/hxHnQq

Link to comment
Share on other sites

The effect should've been default, well spotted. I've reduced the effect to something a little less zany for one minute.

// medMorpehe.sqf
private ["_array","_unit","_medic","_display","_control","_id"];
disableserialization;
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;

if ((_unit == player) || (vehicle player != player)) then {
	r_fracture_legs = false;
	r_fracture_arms = false;
	_unit setHit["legs",0];
	_unit setHit["hands",0];
	
	//Ensure Control is visible
	_display = uiNamespace getVariable 'DAYZ_GUI_display';
	_control = 	_display displayCtrl 1203;
	_control ctrlShow false;

    [] spawn {
            Remove_Drug_effects =
            {
                    {
                            ppEffectDestroy _x;
                    } forEach (_this select 0);
                    ppEffectDestroy ppe2;
                    ppEffectDestroy ppe3;
                    setaperture 0;
                    "dynamicBlur" ppEffectAdjust [0];
                    "dynamicBlur" ppEffectCommit 16;
                    "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1],  [1, 1, 1, 0.0]];
                    "colorCorrections" ppEffectCommit 0;
            };
            _time = time;
            _effects = [];
            while {true} do
            {
                    ppe2 = ppEffectCreate ["chromAberration", 1555];
                    _effects = _effects + [ppe2];
                    ppe2 ppEffectAdjust [0.1,0.01,true];
                    ppe2 ppEffectCommit 1;
                    ppe2 ppEffectEnable true;
                    ppe3 = ppEffectCreate ["radialBlur", 1555];
                    _effects = _effects + [ppe3];
                    ppe3 ppEffectEnable true;
                    ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15];
                    ppe3 ppEffectCommit 1;
                    if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;};
            };
    };
	// _id = false spawn dayz_disableRespawn;
};

Thanks for the share. Beans.

Link to comment
Share on other sites

The effect should've been default, well spotted. I've reduced the effect to something a little less zany for one minute.

// medMorpehe.sqf
private ["_array","_unit","_medic","_display","_control","_id"];
disableserialization;
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;

if ((_unit == player) || (vehicle player != player)) then {
	r_fracture_legs = false;
	r_fracture_arms = false;
	_unit setHit["legs",0];
	_unit setHit["hands",0];
	
	//Ensure Control is visible
	_display = uiNamespace getVariable 'DAYZ_GUI_display';
	_control = 	_display displayCtrl 1203;
	_control ctrlShow false;

    [] spawn {
            Remove_Drug_effects =
            {
                    {
                            ppEffectDestroy _x;
                    } forEach (_this select 0);
                    ppEffectDestroy ppe2;
                    ppEffectDestroy ppe3;
                    setaperture 0;
                    "dynamicBlur" ppEffectAdjust [0];
                    "dynamicBlur" ppEffectCommit 16;
                    "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1],  [1, 1, 1, 0.0]];
                    "colorCorrections" ppEffectCommit 0;
            };
            _time = time;
            _effects = [];
            while {true} do
            {
                    ppe2 = ppEffectCreate ["chromAberration", 1555];
                    _effects = _effects + [ppe2];
                    ppe2 ppEffectAdjust [0.1,0.01,true];
                    ppe2 ppEffectCommit 1;
                    ppe2 ppEffectEnable true;
                    ppe3 = ppEffectCreate ["radialBlur", 1555];
                    _effects = _effects + [ppe3];
                    ppe3 ppEffectEnable true;
                    ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15];
                    ppe3 ppEffectCommit 1;
                    if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;};
            };
    };
	// _id = false spawn dayz_disableRespawn;
};

Thanks for the share. Beans.

Thx, will check it in 60 minutes!

Artem, po russki shpilsih?

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...