weapons toggle script

Games such as RTCW, Call of Duty, Quake ect.

Moderators: [AsC]Frags, [FuN] Users, Senior Moderators, Friends of [FuN]

weapons toggle script

Postby [FuN]Joris » Wed Jun 02, 2004 11:40 am

hey who can help me out i need a script to toggle trough my weapons bank for example: i can switch from mp40 to health pack with 1 key

who can help me out??
(im on me new puter and can't get my old script so need to re-write it.. )

any other scrips that are usefull are welcome too.

thnx
User avatar
[FuN]Joris
Member
Member
 
Posts: 98
Joined: Mon Nov 04, 2002 10:01 pm
Location: the netherlands

Postby cody » Wed Jun 02, 2004 3:48 pm

Toggle:


//
//
//Smg-to-Packs
//
set weap1 "weaponbank 3; cg_drawgun 0; set weapontoggle vstr weap2"
set weap2 "weaponbank 6; cg_drawgun 1; set weapontoggle vstr weap1"

set weapontoggle "vstr weap1"

bind X "vstr weapontoggle"


---------------------------------------------------------------

simple weapon toggle (eg if smg out of ammo, change to pistol - obviously helps when not on osp servers)

bind x "vstr weaptog"
set weaptog "vstr weaptg1"
set weaptg1 "weaponbank 3; set weaptog vstr weaptg2"
set weaptg2 "weaponbank 2; set weaptog vstr weaptg1"

bind x "cg_weaponcycledelay 0; weaponbank 2; weaponbank 3"

-------------------------------------------------

other scripts that you might need or find useful:

bind X "setspawnpt 0; say_team ^3[^7Spawning^0_^7Auto^3]"
bind X "setspawnpt 2; say_team ^3[^7Spawning^0_^7All^3!^7ed^3]"
bind X "setspawnpt 1; say_team ^3[^7Spawning^0_^7Ax^3!^7s^3]"
bind X "setspawnpt 3; say_team ^3[^7Spawning^0_^7Barracks^3]"
bind X "setspawnpt 101; say_team ^3[^7Spawning^0_^7Sn^3!^7perHill^3]"


or 1 key cycler:


set spawn1 "setspawnpt 0; say_team ^3[^7Spawning^0_^7Auto^3]; set spawncycle vstr spawn2"
set spawn2 "setspawnpt 2; say_team ^3[^7Spawning^0_^7All^3!^7ed^3]; set spawncycle vstr spawn3"
set spawn3 "setspawnpt 1; say_team ^3[^7Spawning^0_^7Ax^3!^7s^3]; set spawncycle vstr spawn4"
set spawn4 "setspawnpt 3; say_team ^3[^7Spawning^0_^7Barracks^3]; set spawncycle vstr spawn5"
set spawn5 "setspawnpt 101; say_team ^3[^7Spawning^0_^7Sn^3!^7perHill^3]; set spawncycle vstr spawn1"


set spawncycle "vstr spawn1"

bind X "vstr spawncycle"

-----------------------------------------------

you can also have it as a 2 key cycle - key a cycles with echo, key b then SETS the choice with a say_team (or just another echo), just a slight variation

------------------------------------------

team selection:

// set team selection

set team_axis "team red;echo ^5Going ^5AXIS"
set team_allies "team blue;echo ^5Going ^5Allies"
set team_spec "team spectator;echo ^5Going ^5Spectator"

bind x "vstr team_axis"
bind y "vstr team_allies"
bind z "vstr team_spec"


n.b. - can exhange red/blue/spectator for r/b/s

or have 2 key cycles:

//set team
//
set side_1 "team red; echo ^7Team^0_^7Ax^3!^7s; set sideswitchone vstr side_2"
set side_2 "team spectator; echo ^7Team^0_^7Sp^3e^7c; set sideswitchone vstr side_1"

set sideswitchone "vstr side_1"

bind X "vstr sideswitchone"

//set team2
//
set side_x "team blue; echo ^7Team^0_^7All^3!^7es; set sideswitchtwo vstr side_y"
set side_y "team spectator; echo ^7Team^0_^7Sp^33^7c; set sideswitchtwo vstr side_x"

set sideswitchtwo "vstr side_x"

bind X "vstr sideswitchtwo"


-----------------------------------


run/walk toggle:

set alwaysrunoff "-speed;echo ^5Running;set walktoggle vstr alwaysrunon"
set alwaysrunon "+speed;echo ^5Walking;set walktoggle vstr alwaysrunoff"

set walktoggle "alwaysrunoff"

bind X "vstr walktoggle"


-----------------------------------


demo recording:

// Demo
//
set demoon "g_synchronousclients 1; record; g_synchronousclients 0; logfile 2; echo ^3<<<^0--^7Recording^0--^3>>>; set demotoggle vstr demooff"
set demooff "stoprecord; logfile 0; echo ^3<<<^0--^7Stopped^0--^3>>>; set demotoggle vstr demoon"
set demotoggle "vstr demoon"
bind X "vstr demotoggle"

------------------------------------


team overlay:

// Overlay
//
set team1 "cg_drawteamoverlay 0; set teamtoggle vstr team2"
set team2 "cg_drawteamoverlay 1; set teamtoggle vstr team3"
set team3 "cg_drawteamoverlay 2; set teamtoggle vstr team1"
set teamtoggle "vstr team1"
bind X "vstr teamtoggle"

-------------------------------------

// FPS Toggle

set fpshigh "com_maxfps 333; set fpstoggle vstr fpsmed"
set fpsmed "com_maxfps 76; set fpstoggle vstr fpslow"
set fpslow "com_maxfps 43; set fpstoggle vstr fpshigh"

set fpstoggle "vstr fpshigh"

bind X vstr fpstoggle

------------------------------------

r_uifullscreen:

// r_uifullscreen
//
set fullscreenon "set r_uifullscreen "1"; echo ^3[^7Fullscreen^0_^1On^3]; set full vstr fullscreenoff"
set fullscreenoff "set r_uifullscreen "0"; echo ^3[^7Fullscreen^0_^7Off^3]; set full vstr fullscreenon"
set full "vstr fullscreenon"
bind X "vstr full"

----------------------------------

the most necessary + useful of all is class selection, but the scripts for this can be near infinite in possibilities. imo too important to mess with, so i have 1 key for all classes - and 1 to cycle soldier classes.

// Lt
//
bind X "mp_playertype 3; mp_weapon 3; say_team ^3[^7Respawn^0_^7Lt^3.^7Mp40^3]"
bind X "mp_playertype 3; mp_weapon 4; say_team ^3[^7Respawn^0_^7Lt^3.^7Thomp^3]"

// Med & Eng
//
bind X "mp_playertype 1; mp_weapon 4; say_team ^3[^7Respawn^0_^7Medic^3]"
bind X "mp_playertype 2; mp_weapon 4; say_team ^3[^7Respawn^0_^7Eng^3!^7neer^3]"

// Soldier
//
set soldat1 "mp_playertype 0; mp_weapon 8; say_team ^3[^7Respawn^0_^7Pan^3z^7er^3];set alphatoggle vstr soldat2"
set soldat2 "mp_playertype 0; mp_weapon 10; say_team ^3[^7Respawn^0_^7Fl^3a^7mer^3];set alphatoggle vstr soldat3"
set soldat3 "mp_playertype 0; mp_weapon 6; say_team ^3[^7Respawn^0_^7Sn^3!^7per^3];set alphatoggle vstr soldat4"
set soldat4 "mp_playertype 0; mp_weapon 9; say_team ^3[^7Respawn^0_^7Ven^3o^7m^3];set alphatoggle vstr soldat1"

set alphatoggle vstr soldat1

bind X "vstr alphatoggle"

---------------------------------

there's tonnes more - hit me up in this thread if you need something specific or whatever Joris.
cody
New User
New User
 
Posts: 7
Joined: Wed Oct 08, 2003 3:22 pm

Postby cody » Thu Jun 03, 2004 5:22 am

// Smg-Packs Toggle
//
set hand1 "weaponbank 3; cg_drawgun 0; set handweap vstr hand2"
set hand2 "weaponbank 6; cg_drawgun 1; set handweap vstr hand1"

set handweap "vstr hand1"

bind X "vstr handweap"

//

that should work.
hit me up in this thread for any others you need - general or speciailised.
cody
New User
New User
 
Posts: 7
Joined: Wed Oct 08, 2003 3:22 pm

Postby [FuN]Joris » Fri Jun 04, 2004 10:48 am

//toggle
//-------------------------
set weapon1 "weaponbank 3;set weapon0 vstr weapon2"
set weapon2 "weaponbank 6;set weapon0 vstr weapon1"
set weapon0 "vstr weapon1"
bind ENTER "vstr weapon0"

this one works gr8 too got it from the old scripting wonder of [BoB]-clan

but thanx for all your troubles cody!! some usefull stuff there i might use in me new script :))
User avatar
[FuN]Joris
Member
Member
 
