[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,
#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
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 );
}
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;
}
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 */
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;