User:GrampaSwood/RandomKnowledge
A random assortment of TF2 or Source knowledge that I don't know where else to put but may be useful to the Wiki or otherwise.
Contents
Decompiling TF2 maps
BSPSource is a program you can use to decompile a .bsp
file (a map file ready to be played in TF2) into a .vmf
file (a map file usable in the Valve Hammer Editor). Simply drag the .bsp
into the bspsrc.bat
and the .vmf
will be automatically put in whichever folder the original .bsp
was in.
Changing and easily finding UI elements
vgui_drawtree 1
(requires sv_cheats
set to 1
) can be used to identify any on-screen UI elements under the TFRootPanel
(or something similar, I can't check it right now).
Fixing up old weapon mods
Weapon mods from before a certain time were created with the old weapon model paths, which means they no longer work with the current ones. To fix them, simply unpack the whole .vpk
, change the folder structure to match the current one for the weapon (found in items_game.txt
under model_player
. Sometimes it's just putting everything into "workshop", but it may vary. Repackage it by dragging all the files into vpk.exe
in Team Fortress 2/bin/x64
.
Other
Crusader's Crossbow code
The Crusader's Crossbow's code is located in the Rocket Launcher's code files, instead of its own.