Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Donations
Please Support Us!

Please help keep (=WDG=) alive

Donate with PayPal!
Last 100 Shouts:
January 16, 2025, 08:56:20 PM
Happy New Year!
January 27, 2024, 05:26:45 PM
Happy new year WDG
December 10, 2023, 05:52:39 PM
Hello Power!
November 24, 2023, 09:51:34 PM
Helloes! I'm here for my annual password change! How is everyone doing?
August 03, 2023, 08:42:51 PM
WDG are going to i71. All welcome. Message for more information or ask on discord
July 27, 2023, 07:35:21 PM
The WDG discord channel is up and running. Send me a message or post for details
December 08, 2022, 04:05:12 PM
Odd. Should do. Send Mode a messsage here. He should be able to pick it up and send you an invite
December 07, 2022, 11:26:55 PM
@berath link doesn?t work Sad
August 08, 2022, 09:32:46 PM
December 23, 2020, 12:34:53 PM
Spammers be gone!
September 28, 2020, 11:18:57 PM
Nice!
September 28, 2020, 09:55:06 PM
I’m in 🙌
September 28, 2020, 02:59:45 PM
Yay!!!!!! Wix is in da house
September 28, 2020, 02:55:44 PM
Hey Berath !! I made it !
September 25, 2020, 05:13:56 PM
Wix - we may have some new friends playing a new game finding their way here soon.....
July 01, 2020, 11:05:23 PM
Hello Terror. People still drop by here now and again
June 29, 2020, 02:02:45 PM
Hi guys. I hope you are all well and keeping sane and safe during these trying times (and all that).

Just FYI that mode was looking for ways to get back in touch via reddit (r/WDG).
February 24, 2020, 09:26:46 AM
Zombie TF2? Do we need to dress up?
February 19, 2020, 01:03:56 AM
I'd play zombie TF2
February 19, 2020, 12:52:19 AM
Any appetite for a TF2 revival?
February 19, 2020, 12:52:01 AM
Awesome
February 19, 2020, 12:48:30 AM
Yes this thing is still on
February 19, 2020, 12:47:16 AM
Hello! Is this thing still on?
December 26, 2019, 12:43:10 AM
Merry Christmas!!!
August 13, 2019, 07:35:11 PM
Sweeping and clearing out the cobwebs, keeping everything spruce https://gph.is/2oImD0j
March 08, 2019, 11:38:14 AM
Cheers Stu / Berath was going to happen one day Sad
March 06, 2019, 11:08:46 PM
It's officially 'not secure' according to Chrome now
March 06, 2019, 11:07:11 PM
Damn. 1&1 have upgraded their something or other but seem to have allowed for ancient forums like this to keep on
March 05, 2019, 03:37:50 PM
NuB site is no more due to a forced PHP v7 upgrade on the web host that breaks SMF/TinyPortal.
January 31, 2019, 09:50:48 AM
Sad
January 22, 2019, 11:22:09 PM
Sad nub  site down Sad bye bye

