Removing Punch Angle (Visual Recoil) fro Created 8 years ago2016-11-24 05:21:57 UTC by Merz Merz

Created 8 years ago2016-11-24 05:21:57 UTC by Merz Merz

Posted 8 years ago2016-11-24 06:17:06 UTC Post #332411
[ "Removing Punch Angle (Visual Recoil) from .357" was the title I was going for but I guess it got cut off. ]

Hey everybody,

So I'm in the process of trying to nerf the .357, and all is going well as I've made it use the same ammo type as the glock. What I'm trying to do really is to reduce the .357 revolver to being just an ordinary weapon, essentially what you'd expect from a 9mm handgun.

The problem is despite everything else working I can't get the punch angle to go away. I've tried commenting out the line its mentioned in but I'm too much of a novice coding wise to know whether that line was even relevant.

"//UTIL_MakeVectors( m_pPlayer->pev->v_angle + m_pPlayer->pev->punchangle );" is the line im talking about, after I commented it out of course.

Is the punch angle actually a part of the animation? Or maybe something actually related to the Vector function?

How would I make it essentially equal to the Glock's punch angle?
Posted 8 years ago2016-11-24 08:06:11 UTC Post #332414
You can disable the punch angle for the 357 only by removing the code that sets the angle.

This is the line that you'll need to modify: https://github.com/ValveSoftware/halflife/blob/master/cl_dll/ev_hldm.cpp#L779
Posted 8 years ago2016-11-24 18:39:02 UTC Post #332429
Hah so thats where it is. I was avoiding the client dll because its solution doesn't want to build in Visual Studio 15.

Do you use any fork when you're working with the half life master? I use https://github.com/malortie/halflife but so far its only worked with hldll. I still get a flood of syntax errors with client dll.
Posted 8 years ago2016-11-24 22:55:48 UTC Post #332434
I made my own fork: https://github.com/SamVanheer/HLEnhanced
Note that it goes far beyond just fixing problems, i've restructured the entire codebase to be a little easier to search through, and there are a lot of other changes as well.
Posted 8 years ago2016-11-24 23:05:32 UTC Post #332435
Hell yeah dude, I saw that name in the forum thread list but wasn't sure what it was.

This will me help me out a lot, I'd been dying to mess with the client code and this finally let me.

Thanks for making this, I think I'll be using this fork from now on.
You must be logged in to post a response.