loki-hellhole Posted May 16, 2015 Report Share Posted May 16, 2015 i am working on a mod so people can crack a safe/lockbox with a few tools on ur person :) its close to being done a few more tests then i show ya Link to comment Share on other sites More sharing options...
Buck0 Posted May 17, 2015 Report Share Posted May 17, 2015 Something i was given a LONG time ago private ["_obj"]; _CrackTime = 180; // Time in seconds it takes to crack a safe. _CrackOdds = 20; // Percent chance out of 100 to crack the safe. // ------- CONFIG END ------- _ctTool = {_x == "ItemToolbox"} count items player; _ctCrow = {_x == "ItemCrowbar"} count items player; _ctWire = {_x == "ItemHotwireKit"} count magazines player; _obj = _this select 3; {player removeAction _x} forEach s_player_combi;s_player_combi = []; if ((_ctTool == 0) || (_ctCrow == 0) || (_ctWire == 0)) exitWith {cutText [format["You need a toolbox, crowbar, and hotwire kit to crack a safe."], "PLAIN DOWN"];}; if ((_ctTool > 0) && (_ctCrow > 0) && (_ctWire > 0)) then { startcracking = true; player playActionNow "Medic"; _dis=10; _sfx = ""; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; DZE_ActionInProgress = true; r_interrupt = false; _animState = animationState player; r_doLoop = true; _started = false; _finished = false; _overallTime = time; while {r_doLoop} do { [player,_sfx,0,false,_dis] call dayz_zombieSpeak; _animState = animationState player; _isMedic = ["medic",_animState] call fnc_inString; if (_isMedic) then { _started = true; }; if(!_isMedic && !r_interrupt && (time - _overallTime) < _CrackTime) then { player playActionNow "Medic"; _isMedic = true; }; if (_started && !_isMedic && (time - _overallTime) > _CrackTime) then { r_doLoop = false; _finished = true; lastBloodbag = time; }; if (r_interrupt) then { r_doLoop = false; }; sleep 0.1; }; if (_finished) then { if ((round(random 100)) < _CrackOdds) then { dayz_combination = _obj getVariable["CharacterID","0"]; dayz_selectedVault = _obj; _obj spawn player_unlockVault; player removeMagazine "ItemHotwireKit"; cutText [format["You have cracked the safe!"], "PLAIN DOWN"]; DZE_ActionInProgress = false; startcracking = false; }else{ cutText [format["You have failed to cracked the safe!"], "PLAIN DOWN"]; player removeMagazine "ItemHotwireKit"; DZE_ActionInProgress = false; startcracking = false; }; } else { r_interrupt = false; player switchMove ""; player playActionNow "stop"; cutText [format["You have stopped cracking the safe!"], "PLAIN DOWN"]; startcracking = false; DZE_ActionInProgress = false; }; }; Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 17, 2015 Author Report Share Posted May 17, 2015 thanks dude Link to comment Share on other sites More sharing options...
XXXAKMXXX Posted May 17, 2015 Report Share Posted May 17, 2015 sorry to sound like a noob.how would you call that.thanks Link to comment Share on other sites More sharing options...
Buck0 Posted May 17, 2015 Report Share Posted May 17, 2015 write up something for your fn self actions, put it somewhere in the section relating to unlocking a safe Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 17, 2015 Author Report Share Posted May 17, 2015 yer like buck said that only like 5 % of it .. there a load more code to add and use dude i have my code working but need to fix a few other bits on mine to get it right Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 17, 2015 Author Report Share Posted May 17, 2015 got it working on safes and lockboxes now trying to get it to work on doors :) Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 17, 2015 Author Report Share Posted May 17, 2015 pop on teamspeak if you would like to ask stuff 5.68.112.253 Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2015 Report Share Posted May 17, 2015 How comes this is not deleted? It's neither a Realease, nor a ask for Help, it's just somebody pointing out nana i got something that you haven't got.. Link to comment Share on other sites More sharing options...
Buck0 Posted May 17, 2015 Report Share Posted May 17, 2015 I could write up a release for the code i posted, but i dont remember who gave it to me Doesn't seem right to post it without some form of credits Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 18, 2015 Author Report Share Posted May 18, 2015 its not like that at all dude ... i will be posting it all when its done Link to comment Share on other sites More sharing options...
DasBoot Posted May 19, 2015 Report Share Posted May 19, 2015 How comes this is not deleted? It's neither a Realease, nor a ask for Help, it's just somebody pointing out nana i got something that you haven't got.. How is this bragging about what he has? He's showing what he's working on, not putting it in anybodies face. It just seems like you're salty because you don't have this script. loki-hellhole 1 Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 19, 2015 Author Report Share Posted May 19, 2015 How is this bragging about what he has? He's showing what he's working on, not putting it in anybodies face. It just seems like you're salty because you don't have this script. THANKS DUDE :) HAPPY YOU LIKED IT Link to comment Share on other sites More sharing options...
Hache1 Posted May 19, 2015 Report Share Posted May 19, 2015 I would like to point out how wrong UKMartin is about this post! After joining loki's TeamSpeak and seeing His work in action this script is Brilliant and we will be using it on are server with his consent! So if you would like to come over to ZeroDayz Server and check it out it works great. I would also recommend jumping on Loki's TeamSpeak and talking with him if you are interested in using this script. He has been very helpful with are server and was a pleasure to chat with. Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 19, 2015 Author Report Share Posted May 19, 2015 I would like to point out how wrong UKMartin is about this post! After joining loki's TeamSpeak and seeing His work in action this script is Brilliant and we will be using it on are server with his consent! So if you would like to come over to ZeroDayz Server and check it out it works great. I would also recommend jumping on Loki's TeamSpeak and talking with him if you are interested in using this script. He has been very helpful with are server and was a pleasure to chat with. THANKS MATE :) Link to comment Share on other sites More sharing options...
Gr8 Posted May 19, 2015 Report Share Posted May 19, 2015 Seems like a great Idea, I will fiddle with this on my test server. Link to comment Share on other sites More sharing options...
Buck0 Posted May 20, 2015 Report Share Posted May 20, 2015 Seems like a great Idea, I will fiddle with this on my test server. I used it for a few months, ended up having players quit due to being able to loose everything they had gained not worth it imo Link to comment Share on other sites More sharing options...
Gr8 Posted May 20, 2015 Report Share Posted May 20, 2015 I used it for a few months, ended up having players quit due to being able to loose everything they had gained not worth it imo That is correct, I have 0000 reset, but thats controllable by the safe owner. Cracking safes shouldn't be as easy as unlocking vehicles. Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 21, 2015 Author Report Share Posted May 21, 2015 its not as easy as unlocking a vehicle... you need 3 tools you pick them .. and there is a chance rate on it and losing a tool item :) so it not going to be easy at all but even tho you have the reset 0000 ... people have to wait for them to pop up on map :) Gr8 1 Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 21, 2015 Author Report Share Posted May 21, 2015 Btw guys and girls sorry its taken me a little longer my kid is not well so am having to sit back from them a few days as i have to look after her sorry :( Link to comment Share on other sites More sharing options...
Buck0 Posted May 21, 2015 Report Share Posted May 21, 2015 idk why your bothering, the script i posted does exactly what your describing Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 21, 2015 Author Report Share Posted May 21, 2015 but its not mine dude thats why if we use urs can not give cred to the dev that made it and i like doing it mate thats why Link to comment Share on other sites More sharing options...
SchwEde Posted May 21, 2015 Report Share Posted May 21, 2015 give me second, i have a script where you are able to crack safes with a hotwire kit ;) Will release this now :) Just need to check how i did it EDIT: There you go Buck0 1 Link to comment Share on other sites More sharing options...
loki-hellhole Posted May 21, 2015 Author Report Share Posted May 21, 2015 close mine plz thanks Link to comment Share on other sites More sharing options...
Saltzman Posted June 4, 2015 Report Share Posted June 4, 2015 i am working on a mod so people can crack a safe/lockbox with a few tools on ur person :) its close to being done a few more tests then i show ya The safes were supposed to be the only way to keep your items safe...... why would you want to change that??? :huh: Link to comment Share on other sites More sharing options...