Posts: 98
Joined: Mon Nov 04, 2002 10:01 pm
Location: the netherlands

Postby Xander » Fri Jun 04, 2004 10:58 am

well if you have a 5 button mouse (and a wheel) i just set all my keys to them.
User avatar
Xander
Senior Member
Senior Member
 
Posts: 162
Joined: Mon Mar 24, 2003 8:23 pm
Location: England,Manchester

Postby Roan » Fri Jun 04, 2004 12:16 pm

I need a new mouse Xan - What you use?
User avatar
Roan
Senior Member
Senior Member
 
Posts: 213
Joined: Sat Nov 08, 2003 5:52 pm

Postby cody » Fri Jun 04, 2004 1:00 pm

[FuN]Joris wrote://toggle
//-------------------------
set weapon1 "weaponbank 3;set weapon0 vstr weapon2"
set weapon2 "weaponbank 6;set weapon0 vstr weapon1"
set weapon0 "vstr weapon1"
bind ENTER "vstr weapon0"

this one works gr8 too got it from the old scripting wonder of [BoB]-clan

but thanx for all your troubles cody!! some usefull stuff there i might use in me new script :))



heh:


cody wrote:// Smg-Packs Toggle
//
set hand1 "weaponbank 3; cg_drawgun 0; set handweap vstr hand2"
set hand2 "weaponbank 6; cg_drawgun 1; set handweap vstr hand1"

