Need toggle script help


(Stee) #1

I have this script in my autoexec which I pasted from my RTCW config:
//--------------CHANGE NEEDLE/SPECIAL WEAPON
set wp3 “weaponbank 5; set wpsel1 vstr wp4”
set wp4 “weaponbank 3; set wpsel1 vstr wp3”
Set wpsel1 “vstr wp3”
bind ALT “vstr wpsel1”

//--------------CHANGE AMMO/MEDIC
set wp1 “weaponbank 6; set wpsel vstr wp2”
set wp2 “weaponbank 3; set wpsel vstr wp1”
Set wpsel “vstr wp1”
bind F5 “vstr wpsel”

Obviously this worked well in RTCW and it works well in ET but when I’m playing as an engineer I also have to plant mines and need a toggle for this, I’ve made a few attempts myself but they did’nt work.
Any help would be appreciated. :slight_smile:


(Ifurita) #2

here is my full engy weapons config. hope this doesn’t make me lame:

//Weapons
bind w “vstr nextw-bank23e; set nextw-bank56e vstr w-bank5e; set nextw-bank47e vstr w-bank4e”
bind r “vstr nextw-bank56e; set nextw-bank23e vstr w-bank3e; set nextw-bank47e vstr w-bank4e”
bind t “vstr nextw-bank47e; set nextw-bank23e vstr w-bank3e; set nextw-bank56e vstr w-bank5e”
bind q “weaponbank 1; cg_drawgun 1; vstr resete”

//Class specific scripts

//Multiple-Weaponbind Script Weaponbank 3 and 4
set w-bank3e “weaponbank 1; weaponbank 2; weaponbank 3; cg_drawgun 0; set nextw-bank23e vstr w-bank2e”
set w-bank2e “weaponbank 1; weaponbank 2; cg_drawgun 1; set nextw-bank23e vstr w-bank3e”
set nextw-bank23e “vstr w-bank3e”

//Multiple-Weaponbind Script Weaponbank 5 and 6
set w-bank5e “weaponbank 5; cg_drawgun 1; set nextw-bank56e vstr w-bank6e”
set w-bank6e “weaponbank 6; cg_drawgun 1; set nextw-bank56e vstr w-bank5e”
set nextw-bank56e “vstr w-bank5e”

//Multiple-Weaponbind Script Weaponbank 4 and 7
set w-bank4e “weaponbank 4; cg_drawgun 1; set nextw-bank47e vstr w-bank7e”
set w-bank7e “weaponbank 7; cg_drawgun 1; set nextw-bank47e vstr w-bank4e”
set nextw-bank47e “vstr w-bank4e”

//Resets to SMG, pliers, and hand grenade
set resete “set nextw-bank23e vstr w-bank3e; set nextw-bank56e vstr w-bank5e; set next-bank47e vstr w-bank4e”


(Stee) #3

Thanx but I’m not exactly sure how that script works :???: , I can toggle smg and pliers and smg and dyna, easily I just need the landmine one sorted properly.


(Ifurita) #4

try it out. Copy and paste the entire script into your autoexec

W is a pistol-smg toggle; r is a dyno-pliers toggle; t is a grenade-mine toggle

The script is written so that if you ever leave a toggle, then the next time you go back, the same weapon comes up.


(Gotte) #5

Hi

I cannot get this to work. The only thing I changed in the script was the binds (ie k instead of r). How does the script work? If I press r then the pliers will appear? Then press r again and it will toggle back to the smg? When I press r (or k in my case) nothing happens. What can be wrong?

edit: If you wanted a script that changed the sensitivity when using alternate fire (zooming) what would that look like…any ideas?

…and I assume we talk about ETQW :smiley:

BR Gotte


(BondyBoy007) #6

considering you’ve just bumped a thread from 2003 I think you can assume they were NOT talking about ET:QW :lol:


(Gotte) #7

lol…oops :lol: :lol:


(BondyBoy007) #8

BTW the toggles I had used in ET don’t work in QW, so maybe there is a different syntax required


(murka) #9

in etqw you cant script commands which start with _
_weapon0 is one of them…


(BondyBoy007) #10

none of my toggles worked in QW (Vol control, name change, spam stuff) eg.

set volumeup vstr volume9
set volumedn vstr volume7
set volume0 "set s_volume 0.0; set volumeup vstr volume1; set volumedn vstr volume0; echo ^2Volume ^3---------- ^20^7"
set volume1 "set s_volume 0.1; set volumeup vstr volume2; set volumedn vstr volume0; echo ^2Volume ^2|^3--------- ^21^7"
set volume2 "set s_volume 0.2; set volumeup vstr volume3; set volumedn vstr volume1; echo ^2Volume ^2||^3-------- ^22^7"
set volume3 "set s_volume 0.3; set volumeup vstr volume4; set volumedn vstr volume2; echo ^2Volume ^2|||^3------- ^23^7"
set volume4 "set s_volume 0.4; set volumeup vstr volume5; set volumedn vstr volume3; echo ^2Volume ^2||||^3------ ^24^7"
set volume5 "set s_volume 0.5; set volumeup vstr volume6; set volumedn vstr volume4; echo ^2Volume ^2|||||^3----- ^25^7"
set volume6 "set s_volume 0.6; set volumeup vstr volume7; set volumedn vstr volume5; echo ^2Volume ^2||||||^3---- ^26^7"
set volume7 "set s_volume 0.7; set volumeup vstr volume8; set volumedn vstr volume6; echo ^2Volume ^2|||||||^3--- ^27^7"
set volume8 "set s_volume 0.8; set volumeup vstr volume9; set volumedn vstr volume7; echo ^2Volume ^2||||||||^3-- ^28^7"
set volume9 "set s_volume 0.9; set volumeup vstr volume10; set volumedn vstr volume8; echo ^2Volume ^2|||||||||^3- ^29^7"
set volume10 "set s_volume 1.0; set volumeup vstr volume10; set volumedn vstr volume9; echo ^2Volume ^2|||||||||| ^210^7"
bind uparrow vstr volumeup
bind downarrow vstr volumedn

(murka) #11

lol, my mx revo thumb wheel is for volume, somewhat useful thing if you dont have it on the KB.
very strange, ill try some too.