phpBB Forum
 
It is currently Thu Mar 26, 2020 5:52 am




Post new topic Reply to topic  [ 8 posts ] 
Melee weapon script 
Author Message
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Melee weapon script
I'm currently trying to find a script for melee weapons. The reason why is because I play without draw models and therefore using melee weapons is quite awkward.

Basically I want the script to show melee weapons.

Any help is appreciated. :)

_________________
Fluffy wrote:
Poopenschnitzel.

Fluffy wrote:
I SAID POOPENSCHNITZEL!!

Tank driver in Battlefield 3 wrote:
My cheese's mad funkies, yo

Quake 3 hit sound
Download and save to steam\steamapps\yoursteamaccountnamehere\team fortress 2\tf\sound\ui


Sat Aug 20, 2011 4:30 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Mar 23, 2008 11:44 pm
Posts: 3761
Location: Leicester, UK
STEAM_0:0:15279954
Post Re: Melee weapon script
Find your autoexec.cfg and add this. This script will show viewmodels when you hit Q, and hide them when you hit T:

bind Q 'r_drawviewmodel 1'
bind T 'r_drawviewmodel 0'

or you can try
bindtoggle T 'r_drawviewmodel'
this will toggle it when you press T.


Sat Aug 20, 2011 4:35 pm
Profile E-mail WWW
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Re: Melee weapon script
I don't have autoexec.cfg in my tf2 folder it seems. [mixed]


Sat Aug 20, 2011 5:33 pm
Profile E-mail
HH Donor
HH Donor

Joined: Thu May 08, 2008 12:07 am
Posts: 1941
STEAM_0:0:5406745
BattleTag: k3d#2960
Post Re: Melee weapon script
You need to create one.

And I believe you need an alias in order to link selecting primary / secondary / melee and then issue a hide or show command at the same time

_________________
moo <-- see it works


Sat Aug 20, 2011 5:56 pm
Profile E-mail
@H|H Reg
@H|H Reg
User avatar

Joined: Wed Dec 24, 2008 4:39 pm
Posts: 1275
STEAM_0:0:8714446
Post Re: Melee weapon script
http://www.mediafire.com/xhair

This program basically automatically creates configs for different crosshair/viewmodel settings for each class and each weapon. eg. you can have viewmodels off for scouts Scatter but on for Pistol and Bat. It works whether you use mousewheel, lastweapon or number keys for switching.

Remember to backup any config etc before messing around.

broesel also does a similar program but I have no experience using it

_________________


Sat Aug 20, 2011 6:22 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Re: Melee weapon script
Thanks a lot for the program, Kiss Kiss. Works exactly like I wanted it to. :)


Sat Aug 20, 2011 11:28 pm
Profile E-mail
HH Donor
HH Donor

Joined: Thu Jun 02, 2011 4:08 pm
Posts: 50
STEAM_0:1:12016824
Post Re: Melee weapon script
Be more like me.

Have the console key next to 1 (primary weapon) then after melleeing try to select primary weapon but instead open the console.

Then panic, press escape in the hope it closes the console but instead brings up the main menu.

It's alright though you can get rid of the console etc in spawn as you will die.


Sun Aug 21, 2011 1:26 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Re: Melee weapon script
That key doesn't work for me, H. I use a danish keyboard and I've never gotten that key to work.

The program has the added bonus that it doesn't save your melee weapon as your last used weapon. That way you won't look like a div in front of a heavy with your knife out. :P


Sun Aug 21, 2011 1:49 pm
Profile E-mail
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.