X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player_skate.c;h=2dedefd47a3e99497e3b7390f6f1f327651be809;hb=bececcbb7b2e886e72425e7c070e1fdc3aa126dc;hp=11ff6ae8348e88bfda5862532b2905de5bf84344;hpb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_skate.c b/player_skate.c index 11ff6ae..2dedefd 100644 --- a/player_skate.c +++ b/player_skate.c @@ -14,6 +14,7 @@ #include "player_glide.h" #include "player_dead.h" #include "player_walk.h" +#include struct player_skate player_skate; struct player_subsystem_interface player_subsystem_skate = @@ -3551,7 +3552,8 @@ void player__skate_reset_animator(void){ player_skate.animator.fly = 0.0f; } -void player__skate_clear_mechanics(void){ +void player__skate_clear_mechanics(void) +{ struct player_skate_state *state = &player_skate.state; state->jump_charge = 0.0f; state->charging_jump = 0; @@ -3586,6 +3588,9 @@ void player__skate_clear_mechanics(void){ v3_copy( localplayer.rb.to_world[1], player_skate.surface_picture ); v3_copy( localplayer.rb.co, state->prev_pos ); v3_zero( player_skate.weight_distribution ); + + v3f head = { 0.0f, 1.8f, 0.0f }; + m4x3_mulv( localplayer.rb.to_world, head, state->head_position ); } #include "network_compression.h"