Replacing the Crowbar with the Stunstick: Difference between revisions
Jump to navigation
Jump to search
Note:This won't replicate the glow effect, but will only put the model in the game.
Rodeoclown (talk | contribs) (The white flash won't be replicated :S) |
m ({{note}}) |
||
| Line 1: | Line 1: | ||
This is a very simple tutorial explaining how to replace the crowbar with a stunstick in your single player Half Life 2 mod. The stunstick model exists in HL2 deathmatch, so we are just going to get the textures and model from there and place them in our mod. | This is a very simple tutorial explaining how to replace the crowbar with a stunstick in your single player Half Life 2 mod. The stunstick model exists in HL2 deathmatch, so we are just going to get the textures and model from there and place them in our mod. | ||
{{note|This won't replicate the glow effect, but will only put the model in the game.}} | |||
===Extracting the model files=== | ===Extracting the model files=== | ||
Revision as of 08:31, 26 April 2006
This is a very simple tutorial explaining how to replace the crowbar with a stunstick in your single player Half Life 2 mod. The stunstick model exists in HL2 deathmatch, so we are just going to get the textures and model from there and place them in our mod.
Extracting the model files
- Create the following directories in your single player mod:
The stunstick's skin will go here:
Steam\SteamApps\SourceMods\YOURMOD\materials\models\weapons\v_stunstick
The model will go here:
Steam\SteamApps\SourceMods\YOURMOD\models\Weapons
- Using GCFScape, open the
Steam\Steamapps\half-life 2 deathmatch.gcf. - Navigate to
root\hl2mp\materials\models\weapons\v_stunstickand copy all the files in this directory to the equivalent directory in your mod. - Then navigate to
root\hl2mp\models\Weaponsand copy the following files to theWeaponsdirectory in your mod:
v_stunstick.dx80.vtxv_stunstick.dx90.vtxv_stunstick.mdlv_stunstick.sw.vtxv_stunstick.vvd
Replacing the Crowbar In-game
- Finally, to actually use this model we need to tell our mod that the stun stick is actually a crowbar. Rename
Steam\SteamApps\SourceMods\YOURMOD\scripts\weapon_stunstick.txttoweapon_crowbar.txt(you might want to back up the original first). - Now, to make it occupy the same slot in the weapons list open the new
weapon_crowbar.txtfile and change the"bucket_positon"to 0 instead of 3.
See it in action
- Create a new map and drop a
weapon_crowbaritem in it along with a bunch of crates to smash... - Run your new map and pick up the stunstick, use it just like you would a regular crowbar.
- Enjoy.