I wanted to make a new crowbar which hit fast and hard and from far away. So I followed the tutorial from Interlopers on adding a new weapon, which was actually really nice.
when it came to the creation of the coding I copied weapon_crowbar.cpp and weapon_crowbar.h and renamed it to weapon_supercrowbar.cpp and such. I then proceeded to rename all references to crowbar to supercrowbar so there wasnt a conflict. It compiles just fine now.
I got my crowbar up and running... and im able to use it in game, with one problem... I cannot actually damage any enemy!
It shows blood spot on the NPC wherever i hit it, but no blood flies onto the ground. Even wierder yet... I can kill a headcrab with my crowbar, but no blood comes out of it, where otherwise blood would splat.
The error in the console reads:
- Code: Select all
AddMultiDamage: g_MultiDamage.GetDamageForce() == vec3_origin
CBaseEntity::TakeDamage: with inputInfo.GetDamageForce() == vec3_origin
If anyone has any suggestions please help?
Thanks in advance!




