get user aim angle and change it (htfiwdt??)
does anyone know how to get players aim angle and then set it with a slight modification ?
so i could change the angle of players aim for recoil things, hand shaking etc.(CS Reality mod :>) thx |
Re: get user aim angle and change it (htfiwdt??)
I found that snippet to get the user aiming-angle:
Code:
#include <amxmodx>(http://www.amxmodx.org/doc/source/fu...set_vector.htm) you can set an angle :) Hope that helps!? greetz regalis |
Re: get user aim angle and change it (htfiwdt??)
1 Attachment(s)
thx, but what i am doing wrong here ?
Code:
public moving(id, mode) |
Re: get user aim angle and change it (htfiwdt??)
If i'm not wrong i thing you are changing one angle that shouldn't be changed...
Code:
if(mode == 1)greetz regalis |
Re: get user aim angle and change it (htfiwdt??)
nope, its almost the same thing
|
Re: get user aim angle and change it (htfiwdt??)
You did not specify what vector to change:
Vector 0 is EV_VEC_origin, so i think you are trowing the player of the map change: entity_set_vector ( id, 0, anglesnew) to: entity_set_vector ( id, EV_VEC_v_angle, anglesnew) For list of all vectors and others: http://www.amxmodx.org/funcwiki.php?go=module&id=3 and, you can use instead of: anglesnew[0] = angles[0] + random_float(-20.5,20.5) anglesnew[1] = angles[1] + random_float(-21.0,21.0) anglesnew[2] = angles[2] + random_float(-20.5,20.5) to: angles[0] += random_float(-20.5,20.5) angles[1] += random_float(-21.0,21.0) angles[2] += random_float(-20.5,20.5) entity_set_vector ( id, EV_VEC_v_angle, angles) |
Re: get user aim angle and change it (htfiwdt??)
thx! im trying it!
edit: doesnt work: Code:
public moving(id, mode) |
Re: get user aim angle and change it (htfiwdt??)
Hmm... hold on, let me try
EDIT: Ok this works: PHP Code:
|
Re: get user aim angle and change it (htfiwdt??)
2 Attachment(s)
now it works but not exacly how it ment to be
try voi_sniperrealism2.sma it should work similiar to voi_sniperrealism.sma |
Re: get user aim angle and change it (htfiwdt??)
hmm... I see what you want
You want a plugin that set's player view up and down while he walks -I do not think you need to use ScrShake, it is just too much -The correct would the player view go up and down, but you are just setting random numbers, I would say to do something to the player's view go up and a little to one side one time, and down and a little to the other side -You are executing moving(id, mode) two times in check_movement(playerid[]), and one time even if the player is not moving -I never sow someone use this: PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 06:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.