+vstr


(Ark42) #1

I noticed ET added +vstr.

A simple example would be
set keydown “+movedown;+attack”
set keyup “-movedown;-attack”
bind x “+vstr keydown keyup”

Pressing X then ducks and shoots, letting go of X stands back up and stops shooting.

Normally bind x “+movedown;+attack” would result in you standing back up but still attacking when you let go, while bind x “+attack;+movedown” would result in you staying crouched forever but stop attacking when you let go of the key.

Has anybody used +vstr for any really nifty script yet? I’m curious since I think this feature should have been in Q3 and RTCW from the beginning.


(Ifurita) #2

How/when did you find this?

How about:

set prime “weaponbank 4; wait 10; +attack”
set release “-attack; weaponbank 3”
bind MOUSE4 “+vstr prime release”


(Ifurita) #3

BTW, here is something else you can try:

bind x “cycle cg_drawcrosshair 0 10”
bind x “cycle sensitivity 2 18 4”
bind x “cycle cg_crosshairsize 8 128 8”

Try the first and last one - trust me, you’ll like it

[Props to DarkAngel for finding out about the cycle command]


(Ark42) #4

I just typed /cmdlist
Try typing /buynow in the console, its great :slight_smile:

Auto switch for grenades and such comes to mind as a good use, but I still wonder if there is something more powerful that can be done with it.


(Ark42) #5

Wow, I didnt notice the effect of that, I figured it did nothing at first, but if you bind it and HOLD that key down, its pretty cool.
just typing one single /cycle in the console doesnt get you much.


(Ifurita) #6

set wide “cg_fov 120”
set normal “cg_fov 90”
bind mouse4 “+vstr wide normal”


(Ark42) #7

Its too bad cg_fov has a min of 90 or that could make a nice scope for the SMGs.
That is a good idea tho, I wasn’t thinking of non +/- commands in the two strings, but fov 90/120 is pretty cool. Might be more benefitial as a standard toggle which doesnt need +vstr though.
Keep the good ideas rolling !


(Ifurita) #8

i had it as a toggle, but i think it’s actually more useful as a +vstr

This way, i can set up a defensive position, expand my FOV, then automatically change back to my battle FOV when I engage


(Ifurita) #9

You can also use it to toggle sensitivity, for long range vs short range combat. You can also use it to exec cfg files. Say I had a teammessage.cfg and globaltaunt.cfg. I could use:

set keydown “exec globaltaunt.cfg”
set keyup “exec teammessage.cfg”
bind mouse1 “+vstr keydown keyup”

To effectively double bind everything to a set of keys, but always default to the team messages.

I might incorporate this into my class select config to enable team selection only when another key is pressed, to prevent accidental team switching mid-game


(Ark42) #10

As long as a lot of exec’s don’t cause lag from file access. Obviously the same thing could be done with a lot of set/vstr in the two strings, but exec makes it cleaner looking.

Messages are a big one, I was thinking about this since I literally am out of keys because of the vsays and just play team_says I have bound.


(Ifurita) #11

have a look at this:

http://www.rtcwonline.com/dummies/et-chatscript-template.zip


(Majin) #12

wow, this command will have some nice uses :wink:

Just thinking about it, I wonder if this would work.

set keydown “+prone”
set keyup “-prone”
bind x “+vstr keydown keyup”

Gonna go try it.

edit: BAH!
Holding the key down results in constant getting up and getting down;/

although… I did just make my favorite script ever.

set keydown “cg_fov 90;+attack”
set keyup “-attack;cg_fov 120”
bind MOUSE1 “+vstr keydown keyup”

My mortar script also just got better. I use to have one key cycle between non mortar mouse/key speeds, then to a fast movement, then to slow movement.
But with this, I have it so the toggle just goes between mortar and non mortar, and a different key is held down to speed up the mortar movement.
Now my mouse doesnt move my mortar unless I hold MOUSE2. Very helpful =)

edit:

The script that leaves your fov in 120 always, except when firing, while good, is flawed ;(
Two things can happen that are bad.
One is that when using a pistol, you have to click rapidly. This causes your view to go insane.
Second, its hard to snipe at a distance without opening firing before getting your aim just right.

For the long range smg/pistol sniping I found a solution, I set my crouch key to auto change fov. Both my crouch toggle key (toggles fov) and my hold crouch key (hold for fov change).
This still leaves the pistol/rifle error though.

I also need to find a way to make it so I stay in the wider fov while arming dynamite/mines so I can see enemies coming.


(Kendle) #13

+vstr was added by Rhea for OSP (0.83 I think) for RTCW. I use it in this little script:-


set spleftdn "+moveleft; +sprint"
set spleftup "-moveleft; -sprint"
set spritedn "+moveright; +sprint"
set spriteup "-moveright; -sprint"
bind LEFTARROW "+vstr spleftdn spleftup"
bind RIGHTARROW "+vstr spritedn spriteup"

That adds sprint to left and right strafing movement, helps in a 1-v-1 sometimes.