The Volley script -1 reply

Please wait...

Biggus Dickus VIP Member

I would die without my life.

195,640 XP

19th January 2004

0 Uploads

18,764 Posts

0 Threads

#1 14 years ago

Hi folks Here's a little script I made for lazy people (like me). It automatically switch to the Colt rifle upon you shot with the Volley rifle. I've tested it in many situations and it works fine.

This script includes : - a toggle to turn the mode on/off ([u] key) - a toggle to display the FPS indicator ([i] key) - the auto reload turned to 0 (important)

There it is: //volley_mode.cfg

//Script to switch automatically from Volley rifle to Colt rifle after a shot. //Use [i] to toggle FPS, [u] to toggle the volley mode //Created by Biggus Dickus on May/26/2004

//Resets previous binds unbind 1 unbind 2 unbind 3 unbind 4 unbind 5 unbind 6 unbind 7 unbind u unbind i

//Disables the auto reload set cg_autoReload "0"

//Toggles the FPS indicator bind i "toggle cg_drawfps"

//Toggles the volley mode off/on bind u "vstr vol_tog " set vol_tog "vstr vol_tog3" set vol_tog2 "vstr vol_mode ; set vol_tog vstr vol_tog3" set vol_tog3 "vstr norm_mode ; set vol_tog vstr vol_tog2"

//Sets the normal fire set norm_fire "bind mouse1 +attack"

//Sets volley mode on set vol_mode "vstr vol_swtch ; bind 7 vstr vol_swtch ; echo ^3Volley_mode ^2ON" set vol_swtch "weaponbank 7 ; bind mouse1 vstr fire_mode" set fire_mode "+attack ; -attack ; -attack ; wait 20 ; weaponbank 3 ; vstr norm_fire"

//Sets volley mode off set norm_mode "bind 7 weaponbank 7 ; vstr norm_fire ; echo ^3Volley_mode ^1OFF"

//Binds 7 to select weaponbank 7 and enables volley mode bind 7 "vstr vol_mode"

//Binds other weaponbanks to normal fire to avoid a switch after 1 shot bind 1 "weaponbank 1 ; vstr norm_fire" bind 2 "weaponbank 2 ; vstr norm_fire" bind 3 "weaponbank 3 ; vstr norm_fire" bind 4 "weaponbank 4 ; vstr norm_fire" bind 5 "weaponbank 5 ; vstr norm_fire" bind 6 "weaponbank 6 ; vstr norm_fire"

//EOF

How to use it: - In your WildWest folder, create a new txt file - Renames the file to "volley_mode.cfg" (delete the txt extension) - Copy/paste the code in it - Save it - Open your autoexec.cfg in the same folder - Add the line "exec volley_mode.cfg" - Save it

Troubleshooting: As you see, the "fire_mode" Cvar contains a wait command. I've put it here cause the "+attack" needs between 1/2 and 1 second to be executed before the switch.

The problem is that the number (here 20) doesn't means an absolute time but a number of frames. As the FPS value has variations, it's impossible to set an absolute time to the execution of the "+attack" command. In clear, the time depends of your average FPS. In addition, while a "wait" command is executed, NO other command can be executed at the same time (that's exactly why we use it!). It means when you are motionless, you remains motionless while the "wait" occurs. If you're moving in a direction, you will keep moving in the same direction without been able to change it. So the "wait" value has to be as low as possible.

Unfortunatly, the "com_maxfps" Cvar is cheat protected so I can't set it temporarily. The FPS is different on every CPU so I can't set the "wait" value to yours.

So if your weapon switches before it shots, it's because you have a higher average FPS than me, so you will have to set the "wait" value by yourself. That's why I've included a toggle to draw the FPS indicator. Raise the "wait" value by 05 steps until it works.

Tell me if you have other problem with it.

Enjoy!




Preacher

Pale FJ1200 Rider

50 XP

1st November 2003

0 Uploads

524 Posts

0 Threads

#2 14 years ago

Very nice BD! I just may have to try that. Especially in 1.6, when the volley gets a boost, I'll probably be looking into that weapon a bit more than I do now...




Gringo Starr

Green Whorn

50 XP

7th May 2003

0 Uploads

165 Posts

0 Threads

#3 14 years ago

By looking into, you mean down the barrel right? lol! :)




