Jump to content

Recommended Posts

Posted

set shooton "sensitivity 3.5; +attack; set vstr shootoff"

set shootoff "sensitivity 2.5; -attack; set vstr shooton"

bind mouse1 "+vstr shooton shootoff"

 

 

 

That what you're looking for?

 

Can you explain this to me at some point?! :)

Posted (edited)

vstr simply means execute some command.

+vstr means execute some command upon pressing a button, followed by another command upon release of said button

 

set shooton ... means create a new command called shooton that does the following (...)

the command can be one action like

kill

or can be multiple actions, enclosed in quotes and separated by semicolons, similar to c++

"kill; forcetapout"

for example.

 

in this case, we create two new commands

shooton

and

shootoff

and bind mouse 1 to execute

shooton

upon pressing mouse1, and

shootoff

upon release.

 

Now as for the

set vstr shootoff

added to the end of each command, it (as best I can explain it) sets up the next line. I realize that's kinda vague, but it's all I got on that :)

Edited by parrot
  • Like 1
  • Clan Friend
Posted

set vstr shootoff

That makes no sense.

 

Basically, you are creating a new command string called 'vstr' and you set it to 'shootoff'.

Your script wouldn't even work if the game didn't give priority to the real vstr command in the parsing.

 

Either you set, or you (+)vstr. You can't 'set vstr'

Actually you can, but it will create confusion between the command vstr and the variable you create, that you also call 'vstr'. So it's not recommended.

 

example:

/set vstr "echo test"

here i use the command set, to create a variable called vstr, to which I assign the text "echo test"

 

/vstr vstr

here the game assumes that the 1st vstr is the command, not the variable, so the second will be a variable

 

result:

you see the word 'test' (actually not if you are in the main menu, only in game)

 

So it works, but it creates lots of confusion when you call a variable like a command, plus in your script it doesn't even make sense, because it doesn't have any purpose, you set something and you never use it in any way.

 

I hope I explained it clearly enough

Posted (edited)

What you're saying makes sense, but I just tested it out (I use a similar script, but with sprint instead of sensitivity), and the only way it works is to leave it as written.

 

vstr shootoff(shooton)

does not work, and neither does simply leaving it off entirely.

 

As written, it works just fine for me :)

 

 

******Ignore the above*********

 

 

Sunlight is right.

 

You can safely remove the

set vstr shooton(shootoff)

 

oops :S

 

and thanks to Sunlight for pointing this out :D

Edited by parrot
  • Clan Friend
Posted

What you're saying makes sense, but I just tested it out (I use a similar script, but with sprint instead of sensitivity), and the only way it works is to leave it as written.

 

vstr shootoff(shooton)

does not work, and neither does simply leaving it off entirely.

 

As written, it works just fine for me :)

it doesn't work because you don't need that part at all

 

That's what happens:

You add an useless part, that makes no sense, but also has no effect whatsoever (set vstr shootoff) -> it works because it has no effect.

You put a real command (vstr shootoff), but a wrong one -> it doesn't work because now the command has an effect, and it's not the intended one.

 

even better would be not to put anything, neither wrong commands nor meaningless (but without effect) ones

 

the correct script (withtout the meaningless part) would be:

set shooton "sensitivity 3.5; +attack"
set shootoff "sensitivity 2.5; -attack"
bind mouse1 "+vstr shooton shootoff"

 

of course you can add things like set trollollol roflmao, and it would still work, but it is not useful either :P

Posted

Indeed you are right sir :)

 

Again, thanks for pointing that out.

Posted (edited)

Hey. Prompt yet another thing. When filled many many XP, scored all classes of stars, then given two automatic pistol or a soldier. Where in the settings to enable so that would be at the entrance to the game and the choice (in the menu), the profession was immediately obtained weapons (for example two pistols at the doctor). And then I haveconstantly a gun. Choose from the drop down list. If you change the spawn jumps back toa gun, etc.

May be responsible for this sort of a variable. I have not found

Edited by LAS
Posted

not that I know of

  • 3 weeks later...
Posted (edited)

not that I know of

And I found a solution to the problem

cg_limbo_secondary

Description

Selects the default secondary weapon from the limbo weapon-selection list.

Parameters

Type: [0|1|2] 0 Single handgun

1 Dual handguns (akimbo)

2 SMG (always get best secondary weapon)

Edited by LAS
  • 4 months later...
Posted

How it works?

I mean it is written in the config, it works.

 

 

set crouch "+movedown; set vstr stand"

set stand "-movedown; set vstr crouch"

bind CTRL "+vstr crouch stand"

 

set crouch "+movedown; cg_fov 90; set nextcrouchtoggle vstr stand"

set stand "-movedown; cg_fov 100; set nextcrouchtoggle vstr crouch"

set nextcrouchtoggle "vstr crouch"

//bind CTRL "vstr nextcrouchtoggle"

 

If you do like this, it does not work

 

 

set crouch "+movedown; cg_fov 90; set vstr stand"

set stand "-movedown; cg_fov 100; set vstr crouch"

bind CTRL "+vstr crouch stand"

 

set crouch "+movedown; set nextcrouchtoggle vstr stand"

set stand "-movedown; set nextcrouchtoggle vstr crouch"

set nextcrouchtoggle "vstr crouch"

//bind CTRL "vstr nextcrouchtoggle"

 

The fact that the second script is closed / /

  • Clan Friend
Posted

I don't know what you are trying to achieve, but if you use +vstr you don't need to set anything else, let alone setting 'vstr', which makes no sense at all.

 

set crouch "+movedown; cg_fov 90"

set stand "-movedown; cg_fov 100"

bind CTRL "+vstr crouch stand"

 

should work

  • 2 months later...
Posted

Hi guys.

Long time no write, no problems :unsure:

 

 

But here there was, you have to write.

 

The game was Ping - 50 - 60.

Now playing, one minute ping 50, then 3 minutes - rises to 300 (all floats), then falling again to 50. And so the whole game.

 

Why is that? :eek

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.