x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

sniperviewmodel script

Created 26th June 2009 @ 12:02

Add A Reply Pages: 1 2 Next »

Defur

Is it possible to script tf2 so I have everything except the sniper rifle in my right hand ?

It feels much better playing with left handed with the rifle, but now with the newest update I cant switch to it like I wanted.

so ?

Puppets

disconnect from the server, no other chance afaik

jgmaster

BM

setinfo cl_flipviewmodels 1
That line will flip the view models, the rest I am not sure about.

Defur

nothing on this?

Isai

flowerpower/

You might be able to do it with new cfgs.
Create two, name it leftmodel.cfg. In that you write setinfo cl_flipviewmodels 1, in the other setinfo cl_flipviewmodels 0 with the name rightmodel.cfg

Then go to your sniper config, and write
bind "1" "slot1; exec leftmodel.cfg"
bind "2" "slot2;exec rightmodel.cfg"
bind "3" "slot3;exec rightmodel.cfg"

You will have to bind the slots to exec rightmodel.cfg in every other class config too, but it works. Or should work, I wrote that on top of my head, but I did it the same way when I wanted different fov for each weapon.

Ino

dp.
dp.

alias Rifle “slot1;alias sr sr1;alias fr fr1;setinfo cl_flipviewmodels 1”
alias SMG “slot2;alias sr sr2;alias fr fr1;setinfo cl_flipviewmodels 0”
alias Kukri “slot3;alias sr sr2;alias fr fr2;setinfo cl_flipviewmodels 0”

bind 1 Rifle
bind 2 SMG
bind 3 Kukri
bind F2 “say_team Now playing: SNIPER!”

bind MOUSE1 +attack
bind MOUSE2 +attack2

//Sniperrifle-MP
alias sr1 SMG
alias sr2 Rifle
alias sr sr1

//MP-Kukri
alias fr1 Kukri
alias fr2 SMG
alias fr fr1

bind q sr
bind f fr

This is what I use (without the flipviewmodels though). Q makes you switch between Rifle and SMG, F between SMG and melee. Make sure to have “setinfo cl_flipviewmodels 0” in every other class config though, or it might mess up.

EDIT: Oh, and don’t forget to change the “” when you copy/paste, cause the ones in this forum don’t seem to work in TF2 configs

AnAkkk

Keep in mind that this won’t work for long, since you should not be able to change it during the game. Maybe you should get used to have it in the right hand.

Defur

EDIT: Oh, and don’t forget to change the “” when you copy/paste, cause the ones in this forum don’t seem to work in TF2 configs

Do you want me to put “” on everything?
or just replace the ones that you typed?

Defur

okay, I did what you said – but uhhh now all of the classes have left handed with their main weapon and everything is right handed.

almost there?

Isai

flowerpower/

Yes, you are almost there.

alias Rifle “slot1;alias sr sr1;alias fr fr1;setinfo cl_flipviewmodels 1″

change to setinfo cl_flipviewmodels 0 for every other config, and you are there.

hänsen

Team Popo!

i also got used to left handed bow, now the right handed bow sucks balls…
i just disconnect; cl_flipviewmodel 1; retry

anyway, if that other stuff works it would be nice :D

(btw. who cares in pcws that bow is not allowed :p)

Defur

Yes, you are almost there.

alias Rifle “slot1;alias sr sr1;alias fr fr1;setinfo cl_flipviewmodels 1″

change to setinfo cl_flipviewmodels 0 for every other config, and you are there.

should I only use those lines?
when I did that every class were left handed.

Ino

dp.
dp.

You need to rebind 1 2 3, q and f (in my case) in every other class config.

bind 1 slot1
bind 2 slot2
bind 3 slot3

bind MOUSE1 +attack
bind MOUSE2 +attack2

alias sr1 slot2
alias sr2 slot1
alias sr sr1

alias fr1 slot3
alias fr2 slot2
alias fr fr1

bind q sr
bind f fr

Defur


im not really sure what im doing wrong but uhh
I put all that in the other class configs and the one line that the other guy typed in the sniper cfg but uhh

Every weapon is with right handed still and when I have the 2nd weapon up and press Q it doesnt change back to the main weapon although the F bind seems to work pretty okay?

Nigh

¿
TF2.ro

you have to disconnect to be able to change the hand

Add A Reply Pages: 1 2 Next »