Reducing Recoil In CS: Source
Does anyone know how I can reduce recoil for clients but from the serverside in Counter Strike Source? I looked over some weaponmod script for eventscripts that has a recoil modification feature but it's been ages since I've coded anything in ES and it all just looks like <insert foreign language here>.
|
Re: Reducing Recoil In CS: Source
I believe recoil uses vecPunch (or something like that) so resetting that to 0 on weapon_fire works.. kinda. It's really choppy. And that makes no recoil at all, limiting would be a little more complicated.
|
Re: Reducing Recoil In CS: Source
When I try doing the following during weapon_fire event, it doesn't seem to reduce recoil at all.
Code:
new Float:attacker_playerPunchAnglePost[3] = {0.0,0.0,0.0}; |
Re: Reducing Recoil In CS: Source
set that in ClientPrethink
|
Re: Reducing Recoil In CS: Source
I'm sorry to be a stick in the mud but is it necessary that I set it in ClientPrethink? The first two posts here, https://forums.alliedmods.net/showth...chAngle&page=2 , seem to imply that it can be done in weapon_fire.
|
Re: Reducing Recoil In CS: Source
IIRC last time I used in Prethink
|
Re: Reducing Recoil In CS: Source
Ok I'm still working on this. When setting modifying recoil in event pre weapon_fire I noticed two things
Code:
new Float:attacker_playerPunchAnglePost[3] = {0.0,0.0,0.0};Code:
new Float:attacker_playerPunchAnglePost[3] = {600.250,0.0,140.0};I'm still trying to hook this on weapon_fire as I'm convinced by Fredd and SumGuys posts that you can change recoil to 0 without resorting to Prethink. Can anyone help? |
Re: Reducing Recoil In CS: Source
Code:
new Float:attacker_playerPunchAnglePost[3] = {0.0,0.0,0.0};What exactly is ClientPreThink? I've never seen or used it. |
Re: Reducing Recoil In CS: Source
It's a hook that DukeHacks has, it fires every frame for every client, before what they're going to do actually happens. Thus you can for example check if they're going to attack and then block it.
|
Re: Reducing Recoil In CS: Source
That sounds extremely useful.
|
| All times are GMT -4. The time now is 21:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.