SpecialAttack.net https://forum.specialattack.net/ |
|
Weapon & Class Specific Reload Script https://forum.specialattack.net/viewtopic.php?t=4472 |
Page 1 of 2 |
Author: | [SpA]Relentless [ 21 Dec 2008, 22:29 ] |
Post subject: | Weapon & Class Specific Reload Script |
Hey, I'm using this one quite some time now, and thought it's worth sharing. maybe this helps some of you out. It's quite useful and NOT forbidden in leagues (for example etf2l) ![]() So if anyone wants it, dont hesitate to copy and paste ![]() I do warn you though, you may get used to it and if you ever decide to delete it,its quite annoying to get used to pressing r all the time ![]() For use in your autoexec.cfg (just copy & paste in there and save)(you can find it here: Steam/Steamapps/username/Team Fortress 2/tf/cfg. If you dont have one, no problem: Open up the editor, and save the empty file as autoexec.cfg (dont forget the .cfg!!!) in the folder): Code:
For use in your Scout.cfg & Demoman.cfg (This will auto-realod your primary weapons only, you still have to press r for sticky launcher to reload):Code:
For use in Soldier.cfg (This will auto-reload both your RL & Shotty):Code:
For use in Pyro.cfg & Heavy.cfg (This will auto-reload your Shotties only (as you cant reload your Flamer & Sasha ![]() Code:
For use in Engineer.cfg, Medic.cfg, Sniper.cfg & Spy.cfg (This will auto-reload none of your weapons. You theoretically can use the same Code from Scout & Demoman for Engineer, however you wont be able to switch to your build panel with mousewheel then and have to use 4 & 5, and that can be quite annoying):Code:
However, there are some minor issues with this script1) If you get killed while holding your non-primary as Scout, Soldier, Pyro, Demoman or Heavy, switching weapons wont work properly at first. Just randomly switch through your weapons after spawning to fix this. 2) When watching SourceTV Demos, you wont be able to switch through the players with Mouse1. You either have to use Mouse2 then or write "bind mouse1 +attack" (without the "") in Console. If you wanna play a game after watching the demo, you have to restart the game if you used the bind mouse1 +attack console-command. Cheers, Relentless ![]() PS: I didn't create this script, however I dont know who did. Just to avoid misunderstandings ![]() |
Author: | [SpA]futari [ 21 Dec 2008, 22:43 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
That sounds pretty nice, thanks I'll try it out ![]() |
Author: | [SpA]TheWeirdo [ 22 Dec 2008, 11:50 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Wow, something that actually works in my TF2!!! Thanks! |
Author: | [SpA]Minimoose! [ 22 Dec 2008, 13:47 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Useful, thanks ![]() |
Author: | [SpA]Baal Kagan [ 02 Jan 2009, 14:37 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
i'll try it out now~ ![]() |
Author: | BoldBald [ 02 Jan 2009, 15:04 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Pretty cool, thanks m8! ![]() |
Author: | [SpA]Baal Kagan [ 02 Jan 2009, 15:12 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
dunno...deleted it again...it's kinda strange since the weapon switch is weird..."q" not workin well & stuff o: |
Author: | [SpA]futari [ 02 Jan 2009, 15:42 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]Baal Kagan wrote: dunno...deleted it again...it's kinda strange since the weapon switch is weird..."q" not workin well & stuff o: That's what I said.. just scroll through your weapons at start and no problem ![]() |
Author: | [SpA]Relentless [ 02 Jan 2009, 17:38 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]futari wrote: [SpA]Baal Kagan wrote: dunno...deleted it again...it's kinda strange since the weapon switch is weird..."q" not workin well & stuff o: That's what I said.. just scroll through your weapons at start and no problem ![]() ![]() |
Author: | Lim-Dul [ 02 Jan 2009, 18:53 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Actually, that's a "bug" in the script. It uses an old trick of cycling through specific weapons through rebinds which I used in CS times when mousewheel fastswitch didn't work. The problem here is that the author of the script didn't put in the initial binds for the "zero state", so to speak. It can be fixed putting an additional bind at the beginning of the script so you don't have to cycle weapons initially but truth be told the whole thing is a bit messy anyway... E.g. why are keys being rebound all the time - that's not the proper way to do it, the proper way of doing cycle scripts is making an alias and then re-alias it, so that you don't have to change the key bindings everywhere if you make some changes to the script or want to customize it... By the way - as far as I can see all the script does is toggling +reload after attacking with specific weapons - is a script really needed for such a simple thing? 0_o |
Author: | Bartg [ 02 Jan 2009, 19:16 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
What was it ? Less skill = more scripts ? ![]() |
Author: | [SpA]Relentless [ 02 Jan 2009, 22:25 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I dont care if people say I got less skill because I use scripts. It improved my gameplay, its not forbidden, its fine. ![]() I rather concentrate on my movement than on my r-button. Much more relaxed ![]() Lim-Dul, as longs as it works, I dont care if its complicated ![]() |
Author: | [SpA]Minimoose! [ 03 Jan 2009, 00:53 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Yeah its not skillful to press 'r' after each shot, so why not use something which does the repetitive tasks therefore letting you concentrate on things which require skill. |
Author: | Marmot [ 03 Jan 2009, 01:03 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
IMO that's better to have full control when to reload and when not. Is it really hard to press R sometimes :> ? |
Author: | [SpA]Minimoose! [ 03 Jan 2009, 09:53 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Marmot wrote: IMO that's better to have full control when to reload and when not. Is it really hard to press R sometimes :> ?
Reload is cancelled by firing the weapon (In weapons such as the scattergun/rocket launcher), so this just reloads at every opportunity, so actually you have more control in other areas which actually need control. You would only get problems if you couldn't shoot while reloading (Such as the spy pistol), but thats the point of having different scripts for different guns.As a scout surrounded by a million people it can save you as you can concentrate on movement and firing, rather than using one finger that could be used for movement on the r button ![]() |
Author: | sebas [ 03 Jan 2009, 10:28 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I'll be giving it a try. Thanks! |
Author: | [SpA]Relentless [ 03 Jan 2009, 11:43 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]Minimoose! wrote: Marmot wrote: IMO that's better to have full control when to reload and when not. Is it really hard to press R sometimes :> ?
Reload is cancelled by firing the weapon (In weapons such as the scattergun/rocket launcher), so this just reloads at every opportunity, so actually you have more control in other areas which actually need control. You would only get problems if you couldn't shoot while reloading (Such as the spy pistol), but thats the point of having different scripts for different guns.As a scout surrounded by a million people it can save you as you can concentrate on movement and firing, rather than using one finger that could be used for movement on the r button ![]() |
Author: | Lim-Dul [ 03 Jan 2009, 14:07 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
He, he - "losing focus by using the r button" - and here, ladies and gentlemen, we see the superiority of my concept of controlling actions with the mouse and movement with the keyboard. I reload with mouse4 - this solution does about the same thing as this whole script. ^^ By the way - scripts are OK, my main gripe with this one is that it isn't designed properly and I'm too lazy to fix it because I don't see much use for it in my case... |
Author: | Bartg [ 03 Jan 2009, 16:55 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Reload on mouse button ftw ( especially if you play using arrows not wsad - like me ![]() ![]() |
Author: | [SpA]demm [ 03 Jan 2009, 17:43 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]Lim-Dul wrote: I'm too lazy to fix it because I don't see much use for it in my case...
Well... you could fix it for us just to show us your awesome scripting skillz.
|
Author: | Lim-Dul [ 03 Jan 2009, 17:57 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Nah - my e-peen currently feels big enough. Should it grow soft and small I can always return to this thread. ;-) |
Author: | [SpA]futari [ 03 Jan 2009, 18:24 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]Lim-Dul wrote: Nah - my e-peen currently feels big enough. Should it grow soft and small I can always return to this thread. Anybody got one of these lying around for the meeting, after we work our magic on his e-peen he'll want to rewrite this script for sure o:![]() ![]() You can take this as a compliment I suppose~ |
Author: | [SpA]Minimoose! [ 03 Jan 2009, 20:32 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I don't see what the point is of the arguments against it, you can have something which reloads instantly and automatically, or you can have a button to do it manually... |
Author: | Bartg [ 03 Jan 2009, 21:37 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
Some people may like having more control ingame ;] |
Author: | Lim-Dul [ 03 Jan 2009, 21:42 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I have only two arguments against the script: 1) You lose control over your reloads - this is a personal choice so it's actually not a very strong argument, especially since our best soldier player is using it ^^ 2) The script is not well written - it kinda works but like Baal said you need to initially scroll through the weapons and the various waits and rebinds induce an input-lag... Might only be a couple of milliseconds but still... |
Author: | sebas [ 03 Jan 2009, 21:47 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I've tried it today. It works wonders for the scout and the soldier. I'm having issues with it on medic though. It happens that I start to fire, one serynge is shot and he reloads. ![]() ![]() |
Author: | [SpA]Minimoose! [ 04 Jan 2009, 01:21 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]sebas wrote: I've tried it today. It works wonders for the scout and the soldier. I'm having issues with it on medic though. It happens that I start to fire, one serynge is shot and he reloads.
Make sure you have all the right scripts in the right .cfg files, mine is working perfectly for every character, sounds as if you have put the scout script into the medic.cfg. ![]() ![]() It does take a millisecond or so more time, but it has improved my ammo management so much that its saved me loads of times during wars, and if you do need it that much faster you can use it and use a mouse button for reload. It's also useful if you have low ammo in every gun, you can just switch through them without concentrating and it will auto reload them ![]() |
Author: | sebas [ 04 Jan 2009, 01:34 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
I'll just remove it from the medic altogether. It's not like I have to rpess R often when playing it. ![]() edit. Wait, I have nothing in the medic.cfg. ![]() |
Author: | [SpA]Minimoose! [ 04 Jan 2009, 09:01 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
[SpA]sebas wrote: I'll just remove it from the medic altogether. It's not like I have to rpess R often when playing it.
"autoreloadOFF"![]() edit. Wait, I have nothing in the medic.cfg. ![]() bind mouse1 +attack bind mwheelup invprev bind mwheeldown invnext bind q lastinv bind 1 slot1 bind 2 slot2 bind 3 slot3 That one goes into the medic one, it turns the script off for all the weapons of the character. |
Author: | [SpA]demm [ 04 Jan 2009, 10:27 ] |
Post subject: | Re: Weapon & Class Specific Reload Script |
As Lim-Dul already noted, that script is badly written. Apart from using key binds in aliases it's also overly complicated. And because it's so complicated and uses wait it introduces input lag. There is a much simpler way of achieving the same thing without wait: as long as +reload is on, you will automatically reload in TF2. This has not been the case in TFC and maybe this is why some scripters don't realize it. The simplest of all solutions would be a toggle bind, so you just switch +reload on whenever you want it. This is however bad if you switch weapons often. So here is the script I'm using, copied together from various sites. autoexec.cfg Code:
soldier.cfg
Code:
demoman.cfg
Code:
scout.cfg
Code:
And so on...Simply set a + in front of the reload if you want the weapon to autoreload else a -. This produces no input lag, has no bugs, you don't need to cycle weapons on spawn and supports the last used weapon button. PS (for Lim-Dul): I know I use binds in the class specific settings for the crouchjump which is not as clean as it could be, but I was just too lazy for aliases. |
Page 1 of 2 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited |