summaryrefslogtreecommitdiff
path: root/src/cgame/cg_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_view.c')
-rw-r--r--src/cgame/cg_view.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index e419ba33..964fa705 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -606,10 +606,11 @@ static void CG_StepOffset( void )
}
}
-#define PCLOUD_ROLL_AMPLITUDE 25.0f
-#define PCLOUD_ROLL_FREQUENCY 0.4f
-#define PCLOUD_ZOOM_AMPLITUDE 15
-#define PCLOUD_ZOOM_FREQUENCY 0.7f
+#define PCLOUD_ROLL_AMPLITUDE 25.0f
+#define PCLOUD_ROLL_FREQUENCY 0.4f
+#define PCLOUD_ZOOM_AMPLITUDE 15
+#define PCLOUD_ZOOM_FREQUENCY 0.7f
+#define PCLOUD_DISORIENT_DURATION 2500
/*
@@ -818,6 +819,7 @@ void CG_OffsetFirstPersonView( void )
}
if( ( cg.predictedPlayerEntity.currentState.eFlags & EF_POISONCLOUDED ) &&
+ ( cg.time - cg.poisonedTime < PCLOUD_DISORIENT_DURATION) &&
!( cg.snap->ps.pm_flags & PMF_FOLLOW ) )
{
float scale, fraction, pitchFraction;