January 01, 2019, 11:43:02 AM
Happy new year.
Who Dares... Grins!!
December 30, 2018, 08:04:52 PM
no
December 29, 2018, 12:05:55 PM
MEssaage me
for a free steam key for faeria
December 25, 2018, 02:35:39 PM
merry xmas wdg
December 23, 2018, 11:34:33 AM
Hello Milli!
December 21, 2018, 10:55:25 PM
Hello WDG!
December 13, 2018, 10:51:13 PM
I still pop by to give the old place a dusting and clear out
November 09, 2018, 03:36:17 PM
The shoutbox has actually had shouts in it recently? Impossible.
November 08, 2018, 07:45:58 PM
:dohjan: :newkid:
November 06, 2018, 07:11:48 PM
Enjoy!
November 05, 2018, 11:49:05 PM
Just poking about
June 02, 2018, 12:56:39 PM
Goodness me, so it does!
May 22, 2018, 03:38:35 PM
this site needs a shout in 2018 Smiley
November 16, 2017, 08:08:43 PM
Spam removed. Thank you muchly Hulinut
October 15, 2017, 06:02:47 PM
Yay, been fixed!
October 14, 2017, 07:08:12 PM
I'm trying to get the mumble server up again
October 11, 2017, 06:23:26 PM
Orange Box 10 years old wow
June 18, 2017, 09:46:41 PM
Fluffy!
June 14, 2017, 03:14:35 PM
:p
May 30, 2017, 10:14:48 PM
Hmph. Spammers!
April 19, 2017, 08:20:44 PM
Also - hai!
April 19, 2017, 08:20:38 PM
Just in case no-one saw it - I posted about i61 over on the wdg-reddit!
April 17, 2017, 02:18:03 PM
April 16, 2017, 12:28:45 PM
Don't mind me, just helping Berath clean up the dust
April 04, 2017, 09:46:13 PM
Mumble server down: I've submitted a ticket
March 13, 2017, 01:20:32 AM
It is. Sleeping
March 11, 2017, 06:24:54 PM
so quiet
December 06, 2016, 03:10:39 PM
Every day or so I drop by to empty out the logs, dust down the furniture and shake out the curtains
November 04, 2016, 05:15:57 PM
How's tricks WDG?
November 02, 2016, 10:36:32 PM
Yay CruelCow!!
November 01, 2016, 08:17:40 PM
Yeah, I still check here regularly
November 01, 2016, 06:16:46 PM
Forum is back up after I did some tinkering. Did anyone notice it was down?!?
September 03, 2016, 05:48:48 PM
Thanks for offering but platformers = frustration for me. All that jumping about and getting impaled
September 03, 2016, 10:54:37 AM
Does anyone want a 75%off coupon for Feist?
July 09, 2016, 02:56:39 PM
I knew you were behind them!
July 08, 2016, 11:40:05 AM
What the fucking hell is all this shit?

You'll be blaming me for shit Tf2 updates next!
July 06, 2016, 11:35:09 PM
Therefore, Lefty is indeed responsible
July 06, 2016, 10:56:20 PM
Wales voted Leave
June 25, 2016, 05:30:56 PM
Well he *is* called Leftism
June 24, 2016, 07:36:47 PM
I'm going to completely unjustifiably hold Lefty to blame for the Brexit.
That is all.
June 05, 2016, 01:56:52 PM
Woop woop i58 ticket bought!
May 13, 2016, 06:08:28 PM
I want that game
May 07, 2016, 10:20:36 PM
its not optimized well just like the ps4 version
May 07, 2016, 09:01:50 PM
why does everyone's gone rapture run like doggegg on my pc
April 13, 2016, 05:18:58 PM
Just to really bang it home. WDG sub-reddit here: https://www.reddit.com/r/WDG/
April 06, 2016, 10:06:39 AM
Thank you Smiley
April 04, 2016, 04:24:56 PM
Just send you one.
April 04, 2016, 10:48:17 AM
If there are any still going, I'll have one
April 02, 2016, 11:47:32 AM
i have beta passes if anyone wants them as well
March 23, 2016, 12:18:40 PM
If anybody wants a tf2 competetive beta pass, i have a spare.
March 18, 2016, 12:18:46 PM
It's too expensive Sad
March 15, 2016, 03:24:04 PM
Will you all go buy The Division now so I have someone to play with? Smiley
March 11, 2016, 08:32:56 PM
FIREWATCH
March 11, 2016, 07:56:09 PM
March 11, 2016, 07:56:08 PM
March 02, 2016, 06:02:38 PM
some of the stealth sections are a bit of a drag, but they're not as bad as the VIP escort missions in THE VITNESS
March 02, 2016, 12:06:23 PM
Easy with the spoilers, guys! I'm still  on the blunderbuss part.
March 01, 2016, 09:17:32 PM
Can't believe Henry managed to use his NAVY Seal experience to defuse the bomb that was strapped to the bear in the end
March 01, 2016, 03:38:29 PM
I just unlocked the rifle scope in firewatch, makes it much easier to pick off bears before they get into melee range
March 01, 2016, 12:34:14 PM
FIREWATCH
March 01, 2016, 12:13:37 PM
I can't believe GAMERS don't like the witness. It's the MOST GAMER game EVER.
February 29, 2016, 12:08:32 PM
Its overrated. Now FIREWATCH on the other side...
February 29, 2016, 11:21:43 AM
I got the basic ending in the witness and it was B A D
February 22, 2016, 10:58:37 AM
I have no understanding of the environmental puzzles
February 22, 2016, 10:58:25 AM
Every so often someone says something about "environmental puzzles" in the witness and I skip it because of spoilers
February 15, 2016, 01:02:48 AM
press x to exercise 5th freedom
February 14, 2016, 11:53:36 AM
My game came with an EXCLUSIVE PREORDER CODE for the Chaos Theory suit, shoulda preordered DUH
February 14, 2016, 02:02:52 AM
i want the super stealth suit.

