Replacing the Crowbar with the Stunstick: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(there's a talk page on each article for that)
m (→‎top: clean up, added deadend tag)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Multiple issues|
{{Dead end|date=January 2024}}
{{orphan}}
}}
Switching the crowbar to use the stunbaton is as simple as opening your scripts/weapon_crowbar.txt. Inside, find these 2 lines:
Switching the crowbar to use the stunbaton is as simple as opening your scripts/weapon_crowbar.txt. Inside, find these 2 lines:
<pre>
<pre>
Line 9: Line 14:
"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]]

Latest revision as of 10:09, 21 January 2024

Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

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.