problem with EV_INT_fixangle
Code:
new Float:angle[3]pls help me |
Re: problem with EV_INT_fixangle
1 Attachment(s)
If you want an anti-recoil, see this plugin by VEN.
|
Re: problem with EV_INT_fixangle
no, i want to add an effect of shaking hand while looking to the scope(stalker, call of duty etc.)
i have almost acomplished it, but the y axis stays 0(middle of the screen), and i dont know why, so it moves randomly like it suppose to(axis x and y), but you cant aim up and down(axis y) i just need it fixed |
Re: problem with EV_INT_fixangle
i will try it now, thanks for reply
edit: nah angles[2] = z axis still the same problem |
Re: problem with EV_INT_fixangle
1 Attachment(s)
You were changin X and Y.
but when i looked at this pic i though that it should be Y and Z. |
Re: problem with EV_INT_fixangle
Not tested, but it should work. Notice the change fromentity_get_vector(id,EV_VEC_angle,angle) to entity_get_vector(id,EV_VEC_v_angle,angle)
Code:
Code:
|
Re: problem with EV_INT_fixangle
set_pev(id, pev_fixangle, 2);
makes adding the angle instead changing it, i try it but it doesnt work there was a function or something to add an angle to player view but i dont remeber the name |
Re: problem with EV_INT_fixangle
Does this do what you want?
Using Engine: Code:
public add_to_aim(id, Float:up, Float:right)Code:
public add_to_aim(id, Float:up, Float:right) |
Re: problem with EV_INT_fixangle
not exacly couse when i call this every second, player isnt able to move the rifle
pls test it yourself is there a message that adds a vector to player aim ?? |
Re: problem with EV_INT_fixangle
1 Attachment(s)
Tested. It's working fine. You probably need to call it on playerprethink. This is the script I used to test it:
|
| All times are GMT -4. The time now is 16:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.