Making a gun model empty

  • Thread starter Thread starter blazertailgunner
  • Start date Start date
B

blazertailgunner

Guest
hey,

is there a way to make a mod render no weapon model when in first person mode?

i'm trying to make the physgun invisible when in first person, still functioning, but invisible. i've looked thru all the relevant .cpp files and have only managed to remove the effects [glowing sprites, etc]. nowhere in the source files can i find mention of it telling HL2MP which model to load.

any ideas?
 
If i type in 'viewmodel_fov 0' while in-game, the result is precisely what i'm looking for. as a work around to my previous question, is there a way to set 'viewmodel_fov 0' in the code when a paritular weapon is selected in a mod?
 
i'm pretty sure if you open
Code:
..\Steam\SteamApps\SourceMods\[mod_name]\cfg\config.cfg
and add
Code:
viewmodel_fov 0
somewhere near the middle or end it should have the intended effect
 
Kobnar said:
i'm pretty sure if you open
Code:
..\Steam\SteamApps\SourceMods\[mod_name]\cfg\config.cfg
and add
Code:
viewmodel_fov 0
somewhere near the middle or end it should have the intended effect


sounds great, but will this change transfer to the computer which will have this mod installed? in other words, is that cfg file simply local settings or a part of the actual mod to be distributed?
 
have you looked in the script .txt fles by chance? thats what tells the source engine what model to load.
 
DarkViper said:
have you looked in the script .txt fles by chance? thats what tells the source engine what model to load.


could you elaborate a little? i looked thru my folders containing all the source code and etc, but no configs or scripts mentioning this.

must be looking in the wrong place! :P
 
sounds great, but will this change transfer to the computer which will have this mod installed? in other words, is that cfg file simply local settings or a part of the actual mod to be distributed?

I'm pretty sure that's the file you want. Since when you distribute the mod and it's content you will distributing the mod's entire folder, that file should be included.

When you run the mod it pulls its configurations from the "/cfg/" folder. I'm workign on a mod with some friends of mine and that's how I distribute the master-copy versions of the game to them. So far everything works fine.
 
yep, this got me looking in the right direction.

the final solution is in:

Code:
C:\Program Files\Valve\Steam\SteamApps\SourceMods\MODNAME\scripts\launcher.txt
at the end of the file adding:
Code:
 "viewmodel_fov"  "0"

does the trick.

thanks for all the help! :D

*edit* ok i lied. i was tryin a few things out simultaneously and the kicker was changing the model in the weapon_physcannon.txt to empty quotes " " .

hmm i've tried adding the viewmodel_fov to many of the script filles, with out succes.

my above model hack works, but the console shows a bunch of errors, and that can't be good ;-P
 
ok well it looks like you've got everything sorted out... hope I helped a bit. ;)
 
Kobnar said:
ok well it looks like you've got everything sorted out... hope I helped a bit. ;)


you did, and thank you kind sir! ;)
 
Back
Top