*Actually* Change a players aiming angles?
I have searched for quite a while and have never seen anyone successfully do this.
I want to change the vector that a client's crosshair is aiming at. (Reason has to do with DoD's style of recoil handling, a lot diff. than cs) I can absolutely get the aim, by reading pev_v_angle or reading UC_ViewAngles, but neither actually do anything when I set them. One of the threads on this forum suggested setting pev_fixangle to 1 after I set pev_v_angle. That's a misinterpretation - all pev_fixangle does is the equivelant of pressing the "Home" key on your keyboard in game - it brings your aim back to straight forward (y-angle-wise). ---------------------------------------- I have tried hooking CmdStart, which allows me to read UC_ViewAngles but not set them. I have tried this in normal register_forward() and as post. Code:
Note that g_set is a global variable set with a client command in a properly working function. Has anyone ever actually changed where a player is aiming, or knows how? |
Re: *Actually* Change a players aiming angles?
|
Re: *Actually* Change a players aiming angles?
Quote:
To my knowledge AssKicR, Freecode and myself was the 1st to maniplate viewing angles of clients for AMX Mod when we created SoccerMod :mrgreen: |
Re: *Actually* Change a players aiming angles?
Voi, I can't believe I actually missed that. I've seen that thread before too, but I never imagined it actually worked...
|
Re: *Actually* Change a players aiming angles?
This works for me perfectly, but it's engine.
Code:
|
Re: *Actually* Change a players aiming angles?
From HLSDK:
Quote:
|
| All times are GMT -4. The time now is 16:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.