set handweap "vstr hand1"

bind X "vstr handweap"

//

that should work.
hit me up in this thread for any others you need - general or speciailised.



they two are exactly the same script Joris lol :D

you can name the vstr anything u like, and i do mean anything (heh!) - as long as they point to correct resource, and don't overlap with another vstr, they will work perfectly.

glad to help - been a while since anyone was looking for rtcw scripts, but as I said I still have loads so if anyone needs help post up.
cody
New User
New User
 
Posts: 7
Joined: Wed Oct 08, 2003 3:22 pm

Postby mazza » Fri Jun 04, 2004 2:04 pm

no matter how many meeces i buy i always go back to my old logitech mouseman dual optical :D its getting old now but has been well worth the money and will most definitely spend the extra cash on getting another logitech :D Remember when the X bought me this one, I was cursing him for spending that amount of money on a mouse, but wouldn't change it for anything now :D
mazza
 

Postby Roan » Sat Jun 05, 2004 6:18 pm

mazza wrote:no matter how many meeces i buy i always go back to my old logitech mouseman dual optical


My new mouse

http://www.extremetech.com/article2/0,3 ... 982,00.asp

Very nice too, 6 buttons :twisted:
User avatar
Roan
Senior Member
Senior Member
 
Posts: 213
Joined: Sat Nov 08, 2003 5:52 pm

Postby Xander » Sat Jun 05, 2004 7:16 pm

mines like that, but its a mircrosoft one
User avatar
Xander
Senior Member
Senior Member
 
Posts: 162
Joined: Mon Mar 24, 2003 8:23 pm
Location: England,Manchester

Postby mazza » Sat Jun 05, 2004 7:26 pm

mines like that less a button and a way older version :lol:
mazza
 


Return to First Person Shooter

Who is online

Users browsing this forum: No registered users and 39 guests

cron