From 59ce2ca5d114a806286a970d1017877206fdfefc Mon Sep 17 00:00:00 2001 From: xtreme8000 Date: Wed, 13 Dec 2017 17:40:48 +0100 Subject: [PATCH] Fix death camera ESP --- src/cameracontroller.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cameracontroller.c b/src/cameracontroller.c index 6617ad2..45fd2ca 100644 --- a/src/cameracontroller.c +++ b/src/cameracontroller.c @@ -164,17 +164,17 @@ void cameracontroller_bodyview(float dt) { //this is needed to determine which chunks need/can be rendered and for sound, minimap etc... camera_x = players[cameracontroller_bodyview_player].pos.x-sin(camera_rot_x)*sin(camera_rot_y)*k; - camera_y = players[cameracontroller_bodyview_player].pos.y-cos(camera_rot_y)*k; + camera_y = players[cameracontroller_bodyview_player].pos.y-cos(camera_rot_y)*k+(players[cameracontroller_bodyview_player].alive?0.0F:1.0F); camera_z = players[cameracontroller_bodyview_player].pos.z-cos(camera_rot_x)*sin(camera_rot_y)*k; camera_vx = players[cameracontroller_bodyview_player].physics.velocity.x; camera_vy = players[cameracontroller_bodyview_player].physics.velocity.y; camera_vz = players[cameracontroller_bodyview_player].physics.velocity.z; matrix_lookAt(players[cameracontroller_bodyview_player].pos.x-sin(camera_rot_x)*sin(camera_rot_y)*k, - players[cameracontroller_bodyview_player].pos.y-cos(camera_rot_y)*k, + players[cameracontroller_bodyview_player].pos.y-cos(camera_rot_y)*k+(players[cameracontroller_bodyview_player].alive?0.0F:1.0F), players[cameracontroller_bodyview_player].pos.z-cos(camera_rot_x)*sin(camera_rot_y)*k, players[cameracontroller_bodyview_player].pos.x, - players[cameracontroller_bodyview_player].pos.y, + players[cameracontroller_bodyview_player].pos.y+(players[cameracontroller_bodyview_player].alive?0.0F:1.0F), players[cameracontroller_bodyview_player].pos.z, 0.0F,1.0F,0.0F); }