I go lethal on grim missions
Members
Total Members: 312
Latest: Weston432
Stats
Total Posts: 129727
Total Topics: 3983
Online Today: 26
Online Ever: 555
(October 08, 2025, 07:43:27 PM)
Users Online
Users: 0
Guests: 15
Total: 15
My CommunityForumGamingTeam Fortress 2Topic: Hide Viewmodel Script
Pages: [1] 2 3 ... 5
Print
Author Topic: Hide Viewmodel Script  (Read 48897 times)
0 Members and 1 Guest are viewing this topic.
Hzza
Guest
« on: October 08, 2009, 11:31:53 PM »

A couple of people have asked about this so I thought I'd just whack a post up about it.

This script when placed in your individual class .cfg files will hide/show weapon viewmodels as you see fit. I (and Cheez and Mama) found recently that turning off models for hitscan weapons = ultimate win and this will turn them on/off for each different weapon and can be changed around for each class.

//Viewmodel show/hide
-----------------------------
alias slot_1 "slot1; r_drawviewmodel 0"
alias slot_2 "slot2; r_drawviewmodel 0"
alias slot_3 "slot3; r_drawviewmodel 1"
bind "MWHEELUP" slot_1
bind "MWHEELDOWN" slot_2
bind "MOUSE5" slot_3

And thats it. You can change the bind to whatever key you currently use. The only downside being that you can't use the mousewheel to scroll weapons and sometimes when you change class it'll show/hide the viewmodel, but this sorts itself out if you change weapon and then change back.

edit - To show viewmodel change the 0 to 1 and vice versa Wink. I'm also sure theres a way to have different crosshairs for different weapons and stuff as well but CBA to look it up yet so this will have to do you for the time being.

edit 2 - If you want different crosshairs for each weapon add this line inside the quote marks after the r_drawviewmodel 0 command

"; cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 0; cl_crosshair_file crosshair5; cl_crosshair_scale 30"

Red, green and blue change colour (obviously), crosshair file is the type/style of crosshair and the scale is the size. I don't know what the numbers are so screw you, figure it out for yourselves! You'll also need to change them for all weapons for all classes otherwise you'll end up carrying them over from classes you haven't set up Wink.
« Last Edit: October 09, 2009, 12:16:59 AM by Hzza » Logged
scroggage
Guest
« Reply #1 on: October 08, 2009, 11:42:59 PM »

I'm not sure I'm cool/good enough at TF2 to find this useful.

Besides, don't you like seeing your gun?
Logged
LtMama
Official WDG Kitten


Karma: 1524
Offline Offline

Gender: Male
Posts: 3764


Meow?


« Reply #2 on: October 08, 2009, 11:52:59 PM »

I thought the same, but trust, it made a huge difference
Logged

Finaldeath


Karma: 111
Offline Offline

Gender: Male
Posts: 1455



« Reply #3 on: October 09, 2009, 11:23:52 AM »

Some of us like to see when we reload Wink it's more fun.
Logged

Finaldeath
Nineblade
Official WDG Tattooed Person


Karma: 1220
Offline Offline

Gender: Male
Posts: 2503


Get witch or die trying


« Reply #4 on: October 09, 2009, 12:21:32 PM »

I like seeing my weapon out in front of me!
Logged
Cheez


Karma: 195
Offline Offline

Gender: Male
Posts: 813



« Reply #5 on: October 09, 2009, 12:45:53 PM »

