engine/EngineClientView.c
/*	Roll is induced by movement and damage
*/
Roll is induced by movement and damage
Roll is induced by movement and damage
void V_CalcViewRoll(void)
{
	float		side;
	side = V_CalcRoll (cl_entities[cl.viewentity].angles, cl.velocity);
	r_refdef.viewangles[ROLL] += side;
	if (v_dmg_time > 0)
	{
		r_refdef.viewangles[ROLL] += v_dmg_time/v_kicktime.value*v_dmg_roll;
		r_refdef.viewangles[PITCH] += v_dmg_time/v_kicktime.value*v_dmg_pitch;
		v_dmg_time -= host_frametime;
	}
	if (cl.stats[STAT_HEALTH] <= 0)
	{
		r_refdef.viewangles[ROLL] = 80.0f;	
		return;
	}
}
void V_CalcViewRoll ( void ) { float side ; side = V_CalcRoll ( cl_entities [ cl . viewentity ] . angles , cl . velocity ) ; r_refdef . viewangles [ ROLL ] += side ; if ( v_dmg_time > 0 ) { r_refdef . viewangles [ ROLL ] += v_dmg_time / v_kicktime . value * v_dmg_roll ; r_refdef . viewangles [ PITCH ] += v_dmg_time / v_kicktime . value * v_dmg_pitch ; v_dmg_time -= host_frametime ; } if ( cl . stats [ STAT_HEALTH ] <= 0 ) { r_refdef . viewangles [ ROLL ] = 80.0f ; return ; } }
Roll is induced by movement and damage
Roll is induced by movement and damage
// dead view angle