Replacing the Crowbar with the Stunstick: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(orphan)
(.)
Line 10: Line 10:
"playermodel" "models/weapons/w_stunbaton.mdl"
"playermodel" "models/weapons/w_stunbaton.mdl"
</pre>
</pre>
{{note|This will not get you the glow effect, but only the model.}}
{{note|This will not get you the glow effect, but only the model. The one in Half-Life 2 is also not finished. Use the one from Half-Life 2: Deathmatch.}}




[[Category:Tutorials]]
[[Category:Tutorials]]

Revision as of 05:55, 13 August 2018

Switching the crowbar to use the stunbaton is as simple as opening your scripts/weapon_crowbar.txt. Inside, find these 2 lines:

	"viewmodel"	"models/weapons/v_crowbar.mdl"
	"playermodel"	"models/weapons/w_crowbar.mdl"

And change to:

	"viewmodel"	"models/weapons/v_stunbaton.mdl"
	"playermodel"	"models/weapons/w_stunbaton.mdl"
Note.pngNote:This will not get you the glow effect, but only the model. The one in Half-Life 2 is also not finished. Use the one from Half-Life 2: Deathmatch.