Jump to content

Recommended Posts

Posted

I would like to bind a weapon cycle to mouse but can't seem to get the sentence structure correct any help is appreciated
this is what I have in my cfg now:

set weaponbank "vstr weaponbank 2"
set weaponbank 2 "weaponbank 2; m_pitch 0.022; cg_drawgun 1; com_maxfps 71; set weaponbank vstr weaponbank 3"
set weaponbank 3 "weaponbank 3; m_pitch 0.022; cg_drawgun 1; com_maxfps 125; set weaponbank vstr weaponbank 2"
bind MOUSE2 "vstr weaponbank"

  • Like 1
  • Platinum VIP
Posted

If this is for sniping, i've have mine setup like this:


bind , "seta com_maxfps 71; seta m_pitch ""
bind . "seta com_maxfps 250; seta m_pitch ""

 

Or try this

 

set weaponbank "vstr weaponbank 2"
set weaponbank 2 "weaponbank 2; seta m_pitch 0.022; seta cg_drawgun 1; seta com_maxfps 71; set weaponbank vstr weaponbank 3"
set weaponbank 3 "weaponbank 3; seta m_pitch 0.022; seta cg_drawgun 1; seta com_maxfps 125; set weaponbank vstr weaponbank 2"
bind MOUSE2 "vstr weaponbank"

 

 

 

  • Like 3
  • Leader
Posted (edited)

I think that it has to be weaponban2, weaponbank3, e, etc.  A variable with only one name, not in two parts

 

OH, I get it now, after looking at my own line "bind 0 "weaponbank 10" "

 

"Weaponbank 2" is actually a command, so you cannot use it as a variable.

 

Making changes like this might work.  I think that there is a similar config-fraction in our config topic.

 

set weaponbankX "vstr weaponbank2"
set weaponbank2 "weaponbank 2; m_pitch 0.022; cg_drawgun 1; com_maxfps 71; set weaponbankX vstr weaponbank3"

 

___________________________________

Is MOUSE2 the right-click button?    You might need mouse 3 or 4.

 

This is in my jaymod etconfig.cfg

 

// The first line is from "execing Razgun.CFG from withing my Start.cfg when starting each session //

 

bind MOUSE1 "+vstr mouse_a mouse_b"
bind MOUSE2 "+attack2"
bind MOUSE4 "+activate"

 

OKAY, my mistake.  My RazGun.cfg is from a post by @Raziel !  No wonder I named it "Razgun.cfg".  😄 

 

Now I am wondering what the + in the "+vstr" does.  I will have to check my other configs!  BTW, the ending " in my copy was missing, but it works okay, it seems. 

 

 

// loaded 12/18/12
// source http://fearless-assassins.com/topic/38677-attack-cg-drawgun-0-for-mouse1/.
// Raziel, Co-Leader, Server:NQ1, Posted 03 September 2012 - 07:12 AM


bind Mouse1 "+vstr mouse_a mouse_b"
set mouse_a "+attack; cg_drawgun 0"
set mouse_b "-attack; cg_drawgun 1"

 

 

I will have to check for " +vstr " in my gameDay advertising configs!   I wonder if that was a source of some of my troubles with them?  :hmm 

 

Raziel's particular structure won't work for what you want.  It is a toggle and does not really change settings, which is what you want to do. :hmm Maybe the +vstr is what makes it a toggle? :o 

 

😄 at RedBaird, for running Raziel's cfg for nearly 12 years and not really understanding it, other than It Works!  😄  

 

Raziel's topic : 

Oops, @Kojootti replied as I was writing this typicaly over-long reply!

 

 

 

Edited by RedBaird
changes in green, for clarity
  • Like 1
  • Haha 1
  • Platinum VIP
Posted

And @Sick already figured out as i typed it so 😄

  • Like 1
  • Haha 1
Posted

thanks i managed to get it working earlier right after i posted it :)))

  • Like 2
  • Haha 1
  • Leader
Posted
2 minutes ago, Sick said:

thanks i managed to get it working earlier right after i posted it :)))

 

Share what how you modified it for all of us! 😄 

 

 

  • Like 1
  • Love 1
Posted (edited)

set w-bank3e "weaponbank 3; m_pitch 0.022; cg_drawgun 0; com_maxfps 125; set nextw-bank32e vstr w-bank2e"
set w-bank2e "weaponbank 2; m_pitch 0.022; cg_drawgun 0; com_maxfps 71; set nextw-bank32e vstr w-bank3e"
set togreset "set nextw-bank32e vstr w-bank3e"
set nextw-bank32e "vstr w-bank3e"
bind mouse2 "vstr nextw-bank32e"

Edited by Sick
  • Like 2
  • 100 1
  • Leader
Posted

You are "well on your way" now! 😄 

 

You must have been thinking the same thing I was, AT The Same Time! 😄 

 

 

  • 100 1
Posted (edited)

I found the fix here:
 

I believe this would also work:

 

Edited by Sick
  • Thanks 1
  • Platinum VIP
Posted

Rule nr. 13

https://fearless-assassins.com/wiki/index.php/W:ET_Server_Rules

 

Scripts that alter gameplay to give the user a distinct advantage over other players are prohibited. These scripts, for example, may include anti-recoil scripts and mortar scripts. Players using these will be handled as common offenders (!warn, !kick, !ban) and not as hacking offenders (immediate permanent ban).

  • Confused 1
Posted (edited)

@Veive thanks for the comment. Though, I’m not really sure what you are getting at? Nothing of what I’m doing is breaking rule number 13. Or any rule for that matter. Thanks.

But since you are in the rule book check out rule number 4:

4. Respect other players. Do not interfere with your own teammates in any way. For example, blocking mortars, pushing players on your team or obstructing covert ops. You will be either warned, splatted, kicked or banned depending on what our admins feel is right so that an enjoyable environment is maintained on the server.

now I won't have to warn you in game :) 

Edited by Sick
  • 100 2

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.