dsayers19851985 Posted June 22, 2014 Report Share Posted June 22, 2014 is there a way to add a loss of humanity for this suicide script? my files are attached too. description.txt fn_selfActions.txt suicide.txt Link to comment Share on other sites More sharing options...
MattL Posted June 22, 2014 Report Share Posted June 22, 2014 dayzHumanity = [player,-500]; _id = dayzHumanity spawn player_humanityChange; change the -500 to however much you want removed dsayers19851985 1 Link to comment Share on other sites More sharing options...
dsayers19851985 Posted June 22, 2014 Author Report Share Posted June 22, 2014 Fresh Spawn where do I add this into, and will it only take effect (the -500 humanity) after someone executes the suicide script? Thanks Link to comment Share on other sites More sharing options...
MattL Posted June 22, 2014 Report Share Posted June 22, 2014 place it underneath like 31 in the suicide.sqf Link to comment Share on other sites More sharing options...
dsayers19851985 Posted June 22, 2014 Author Report Share Posted June 22, 2014 thanks Fresh Spawn I'll try it now Link to comment Share on other sites More sharing options...
dsayers19851985 Posted June 22, 2014 Author Report Share Posted June 22, 2014 Worked like a charm thanks again Link to comment Share on other sites More sharing options...
xtr3m3 Posted August 6, 2014 Report Share Posted August 6, 2014 plz delete this post! Link to comment Share on other sites More sharing options...
Goon Posted August 19, 2014 Report Share Posted August 19, 2014 i like this idea, But is it not a fast track to bandit, could it work like, if you are +0 humanity it removes the amount to no lower than 0 If your -0 humanity it will take you back to 0 this way both side will suffer from this and may stop fast track Bandit. Many thanks Keith Link to comment Share on other sites More sharing options...
Achmed Posted August 25, 2014 Report Share Posted August 25, 2014 i use a different suicide script, where would the code be added in this one? //Suicide script by Grafzahl edited by axeman to allow coming back from the brink. //File name: suicide.sqf private ["_Secondary","_lostHope","_plEH","_actSuicide"]; _Secondary = currentWeapon player; _plEH = player addEventHandler ["fired", "player SetDamage 1.1"]; _lostHope = time; r_interrupt = false; cutText [format["You think about your family..."], "PLAIN DOWN"]; sleep 2; player playmove "ActsPercMstpSnonWpstDnon_suicide1B"; _actSuicide = 1; while {alive player}do{ if(r_interrupt)exitWith{ player playMoveNow "AmovPercMstpSlowWrflDnon_AmovPsitMstpSlowWrflDnon"; cutText [format["They wouldn't have wanted it to end this way.."], "PLAIN DOWN"]; while{true}do{ if(!((animationState player) in ["AmovPercMstpSlowWrflDnon_AmovPsitMstpSlowWrflDnon"]) && (alive player))exitWith{player removeEventHandler["fired", _plEH];sleep 1;player switchmove "";sleep 1;PVDZE_plr_Save = [player,[],true,true];publicVariableServer "PVDZE_plr_Save";}; }; }; if(time - _lostHope > 2 && _actSuicide < 2)then{ cutText [format["Your little daughter, and what happened to her..."], "PLAIN DOWN"]; _actSuicide = 2; }; if(time - _lostHope > 6 && _actSuicide < 3)then{ cutText [format["You cant take this shit any longer..."], "PLAIN DOWN"]; _actSuicide = 3; }; if(time - _lostHope > 7 && _actSuicide <4)then{ cutText [format["Goodbye cruel world!"], "PLAIN DOWN"]; _actSuicide = 4; }; if(time - _lostHope > 9.2 && _actSuicide > 3)exitWith{ player fire _Secondary; }; sleep .1; }; Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now