Nemaconz Posted October 3, 2014 Report Share Posted October 3, 2014 Just saw someone posted on this thread and realized that I posted in it a few months ago making a suggestion about killing yourself with a bazooka, well since that suggestion I actually wrote a simple script to kill yourself as a suicide bomber, at first I would have the person use a JDAM to kill themselves but that was WAY to OP. So I gave them a grenade instead and it works beautifully. I'll give it to you guys, if any of you use an action menu script, just add this to it: Put this SuicideBomber.sqf into your tools folder in the ActionMenu file: _itemsPlayer = items player; player playActionNow "PutDown"; r_interrupt = true; sleep 1; _object = "SH_125_HE" createVehicle (position player); _object setVariable ["ObjectID", "1", true]; _object setVariable ["ObjectUID", "1", true]; _object attachto [player,[0.0,3.0,2.5]]; sleep 1; detach _object; player reveal _object; cutText [format["That'll fix their asses!"], "PLAIN DOWN"]; r_interrupt = false; player switchMove ""; player playActionNow "stop"; Then in the actionmenu_main.sqf in the root of the ActionMenu folder put this entry: ["Suicide Bomber", [6], "", -5, [["expression", format[EXECscript1,"SuicideBomber.sqf"]]], "1", "1"], under the ActionMenua array. Have fun! Link to comment Share on other sites More sharing options...
poweredbypot Posted October 18, 2014 Report Share Posted October 18, 2014 Would it be possible to explain how to add item requirements to right click options inside config.sqf? I am trying to merge over all my other RC's to this method and most of them worked flawlessly but they only call the script, I am having a hardtime moving over the Zombie shield generator script and keeping it fully functioning. It has requirements inside its condition to include the required parts instead of them being checked inside the script itsself. The line reads like this in its default state: ["PartEngine","Zombie Shield","[""Garbage_container"",[""ItemToolbox"",""ItemEtool"],[[""ItemPole"", 2],[""metal_panel_kit"", 2],[""PartEngine"",2],[""ItemBriefcase100oz"", 2]],[0,3,0.5]] execVM ""custom\PlotForLifev2\player_build.sqf"";","true"], The action option appears and it even successfully builds the generator, but it completely bypasses the requirements for the additional parts or the tools and simply builds it with only the engine used to trigger the script. Your script is awesome so far, and if this isn't something you can help with I understand but any advice would be much appreciated. Link to comment Share on other sites More sharing options...
poweredbypot Posted October 26, 2014 Report Share Posted October 26, 2014 please halp me bump! Link to comment Share on other sites More sharing options...
Motoboss Posted December 21, 2014 Report Share Posted December 21, 2014 Thank you so much for these scripts..Ive been searching for a week for a great right click action suicide and deploy bike..Yours are by far the best straight forward and easy to understand!! Cheers to you :) Link to comment Share on other sites More sharing options...
sampson42002 Posted January 9, 2015 Report Share Posted January 9, 2015 Thanks alot it works great for me and very easy to install. Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted March 5, 2015 Report Share Posted March 5, 2015 Looking to see How I can get this working with another ui_selectslot, since this script is the only one in a million with a different selectslot script. I either use this or use my other 20+ script that use my other ui_select slots. Anyone got a fix for this? Link to comment Share on other sites More sharing options...
mwood180 Posted March 9, 2015 Report Share Posted March 9, 2015 Looking to see How I can get this working with another ui_selectslot, since this script is the only one in a million with a different selectslot script. I either use this or use my other 20+ script that use my other ui_select slots. Anyone got a fix for this? hey idk if there would be a better way to do it, but i just merged the two files, then changed the path in the overwrites\click_action\init.sqf to my original one in my custom folder, seems to be working great, have another question relating to suicide, got it working almost flawlessly, suicide works in the sense that you die, although the animation works, there is no report from the gun :/ so you see the recoil just no final *bang* which would be awesome, anyone else able to comfirm this? Link to comment Share on other sites More sharing options...
dzrealkiller Posted March 18, 2015 Report Share Posted March 18, 2015 How would I add this to my extra_rc.hpp ? I want to add the suicide in there and the overwrite files are messing with a lot of my stuff :( Link to comment Share on other sites More sharing options...
SmokeyBR Posted March 18, 2015 Report Share Posted March 18, 2015 leave overwrites part out erase any calls for files in overwrites path inside suicide folder put the right click action for every gun u want to have suicide on it something like... class glock17_EP1 { class suicide { text = "Suicide"; script = "execVM 'path\suicide\suicide.sqf'"; }; }; and so on... should work, ive done it before, but you might have to figure the logic by yourself, getting this from memory Link to comment Share on other sites More sharing options...
Honey Bee Posted February 27, 2017 Report Share Posted February 27, 2017 Is it possible to execute this script in epoch? because rightklick puts weapon on ground. 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