Kicking ass and taking names, making really awesome games!

Report RSS The Nightmare Chronicles: The Dream Crusher part 2

Posted by on

After much frustration and confusion, I was finally able to figure out why the dream crusher was crushing my dreams by not animating when i attacked with it. As it turns out, the base hl2 code did not actually tell the player to animate for melee attacks like it did for weapons like the SMG. Basically there is 2 or 3 places that each weapon pretends to take control of what the player is doing when in fact they are all just helper classes for 1 that really does. In this case the basebludgeonweapon.cpp files that seemd to be just a sub part of the melee weapon I was making is where the animation was supposed to be set but wasn't. So simply adding a pPlayer->SetAnimation( PLAYER_ATTACK1 ); to the primary attack funtion fixed it.
So now i feel relieved and at the same time incredible annoyed that I couldn't find this sooner. But Tedrich can now swing his hammer in paniced fear and will soon be fighting off his worst nightmares.

Tedrich in Game with The Dream Crusher

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: