Talk:Adding a new weapon to your mod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 9: Line 9:


Can someone help me resolve this problem
Can someone help me resolve this problem
--[[User:Disabled logic|Disabled logic]] 06:58, 21 February 2012 (PST)


EDIT: I fixed it, i just had to change a private to a public in weapon_hl2mpbasehlmpcombatweapon.h where it told me to insert the E_*** data
EDIT: I fixed it, i just had to change a private to a public in weapon_hl2mpbasehlmpcombatweapon.h where it told me to insert the E_*** data
--[[User:Disabled logic|Disabled logic]] 06:58, 21 February 2012 (PST)

Revision as of 07:58, 21 February 2012

Stance Errors

Ok i have followed this tutorial exactly for my source 2007 HL2DM mod and i am getting an error like this

error C2248: 'E_DUCK' : cannot access private enumerator declared in class 'C_BaseHL2MPCombatWeapon'

This is repeated a couple more times but the E_DUCK is replace by either E_MOVE E_STAND E_RUN E_JUMP E_INJURED E_DYING

Can someone help me resolve this problem

--Disabled logic 06:58, 21 February 2012 (PST)

EDIT: I fixed it, i just had to change a private to a public in weapon_hl2mpbasehlmpcombatweapon.h where it told me to insert the E_*** data

--Disabled logic 06:58, 21 February 2012 (PST)