WarpZone_View_Outside();
#ifndef KEEP_ROLL
- static float rollkill;
- if (STAT(HEALTH) <= 0 && STAT(HEALTH) != -666 && STAT(HEALTH) != -2342)
- {
- if(autocvar_cl_rollkillspeed)
- {
- rollkill += frametime * autocvar_cl_rollkillspeed;
- rollkill = min(1, rollkill);
- }
- float rick;
- rick = getproperty(VF_CL_VIEWANGLES_Z) * rollkill;
- setproperty(VF_CL_VIEWANGLES_Z, rick);
- ang.z *= rollkill;
- }
- else if(rollkill)
- rollkill = 0;
+ float rick;
+ float f;
+ if(autocvar_cl_rollkillspeed)
+ f = max(0, (1 - frametime * autocvar_cl_rollkillspeed));
+ else
+ f = 0;
+
+ rick = getproperty(VF_CL_VIEWANGLES_Z);
+ rick *= f;
+ setproperty(VF_CL_VIEWANGLES_Z, rick);
+ ang.z *= f;
#endif
setproperty(VF_ORIGIN, org);