network release 9
authorhgn <hgodden00@gmail.com>
Mon, 18 Dec 2023 00:20:23 +0000 (00:20 +0000)
committerhgn <hgodden00@gmail.com>
Mon, 18 Dec 2023 01:24:46 +0000 (01:24 +0000)
input.h
models_src/rs_menu.mdl
network_common.h
player_skate.c
player_walk.c
skaterift.c

diff --git a/input.h b/input.h
index 2a19b40e9b2c715424212ff5e3a7cc833ad59c39..275c6a441217d6d3b2e8b66d862e8eb0b2574840 100644 (file)
--- a/input.h
+++ b/input.h
@@ -107,7 +107,8 @@ static vg_input_op *input_button_list[] = {
 [k_srbind_sit]   = INPUT_BASIC( SDLK_z, SDL_CONTROLLER_BUTTON_B ),
 [k_srbind_lobby] = INPUT_BASIC( SDLK_TAB, SDL_CONTROLLER_BUTTON_DPAD_LEFT ),
 [k_srbind_chat ] = (vg_input_op[]){ vg_keyboard, SDLK_y, vg_end },
-[k_srbind_run ] = INPUT_BASIC( SDLK_LSHIFT, SDL_CONTROLLER_BUTTON_X ),
+[k_srbind_run ] = (vg_input_op[]){ vg_keyboard, SDLK_LSHIFT, 
+   vg_joy_axis, SDL_CONTROLLER_AXIS_TRIGGERLEFT, vg_end },
 
 [k_srbind_miniworld_resume]  = (vg_input_op[]){
    vg_keyboard, SDLK_RETURN, vg_gui_visible, 0,
index 24f30b00c9a7ec196f3960adfc657ad88fe1d70c..58cf1266e1888b678672105bd68272e6fedaa3f3 100644 (file)
Binary files a/models_src/rs_menu.mdl and b/models_src/rs_menu.mdl differ
index 8840247888524357f76ebf330367b5c3a17b9a03..d40ba25dbb7e345afe77bcf1f2c2d5d140107e90 100644 (file)
@@ -10,7 +10,7 @@
 #define NETWORK_BUFFERFRAMES 6
 #define NETWORK_MAX_CHAT 128
 #define NETWORK_REGION_MAX 32
-#define NETWORK_SKATERIFT_VERSION 8
+#define NETWORK_SKATERIFT_VERSION 9
 #define NETWORK_REQUEST_MAX 2048
 
 #define NETWORK_LEADERBOARD_ALLTIME 0
index 191c708ad1a160340e3040846a34bcbafc21c0b8..91265ceb3ec1bfbde17725b4eb2c0b607d71ff04 100644 (file)
@@ -3561,6 +3561,7 @@ static void player__skate_animator_exchange( bitpack_ctx *ctx, void *data ){
 
    bitpack_qf32( ctx, 16,  0.0f, 120.0f, &animator->push_time );
    bitpack_qf32( ctx, 16,  0.0f, 120.0f, &animator->jump_time );
+   bitpack_qf32( ctx, 16,  0.0f, 4.0f, &animator->handplant_t );
    bitpack_qv3f( ctx, 16, -100.0f, 100.0f, animator->root_v );
    bitpack_bytes( ctx, 1, &animator->activity );
 }
index 040426b39a1b5d23a7f0f2d0b13c4898273014e4..eacdeeb2f4634ced916fd6528df10f0c0cba80c5 100644 (file)
@@ -264,6 +264,7 @@ static void player_walk_pre_ground(void){
    if( button_down(k_srbind_sit) ){
       v3_zero( localplayer.rb.v );
       w->state.activity = k_walk_activity_sit;
+      w->state.transition_t = 0.0f;
       return;
    }
 
@@ -1124,8 +1125,7 @@ static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){
    bitpack_qv3f( ctx, 24, -1024.0f, 1024.0f, animator->root_co );
    bitpack_qquat( ctx, animator->root_q );
    bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->fly );
-   bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->run );
-   bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->walk );
+   bitpack_qf32( ctx, 8, 0.0f, k_runspeed, &animator->run );
    bitpack_qf32( ctx, 16, 0.0f, 120.0f, &animator->walk_timer );
 
    for( int i=0; i<1; i++ ){ /* without this you get a warning from gcc. lol */
index 1700dc7e98cb584b1ea011a47604f6ead271efb3..5ae3042d4742f6fcf2f30413decb672373b9c0db 100644 (file)
@@ -176,6 +176,7 @@ static void skaterift_load_world_content(void){
    skaterift_mount_world_unloadable( "maps/mp_mtzero", 
          ADDON_REG_MTZERO|ADDON_REG_PREMIUM );
    skaterift_mount_world_unloadable( "maps/dev_tutorial", 0 );
+   skaterift_mount_world_unloadable( "maps/dev_flatworld", 0 );
 
    world_static.load_state = k_world_loader_load;