Its more fun having it at least partially hidden from view Wink
Logged

Junta
Guest
« Reply #6 on: October 09, 2009, 01:37:33 PM »

Its more fun having it at least partially hidden from view Wink in a fit wench
Phixed
Logged
egg



Karma: 366
Offline Offline

Gender: Male
Posts: 1620

Goes on and on [∞]


« Reply #7 on: October 09, 2009, 05:26:22 PM »

Its more fun having it at least partially hidden from view Wink in a fit wench, bloke, child, or animal
Phixed

Fixed some moar Cheesy
Logged
Terror
Guest
« Reply #8 on: October 09, 2009, 09:43:28 PM »

what do you mean by "hitscan" weapons?
Logged
CruelCow
Unofficial Official Non-WDG WDG member


Karma: 1665
Offline Offline

Gender: Male
Posts: 5922


Move along. Nobody suspicious is here.


« Reply #9 on: October 09, 2009, 11:30:35 PM »

There are 2 kinds of weapons:
Projectile: Really spawns a projectile that flies through the scenery. Good example is the rocket launcher or grenades.
Hitscan: Too fast to be implemented as projectiles. So the engine draws a line between the shooter and the point where he aims at and checks if somebody is between. Good examples are sniper rifles and pretty buch all bullet based weapons in all games.
Logged
Finaldeath


Karma: 111
Offline Offline

Gender: Male
Posts: 1455



« Reply #10 on: October 10, 2009, 01:00:38 PM »

I'm not actually sure which are which in the game though. The pistol and minigun and other bullet based weapons do have projectiles which do take some time to get to their targets (especially far away targets).

Sniper rifles are instant, but that's about it? Hmm...

Hitscan weapons are very old school. They were a cheap and ugly hack to get weapons to work at all in a 3d world Smiley
Logged

Finaldeath
Cheez


Karma: 195
Offline Offline

Gender: Male
Posts: 813



« Reply #11 on: October 10, 2009, 01:03:19 PM »

The pistol and minigun are actually hitscan mate, the onscreen bullets are just for effect but actually they take no time to get to their targets.
Logged

Finaldeath


Karma: 111
Offline Offline

Gender: Male
Posts: 1455



« Reply #12 on: October 10, 2009, 08:18:18 PM »

Well, the wiki is truth, we trust the wiki:

# All projectile weapons of Team Fortress 2, minus rockets, grenade launchers, syringe guns, flaregun, arrows and baseballs.

What a shame, it's so old school. Makes me want to go play a military sim! Smiley
Logged

Finaldeath
Dodgy


Karma: 473
Offline Offline

Gender: Male
Posts: 911



« Reply #13 on: October 11, 2009, 03:55:47 PM »

I started using this recently as well, and I was surprised at how big a difference it made. I'd recommend it to anyone with a main class that uses hitscans.
Logged

Quote from: Jebus
omg your minis are so aids!
CruelCow
Unofficial Official Non-WDG WDG member


Karma: 1665
Offline Offline

Gender: Male
Posts: 5922


Move along. Nobody suspicious is here.


« Reply #14 on: October 11, 2009, 04:05:48 PM »

Shouldn't it be possible to do with the mwheel?

alias slot_1 "slot1; r_drawviewmodel 0; bind "MWHEELUP" slot_3; bind "MWHEELDOWN" slot_2"
alias slot_2 "slot2; r_drawviewmodel 0; bind "MWHEELUP" slot_1; bind "MWHEELDOWN" slot_3"
alias slot_3 "slot3; r_drawviewmodel 1; bind "MWHEELUP" slot_2; bind "MWHEELDOWN" slot_1"

Edit: Just tried. Yep it works.
Edit2: While it does what it is supposed to, I encountered some strange bug. Pressing both mouse buttons as heavy will unspin the minigun. Spies can't disguise as pyros (scout solly too?).
« Last Edit: October 12, 2009, 02:20:15 AM by CruelCow » Logged
Pages: [1] 2 3 ... 5
Print
My CommunityForumGamingTeam Fortress 2Topic: Hide Viewmodel Script
Jump to:  


Who Dares... Grins UK TF2 Clan