fixed jitter
[carveJwlIkooP6JGAAIwe30JlM.git] / player.c
index 145a9285c79c636ece7c70b32c4d947725a213c7..e000c513b5f140c4cc5e7167c2b148f8cf526aec 100644 (file)
--- a/player.c
+++ b/player.c
@@ -35,6 +35,11 @@ VG_STATIC void player_init(void)
    }
 
    vg_console_reg_cmd( "respawn", localplayer_cmd_respawn, NULL );
+   VG_VAR_F32( k_cam_damp );
+   VG_VAR_F32( k_cam_spring );
+   VG_VAR_F32( k_cam_punch );
+   VG_VAR_F32( k_cam_shake_strength );
+   VG_VAR_F32( k_cam_shake_trackspeed );
 }
 
 PLAYER_API
@@ -335,6 +340,11 @@ PLAYER_API void player__spawn( player_instance *player,
    player->subsystem = k_player_subsystem_walk;
    player->immobile = 0;
    player->gate_waiting = NULL;
+   player->rewind_length = 0;
+   player->rewind_accum = 0.0f;
+   player->rewind_gate = NULL;
+   player->rewinding = 0;
+   world_static.last_use = 0.0;
 
    global_skateshop_exit();