View unanswered posts | View active topics It is currently Tue Mar 19, 2024 12:15 am



Reply to topic  [ 1 post ] 
 One-button grenade throw script. 
Author Message
★★★★★
User avatar

Joined: Sat Dec 18, 2010 1:33 am
Posts: 59
Has thanked: 0 time
Been thanked: 1 time
Just something I cooked up a while back.

The script:
Code:
bind "MOUSE3" "use weapon_handgrenade;thirtywaits;+attack;twentywaits;-attack;thirtyfivewaits;lastinv"


You also need these to make it work:
Code:
alias "thirtyfivewaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"

Code:
alias "twentywaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"

Code:
alias "thirtywaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"


Put it in your config.cfg file located in:
C:/program files/steam/steamapps/yoursteamname/half-life/svencoop/config.cfg
(Note, that in 64 bit versions of windows, program files will be named "program files (x86)")
Should look like this when you're done:
Code:
unbindall
alias "twentywaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"
alias "thirtywaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"
alias "thirtyfivewaits" "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;"
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "SPACE" "+jump"
bind "+" "sizeup"
bind "-" "sizedown"
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "=" "sizeup"
bind "[" "invprev"
bind "]" "invnext"
bind "`" "toggleconsole"
bind "a" "+moveleft"
bind "c" "+commandmenu"
bind "d" "+moveright"
bind "e" "+use"
bind "f" "impulse 100"
bind "g" "drop"
bind "h" "dropammo"
bind "k" "kill"
bind "l" "sc_chasecam"
bind "m" "say trail 11 blue"
bind "n" "say rtv"
bind "q" "lastinv"
bind "r" "+reload"
bind "s" "+back"
bind "t" "impulse 201"
bind "v" "+voicerecord"
bind "w" "+forward"
bind "x" "medic"
bind "y" "messagemode"
bind "z" "grenade;npc_findcover"
bind "~" "toggleconsole"
bind "UPARROW" "default_fov 20"
bind "DOWNARROW" "default_fov 100"
bind "LEFTARROW" "+reload"
bind "SHIFT" "+duck"
bind "F5" "snapshot"
bind "F6" "save quick"
bind "F7" "load quick"
bind "F10" "quit prompt"
bind "MWHEELDOWN" "invnext"
bind "MWHEELUP" "invprev"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" "use weapon_handgrenade;thirtywaits;+attack;twentywaits;-attack;thirtyfivewaits;lastinv
bind "PAUSE" "pause"
_snd_mixahead "0.1"
ati_npatch "1.0"
ati_subdiv "2.0"
bgmvolume "1"
bottomcolor "158.459991"
brightness "1.000000"
cl_allowdownload "1"
cl_allowupload "1"
cl_backspeed "400"
cl_cmdbackup "2"
cl_cmdrate "30"
cl_dlmax "128"
cl_download_ingame "1"
cl_forwardspeed "400"
cl_hideadmin "0"
cl_hidextra "0"
cl_himodels "0"
cl_idealpitchscale "0.8"
cl_lc "1"
cl_logocolor "#Valve_Blue"
cl_logofile "lambda"
cl_lw "1"
cl_particles_max "800.000000"
cl_showstats "0"
cl_texture_lod "-0.6"
cl_timeout "60"
cl_updaterate "20"
cl_vsmoothing "0.05"
con_color "180 220 255"
console "1.000000"
crosshair "1.000000"
fps_max "72.0"
fps_modem "0.0"
gamma "2.500000"
gl_dither "0"
gl_flipmatrix "0"
gl_fog "1"
gl_monolights "0"
gl_overbright "0"
gl_polyoffset "4"
hisound "1"
hpk_maxsize "4"
hud_capturemouse "1"
hud_centerid "0"
hud_classautokill "1"
hud_fastswitch "0"
hud_takesshots "0"
hud_weaponautoswitch "1"
joystick "0"
lookspring "0.000000"
lookstrafe "0.000000"
m_filter "1"
m_forward "1"
m_pitch "0.022000"
m_side "0.8"
m_yaw "0.022"
model "Re4Hunk"
MP3FadeTime "2.0"
MP3Volume "1"
mp_decals "300.000000"
name "Supercoke"
net_graph "0"
net_graphpos "1"
net_scale "5"
r_bmodelhighfrac "5.0"
r_detailtextures "0"
s_a3d "0.0"
s_automax_distance "30.0"
s_automin_distance "2.0"
s_bloat "2.0"
s_distance "60"
s_doppler "0.0"
s_eax "0.0"
s_leafnum "0"
s_max_distance "1000.0"
s_min_distance "8.0"
s_numpolys "200"
s_polykeep "1000000000"
s_polysize "10000000"
s_refdelay "4"
s_refgain "0.4"
s_rolloff "1.0"
s_verbwet "0.25"
sensitivity "3.000000"
skin ""
suitvolume "0.25"
sv_aim "0"
sv_voiceenable "1"
team ""
topcolor "88.860001"
viewsize "110"
voice_enable "1"
voice_forcemicrecord "1"
voice_modenable "1"
voice_scale "1"
volume "0.430000"
+mlook
exec userconfig.cfg


Feel free to repost this anywhere, just give me credit.

It might work for other games like Half-Life 2 and L4D, if I ever get off my lazy ass and optimize it for those games I'll be sure to post it here.

Request stick? :D

_________________
How to install player models into Sven Co-op:
viewtopic.php?f=4&t=1262
A better bunny hopping script, made by me:
viewtopic.php?f=25&t=1634
A one-button grenade throwing script for Sven Co-op, made by me:
viewtopic.php?f=4&t=1646


Wed May 30, 2012 12:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.
[ Time : 0.072s | 15 Queries | GZIP : On ]