X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.c;h=e000c513b5f140c4cc5e7167c2b148f8cf526aec;hb=c40f8e7332b1fa0f25ad4104f2f2ff34de37035a;hp=145a9285c79c636ece7c70b32c4d947725a213c7;hpb=342fcbf6fda017bdd38d56ce0fa7c9e59e589f3b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index 145a928..e000c51 100644 --- 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();