Donnovan Posted April 23, 2014 Report Share Posted April 23, 2014 I like to say thankyou to Grafzahl for the Suicide Script. I made is happens faster, and more dramatic. Aditional info: - Player scream sound is in-world and can be heard by other players and zombies. - The gun shot sound, for the player, is the normal gun *ploc* and a personal dramatic gun shot that is not heard in-world. The others just listem the abitual gun *ploc*. https://www.youtube.com/watch?v=PkoWgPlTDWg -Dutchy-, Linux, Rythron and 1 other 4 Link to comment Share on other sites More sharing options...
BAROD Posted April 23, 2014 Report Share Posted April 23, 2014 nice try Link to comment Share on other sites More sharing options...
Rythron Posted April 23, 2014 Report Share Posted April 23, 2014 Nice sound .. were is the script ? Link to comment Share on other sites More sharing options...
Donnovan Posted April 23, 2014 Author Report Share Posted April 23, 2014 Removed. Link to comment Share on other sites More sharing options...
Soul Posted April 24, 2014 Report Share Posted April 24, 2014 make shure to delete the players body when they use the suicide option or you will get into serious desync problems due to to many dead bodies. I know this out of experience! Link to comment Share on other sites More sharing options...
Donnovan Posted April 24, 2014 Author Report Share Posted April 24, 2014 Delete the dead characters in character_data is enough or i also need to restart the server? Link to comment Share on other sites More sharing options...
bFe Posted April 24, 2014 Report Share Posted April 24, 2014 You'll need a restart. Whats the thing that occurs when you hide a body? That might do the trick. Link to comment Share on other sites More sharing options...
Asian Kid Posted May 1, 2014 Report Share Posted May 1, 2014 Update? Link to comment Share on other sites More sharing options...
Donnovan Posted May 1, 2014 Author Report Share Posted May 1, 2014 I was working in my personal Pocket Bike Script: Still missing on the Dramatic Suicide Script: 1) If player is crouched or proned, there is a out of sync beteween sounds and animation, because the player firstly need to stand up. Solution: Check if the player is stand up befor offer the suicide option.Know how to do?: No, but i believe its a simple check like the "_CanDo" check "If (_CanDo) Then {...}" Not sure if player scream can atract zombies: 2) Solution: use a piece of code from Player2/cen bike script that alert zombies in a x meters radius (x will be 35).Know how to do?: Yes. Will try to solve that now. Link to comment Share on other sites More sharing options...
Asian Kid Posted May 1, 2014 Report Share Posted May 1, 2014 I was working in my personal Pocket Bike Script: Still missing on the Dramatic Suicide Script: 1) If player is crouched or proned, there is a out of sync beteween sounds and animation, because the player firstly need to stand up. Solution: Check if the player is stand up befor offer the suicide option. Know how to do?: No, but i believe its a simple check loke the "_CanDo" check "If (_CanDo) Then {...}" Not sure if player scream can atract zombies: 2) Solution: use a piece of code from Player2/cen bike script that alert zombies in a x meters radius (x will be 35). Know how to do?: Yes. Will try to solve that now. Send me the script I add that Link to comment Share on other sites More sharing options...
Donnovan Posted May 1, 2014 Author Report Share Posted May 1, 2014 When i find the solutions, i will release it. Bye. Link to comment Share on other sites More sharing options...
Donnovan Posted May 2, 2014 Author Report Share Posted May 2, 2014 I fixed the problems. Tomorow i will release it. Here a Dramatic video for the Dramatic Suicide Script: http://youtu.be/OOP2IXNaIN0 bFe and Rythron 2 Link to comment Share on other sites More sharing options...
Donnovan Posted May 3, 2014 Author Report Share Posted May 3, 2014 This goes in your custom fn_selfActions.sqf:This is the avaliable options "Retire from Life" and "Confirm Retire from Life!" for the player self actions, that appears when you scrool the mouse wheel.private ["_handGun"]; _handGun = currentWeapon player; if ((_handGun in ["glock17_EP1","M9","M9SD","Makarov","MakarovSD","revolver_EP1","UZI_EP1","Sa61_EP1","Colt1911"]) && (player ammo _handGun > 0) && canStand player && (speed player <= 1) && _canDo) then { if ((is_confirmation == 0) && (s_player_suicide < 0)) then { name_on_menu = "<t color=""#303030"">Retire from Life</t>"; s_player_suicide = player addaction[(name_on_menu),"custom\suicide.sqf",_handGun,0,false,true,"", ""]; }; if ((is_confirmation == 1) && (s_player_suicide_confirm < 0)) then { name_on_menu = "<t color=""#d00020"">Confirm Retire from Life!</t>"; s_player_suicide_confirm = player addaction[(name_on_menu),"custom\suicide.sqf",_handGun,0,false,true,"", ""]; }; } else { if (is_confirmation == 0) then { player removeAction s_player_suicide; }; if (is_confirmation == 1) then { player removeAction s_player_suicide_confirm; }; s_player_suicide = -1; s_player_suicide_confirm = -1; is_confirmation = 0; }; This goes in a new file with the name suicide.sqf in the folder YourMissionFolder/custom/suicide.sqf:This is the file that plays the suicide animation and sounds.if (is_confirmation == 0) then { player removeAction s_player_suicide; is_confirmation = 1; cutText [format["Please, confirm Retire."], "PLAIN DOWN"]; } else { is_confirmation = 0; _state = (getText (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState player >> "actions")); if (_state in ["RifleProneActions","PistolProneActions","CivilProneActions"]) then { player playAction "PlayerStand"; sleep 2; }; if (_state in ["RifleKneelActions","PistolKneelActions","CivilKneelActions"]) then { player playAction "PlayerStand"; sleep 1; }; player addEventHandler ["fired", {player SetDamage 0.9; playSound "finalShot";}]; player playmove "ActsPercMstpSnonWpstDnon_suicide1B"; _sfx="madIncoming"; _nul = [objNull, player, rSAY, _sfx] call RE; sleep 6.8; _dis=35; _sfx="dieScream"; _nul = [objNull, player, rSAY, _sfx] call RE; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; sleep 1.6; player fire currentWeapon player; sleep 0.5; player SetDamage 1.0; }; This goes in the file description.ext in the folder YourMissionFolder/description.ext:Those are the 3 sounds declaration, and if you already have declared sounds in description.ext, you need to add those 3 sound along with the ones you already have there.class CfgSounds { sounds[] = {dieScream, finalShot, madIncoming}; class dieScream { name="dieScream"; sound[]={diescream.ogg,0.8,1}; titles[] = {}; }; class madIncoming { name="madIncoming"; sound[]={madincoming.ogg,0.8,1}; titles[] = {}; }; class finalShot { name="finalShot"; sound[]={finalshot.ogg,0.8,1}; titles[] = {}; }; }; The 3 ogg sounds files in the link bellow must be put in the folder YourMissionFolder: Get the 3 sounds here: Sounds on Tinyupload.com They are diescream.ogg, madincoming.ogg and finalshot.ogg. Rythron and bFe 2 Link to comment Share on other sites More sharing options...
Tobias Solem Posted May 4, 2014 Report Share Posted May 4, 2014 Get the 3 sounds here: http://177.143.248.186:8090/DayZ/ They are diescream.ogg, madincoming.ogg and finalshot.ogg.Link doesn't work. Link to comment Share on other sites More sharing options...
Rythron Posted May 4, 2014 Report Share Posted May 4, 2014 Link doesn't work. http://177.143.248.186:8090/DayZ/diescream.ogg http://177.143.248.186:8090/DayZ/finalshot.ogg http://177.143.248.186:8090/DayZ/madincoming.ogg right click on link and save ;) Donnovan 1 Link to comment Share on other sites More sharing options...
Zgraphz Posted May 4, 2014 Report Share Posted May 4, 2014 doesn't seem to work for me. Link to comment Share on other sites More sharing options...
Donnovan Posted May 5, 2014 Author Report Share Posted May 5, 2014 Here a alternate download link: Sounds on Tinyupload.com Tell me if you find any problem! Thanks! Link to comment Share on other sites More sharing options...
Donnovan Posted May 8, 2014 Author Report Share Posted May 8, 2014 No testers? Link to comment Share on other sites More sharing options...
Rythron Posted May 8, 2014 Report Share Posted May 8, 2014 No testers? working for me ! Only madincoming is the sound i dont use ^_^ Link to comment Share on other sites More sharing options...
Donnovan Posted May 9, 2014 Author Report Share Posted May 9, 2014 Nice, Rythron, I apreciate. Any problem removing the sound? Link to comment Share on other sites More sharing options...
Rythron Posted May 9, 2014 Report Share Posted May 9, 2014 Nice, Rythron, I apreciate. Any problem removing the sound? no not at all why? :mellow: Link to comment Share on other sites More sharing options...
Donnovan Posted May 10, 2014 Author Report Share Posted May 10, 2014 As i expected. But if you had any problem, i could do it for you. Rythron 1 Link to comment Share on other sites More sharing options...
ghostfur Posted May 17, 2014 Report Share Posted May 17, 2014 Donnovan can you help me i got problems with this script i cant find fn_selfActions.sqf ? or do i need to make this file! thats my question Link to comment Share on other sites More sharing options...
Donnovan Posted May 18, 2014 Author Report Share Posted May 18, 2014 Ghost, Where do you have Arma 2 Operation Arrowhead installed? Link to comment Share on other sites More sharing options...
ghostfur Posted May 18, 2014 Report Share Posted May 18, 2014 I have installed it in same map like the epoch server and arma 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now