How can I do that...?
I found that stock some weeks ago but I couldn't find it anymore. What I want to know is how can I force an entity/player aim at a certain origin?
|
Re: How can I do that...?
PHP Code:
PHP Code:
EDIT: First one works just fine, but you need to convert aiming vector/float to angle. |
Re: How can I do that...?
I think you misunderstood what I said, lemme give more details:
I have the end position of where I'm aiming at, I just wanna make another player aim where my end position from my crosshair is. |
Re: How can I do that...?
PHP Code:
|
Re: How can I do that...?
I dunno if either the stock is wrong or the way it works with that plugin is wrong. But when I'd spray with the AK or any weapon with recoil, the camera goes crazy.
The reason I asked for such stock is that I might fix the wrong aim problem by making the player follow the end origin that the camera is looking at, but somehow it didn't work correctly, what could be wrong? PHP Code:
Edit: I've found this, but the player is not following the end position of the camera - https://forums.alliedmods.net/showpo...40&postcount=3 |
Re: How can I do that...?
here you go after few tests...
PHP Code:
|
Re: How can I do that...?
Nah, it isn't just the bullet decals. When I'd shoot a player right at him it doesn't hit. You're only creating the beam between the camera view to the end position, but it is not the same aiment of the player's. Also, the pev_fixangle makes the camera weird so many times.
I think I just need a code that makes the camera follow the player's aim end position, so doesn't matter which position I set it, it'll still follow exactly where i'm aimint at. |
Re: How can I do that...?
In getAimEndPosition replace the trace flag with DONT_IGNORE_MONSTERS See if this solve the problem.
Also in camera think replace get_user_origin with with pev_origin then add to the origin player view of... But I can assure that the camera aims where at the players aiming the problem' just with the bullet decals. |
Re: How can I do that...?
The camera moves automatically due the pev_fixangle, so I need to fix where i'm aiming at everytime. Like, if i'm aiming close to an enemy and he starts going to my crosshair, the camera instantly changes the angle to the enemy. Looks like an aimbot.
Anyway, I tested and it actually just make the bullet decals wrong, but the shoots goes right. I've blocked the bullet decal but it stills making the sparkles which I've removed with FM_UpdateClientData, but looks like I'll need to recreate all weapon's sound animations. |
Re: How can I do that...?
Quote:
|
All times are GMT -4. The time now is 10:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.