So I have been trying to get a PcP script into my dayz servers mainly just as a fun thing to do when bored for the players. So basically I have taken a smokeweed script I use and have altered it to use up Morphine instead and enable a right click option on the morphine to either fix broke legs or shoot up PcP
So here is what I have currently:
Currently it creates a red smoke cloud behind the person instead of green for weed. and uses the morphine item. What I would like to do is reduce visual effects, which I have a general idea on how to do, and actually add a much higher resistance to damage. Such as being able to take shots at 50%to 75% reduced damage actually taken and maybe actually take the damage when it wears off too increase its addictive properties. If anybody knows how to temporarily alter damage taken with a scripting command then it would help greatly.
PS: I dont do drugs xD just wanna have fun ingame with the drugs lol
Any help is greatly appreciated!
So here is what I have currently:
Code:
Flare = "SmokeShellRed" createVehicle position player;
player removeMagazine "ItemMorphine";
if (vehicle player != player) then {
Flare attachTo [vehicle player,[0,0,0.]];
}
else {
Flare attachTo [player,[0,0,0.]];
};
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [1.0, 1.0, -0.03, [0.0, 0.0, 0.0, 0.0], [3.0, 5.0, 9.0, 5.0],[0.4,0.0,0.0, 0.7]];
_hndl ppEffectCommit 1;
sleep 20;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectAdjust [0, 8, 0.8,8,8, 0.2, 1, 0, 0, 0.08, 0.08, 0, 0, 0, 0.77];
_hndl ppEffectEnable true;
_hndl ppEffectCommit 0;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectAdjust [1, 1, 0, [1.5,6,2.5,0.5], [5,3.5,5,-0.5], [-3,5,-5,-0.5]];
_hndl ppEffectCommit 1;
_hndl ppEffectEnable true;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectAdjust [0.01,0.01,true];
_hndl ppEffectCommit 1;
_hndl ppEffectEnable true;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [0.02,0.02,0.15,0.15];
_hndl ppEffectCommit 1;
sleep 20;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectAdjust [1, 1.16, 0.32, 2.56, 0.8, 0.64, 2.64, 0, 0, 1.08, 0.08, 0, 0, 0, 1.77];
_hndl ppEffectEnable true;
_hndl ppEffectCommit 0;
sleep 5;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [1.0, 1.0, -0.02, [9.5, 1.5, 2.5, 0.2], [2.0, 7.0, 6.0, 2.0],[0.4,0.0,0.0, 0.7]];
_hndl ppEffectCommit 1;
sleep 20;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [ 1, 1, 0, [0, 0, 0, -0.31],[1.9, 2.5, 1.64, 0.7],[0.2, 0.1, -0.5, 1.64]];
_hndl ppEffectCommit 0;
Currently it creates a red smoke cloud behind the person instead of green for weed. and uses the morphine item. What I would like to do is reduce visual effects, which I have a general idea on how to do, and actually add a much higher resistance to damage. Such as being able to take shots at 50%to 75% reduced damage actually taken and maybe actually take the damage when it wears off too increase its addictive properties. If anybody knows how to temporarily alter damage taken with a scripting command then it would help greatly.
PS: I dont do drugs xD just wanna have fun ingame with the drugs lol
Any help is greatly appreciated!