Hacko

Adios

50 XP

24th March 2003

0 Uploads

299 Posts

0 Threads

#4 14 years ago
Gringo StarrBy looking into, you mean down the barrel right? lol! :)

LOL:lol:




Preacher

Pale FJ1200 Rider

50 XP

1st November 2003

0 Uploads

524 Posts

0 Threads

#5 14 years ago

Cute! Seriously, I rarely pick the volley, as it seems that I don't usually get good results from it. I've hammered more than one target at close range only to find myself with an empty gun and a target who is now filling my head with lead. Obviously I either have not caught onto the finer points of using it, it could use a little boost to it's power + anti lag changes to help, or I just plain suck.

DON'T ANSWER THAT! ;)




El Dragon

Wild West Mod

50 XP

25th June 2003

0 Uploads

2,523 Posts

0 Threads

#6 14 years ago

probably a ping thing, I find that many a low pinger is still standing after I let loose a blast at them up close, I think (even with the current antilag) that they just aren't exactally where I think they are when I shoot. I've tried both leading the target and aiming right at them but usually only have the best result when they are charging me or I sneak up on them.

Bigus, I like the script but would make a recomendation to jump to weapon bank 2 instead of 3 (if you're using the volley then you should be upclose where the pistol would be more useful.) Nice scripting btw.




Biggus Dickus VIP Member

I would die without my life.

195,640 XP

19th January 2004

0 Uploads

18,764 Posts

0 Threads

#7 14 years ago

Glad you likes it! Well Dragon, I've hesitated about this. Finally, I've choose the Colt rifle because it's quite effective in close range too. But if some you prefers the Colt Dragoon instead, it's quite easy to do. just replace this : //Sets volley mode on set vol_mode "vstr vol_swtch ; bind 7 vstr vol_swtch ; echo ^3Volley_mode ^2ON" set vol_swtch "weaponbank 7 ; bind mouse1 vstr fire_mode" set fire_mode "+attack ; -attack ; -attack ; wait 20 ; weaponbank 3 ; vstr norm_fire"

//Sets volley mode off set norm_mode "bind 7 weaponbank 7 ; vstr norm_fire ; echo ^3Volley_mode ^1OFF"

by this: //Sets volley mode on set vol_mode "vstr vol_swtch ; bind 7 vstr vol_swtch ; echo ^3Volley_mode/Dragoon ^2ON" set vol_swtch "weaponbank 7 ; bind mouse1 vstr fire_mode" set fire_mode "+attack ; -attack ; -attack ; wait 20 ; weaponbank 2 ; vstr norm_fire"

//Sets volley mode off set norm_mode "bind 7 weaponbank 7 ; vstr norm_fire ; echo ^3Volley_mode/Dragoon ^1OFF"

And it will switch to the weaponbank 2 instead.

Both may be used in the same game (but not at the same time, of course). If you want to, saves the modified script as "volley_mode2.cfg", removes the line "exec volley_mode" from your autoexec.cfg, binds 2 [x] key in your wolfconfig.cfg like this: bind x1 "exec volley_mode" bind x2 "exec volley_mode2" Of course, replaces x1 and x2 with your own choice. This way, both script can be executed and you will be able to test and choose the one you're prefer. Of course, the 2 scripts could be merged but it's much more complicated than this.




El Dragon

Wild West Mod

50 XP

25th June 2003

0 Uploads

2,523 Posts

0 Threads

#8 14 years ago

actually you could make a simple toggle switch, I'll poke at it sometime soon (currently working on steadycam script) and also working this weekend but will post results asap :D




Ignacio

Slap leather, varmint!!!

50 XP

7th October 2003

0 Uploads

1,364 Posts

0 Threads

#9 14 years ago

When I try this script and I drop an ammo pack, I can only drop one, then it switches me back to the colt rifle, as if I were firing the volley.




El Dragon

Wild West Mod

50 XP

25th June 2003

0 Uploads

2,523 Posts

0 Threads

#10 14 years ago

hmm. sounds like you forgot to add the rebinds for weaponbanks (non volley) see above script.