From: Mario Date: Tue, 5 Jul 2016 09:01:41 +0000 (+1000) Subject: Fix view snapping as a vehicle spectator X-Git-Tag: xonotic-v0.8.2~700^2~97 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1b5d274d75fb7995fe2a3eefe34e9b430a99422;p=xonotic%2Fxonotic-data.pk3dir.git Fix view snapping as a vehicle spectator --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 1cc143d74..146209528 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1623,7 +1623,9 @@ void SpectateCopy(entity this, entity spectatee) this.hud = spectatee.hud; if(spectatee.vehicle) { - this.fixangle = false; + this.angles = spectatee.v_angle; + + //this.fixangle = false; //this.velocity = spectatee.vehicle.velocity; this.vehicle_health = spectatee.vehicle_health; this.vehicle_shield = spectatee.vehicle_shield; @@ -1633,12 +1635,12 @@ void SpectateCopy(entity this, entity spectatee) this.vehicle_reload1 = spectatee.vehicle_reload1; this.vehicle_reload2 = spectatee.vehicle_reload2; - msg_entity = this; + //msg_entity = this; - WriteByte (MSG_ONE, SVC_SETVIEWANGLES); - WriteAngle(MSG_ONE, spectatee.v_angle.x); - WriteAngle(MSG_ONE, spectatee.v_angle.y); - WriteAngle(MSG_ONE, spectatee.v_angle.z); + // WriteByte (MSG_ONE, SVC_SETVIEWANGLES); + //WriteAngle(MSG_ONE, spectatee.v_angle.x); + // WriteAngle(MSG_ONE, spectatee.v_angle.y); + // WriteAngle(MSG_ONE, spectatee.v_angle.z); //WriteByte (MSG_ONE, SVC_SETVIEW); // WriteEntity(MSG_ONE, this);