| 
		
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
		
		
		06 Jul 10, 12:24AM 
(This post was last modified: 06 Jul 10, 04:04PM by Gibstick.)
		
	 
		Inspired by V-Man's [bind MOUSE1 say "YAIYAIYAI"], I have created a working "suicide yell" script. It lets you say something just before you die, when holding down a grenade. Just put this in your autoexec and hold down a nade until you suicide :) bind MOUSE2 [ if $editing [ showmenu editing ] [boomable = 1]; altaction; (sleep 2100 [if (= (boomable) 1) [if (= (curweapon) 6) [say "BOOOOOM!"; boomable = 2]]]); onrelease [boomable = 2]]
Change "BOOOOOM!" to whatever you want. 
Many thanks to Bukz and GeneralDisarray for debug. Of course it's still buggy and says it when you don't want it to sometimes.
 
Edit: There's also a version where you need to press a key to "arm the bomb" but I always forgot to press it so I made this.
	
		
	 
	
	
	
		
	Posts: 269Threads: 11
 Joined: Jun 2010
 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
		
		
		06 Jul 10, 03:22PM 
(This post was last modified: 06 Jul 10, 04:03PM by Gibstick.)
		
	 
		A much less buggy version, will not yell "BOOOOM!" by mistake :D bind MOUSE2 [ if $editing [ showmenu editing ] [boomable = 1]; altaction; (sleep 2100 [if (= (boomable) 1) [if (= (curweapon) 6) [say "BOOOOOM!"; boomable = 2]]]); onrelease [boomable = 2]]
		
	 
	
	
	
		
	Posts: 2,841Threads: 44
 Joined: Jun 2010
 
	
	
		Gibstick, how is that script any different from the top one? You wrote the same thing.
	 
		
	 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
	
		
	Posts: 27Threads: 1
 Joined: Jun 2010
 
	
	
		It does not work with me..?
	 
		
	 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
		Are you holding down MOUSE2 until the grenade explodes? Did you copy paste the whole thing, maybe left off a bracket?
	 
		
	 
	
	
	
		
	Posts: 27Threads: 1
 Joined: Jun 2010
 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
		By all means it should work. Check if there's an existing MOUSE2 bind conflicting.
	 
		
	 
	
	
	
		
	Posts: 60Threads: 2
 Joined: Jun 2010
 
	
		
		
		06 Jul 10, 09:13PM 
(This post was last modified: 06 Jul 10, 09:14PM by -xW-#@bd0u*.)
		
	 
		Gibstick i copy and past your code in auto-exec with right button and saved it. is it the right method?
 
		
	 
	
	
	
		
	Posts: 118Threads: 6
 Joined: Jun 2010
 
	
	
		 (06 Jul 10, 09:13PM)-xW-#@bd0u* Wrote:  Gibstick i copy and past your code in auto-exec with right button and saved it.is it the right method?
 
yes.
	 
		
	 
	
	
	
		
	Posts: 60Threads: 2
 Joined: Jun 2010
 
	
	
		 (06 Jul 10, 09:14PM)spamma Wrote:   (06 Jul 10, 09:13PM)-xW-#@bd0u* Wrote:  Gibstick i copy and past your code in auto-exec with right button and saved it.is it the right method?
 yes.
 
thank you :)
	 
		
	 
	
	
	
		
	Posts: 72Threads: 4
 Joined: Jun 2010
 
	
	
		Hehe, I'm gonna have fun with this one.Thanks :D
 
		
	 
	
	
	
		
	Posts: 27Threads: 1
 Joined: Jun 2010
 
	
	
		I got it working =D  
 ____________
 
		
	 
	
	
	
		
	Posts: 162Threads: 8
 Joined: Jun 2010
 
	
		
		
		08 Jul 10, 07:19AM 
(This post was last modified: 08 Jul 10, 07:33AM by Versace.)
		
	 
		Dam, I /bind ingame and now I can't get rid of it unless I reset all settings.It still says BOOM when you don't suicide.
 Just says it out of no where lol.
 
		
	 
	
	
	
		
	Posts: 1,438Threads: 54
 Joined: Jun 2010
 
	
	
		Bullet, just comment out all the lines with // in your autoexec.cfg
	 
		
	 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
		Have a look in your saved.cfg and get rid of it. Bad news, I just nadespammed a whole match with this script and it yelled every time. So, don't nade spam. If you throw grenades gracefully you'll be fine.
	 
		
	 
	
	
	
		
	Posts: 162Threads: 8
 Joined: Jun 2010
 
	
	
		All I could find in saved.cfg is bind "MOUSE2" [ if $editing [ showmenu editing ] [ altaction ] ]
	 
		
	 
	
	
	
		
	Posts: 3,462Threads: 72
 Joined: Jun 2010
 
	
	
		Plus, not everybody knows what you did, so no use, they wont know what all of this BOOOOM is about. Also, helpful tip, if you are on a mac, lock all of your config files once you get the settings where you want them. This will stop the game from overwriting them, you can still change settings in game, but they wont be saved (as the game trys to save settings on the game quitting). Make sure you have your settings the way you want before using this though. Its a nice way of not getting that annoying universaldelta 1 error (I dont know if anyone knows about it) and making sure you dont screw up your binds.
	 
		
	 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
		Don't use this script, it spams the chat like hell if you nadespam.
	 
		
	 
	
	
	
		
	Posts: 162Threads: 8
 Joined: Jun 2010
 
	
	
		I can't freaking remove it :(I binded it in game by typing /bind "THE COMMAND HERE"
 
		
	 
	
	
	
		
	Posts: 2,841Threads: 44
 Joined: Jun 2010
 
	
	
	
		
	Posts: 1,823Threads: 20
 Joined: Jun 2010
 
	
	
		Nah, all he has to do is  bind MOUSE2 [ if $editing [ showmenu editing ] [ altaction ] ]
		
	 
	
	
	
		
	Posts: 162Threads: 8
 Joined: Jun 2010
 
	
	
		Thanks Gibstick, Worked a treat.
	 
		
	 
	
	
	
		
	Posts: 94Threads: 5
 Joined: Jun 2010
 
	
	
		I'm loving the scripts people are coming up with now.
	 
		
	 
	
	
	
		
	Posts: 1,438Threads: 54
 Joined: Jun 2010
 
	
	
		Gibstick, V-Man, Gen D and Bukz are the bomb.* DrauL thinks they rule.
 
		
	 
	
	
	
		
	Posts: 100Threads: 6
 Joined: Jun 2010
 
	
	
		spontaneously_combust = [sensitivity 1000; loop sc 50 [say AHHHHHH!!!!!!11!!11one!one!!!1]; sleep 5000 [sensitivity $oldsens; quit]]bind MOUSE1 [spontaneously_combust]
end of discussion.
	 
		
	 |