• Alternatives to ViewPunch?
    3 replies, posted
Hello. When using viewpunch on my sweps, if the recoil is set to very high, the bullets tend to stay below the crosshair. And according to the old wiki, it says [quote] Note that ViewPunch will not affect the aiming of a weapon from the cs weapon base and only the direction that the player is looking. [/quote] So what alternatives can i use to make it so that the spread is always centered with the crosshair?
Manually set the eye angles, look at the TTT recoil code. You won't get the smooth punch, but it will provide actual recoil. I like to combine the two, so the view angle change throws your aim off and the viewpunch makes it look smooth.
[QUOTE=Empty_Shadow;44433040]Manually set the eye angles, look at the TTT recoil code. You won't get the smooth punch, but it will provide actual recoil. I like to combine the two, so the view angle change throws your aim off and the viewpunch makes it look smooth.[/QUOTE] Hmm, i just looked at the weapon_tttbase but it seems that they're doing the exact same thing with viewpunch as i was? Maybe they're doing something i haven't noticed.
one sec i'll grab some of my code [editline]3rd April 2014[/editline] [code] if IsFirstTimePredicted()) then local eyeang = self.Owner:EyeAngles() eyeang.pitch = eyeang.pitch - recoil self.Owner:SetEyeAngles( eyeang ) end[/code] boom.
Sorry, you need to Log In to post a reply to this thread.