Доброе утро, уважаемый посетители Pro Pawn!
И у меня вопрос, по камере...
Можно ли как то убрать разворот ей?
PHP код:
new Float: p_pos_camera[3], Float:player_current_angle;
GetPlayerPos(killerid, p_pos_camera[0], p_pos_camera[1], p_pos_camera[2]);
const Float: CAM_DISTANCE = 5.0;
GetPlayerFacingAngle(killerid, player_current_angle);
p_pos_camera[0] = p_pos_camera[0] + CAM_DISTANCE * floatsin(-player_current_angle, degrees);
p_pos_camera[1] = p_pos_camera[1] + CAM_DISTANCE * floatcos(-player_current_angle, degrees);
SetPlayerCameraPos(playerid, p_pos_camera[0], p_pos_camera[1], p_pos_camera[2]);
SetPlayerCameraLookAt(playerid, p_pos_camera[0], p_pos_camera[1], p_pos_camera[2], 1);