/* steer */
joystick_state( k_srjoystick_steer, animator->steer );
+ animator->airdir = vg_lerpf( animator->airdir, -animator->steer[0],
+ 2.4f*vg.time_delta );
+
+
/* flip angle */
if( (s->state.activity <= k_skate_activity_air_to_grind) &&
(fabsf(s->state.flip_rate) > 0.01f) ){
vg_line_arrow( player->rb.co, p1, 0.25f, VG__PINK );
vg_line_arrow( player->rb.co, p2, 0.25f, VG__PINK );
-
}
else q_identity( animator->qfixuptotal );
q_identity( animator->qfixuptotal );
mdl_keyframe air_pose[32];
{
- float target = -animator->steer[1];
- animator->airdir = vg_lerpf( animator->airdir, target,
- 2.4f*vg.time_delta );
-
float air_frame = (animator->airdir*0.5f+0.5f) * (15.0f/30.0f);
skeleton_sample_anim( sk, s->anim_air, air_frame, apose );
buf[j] = 0x00;
}
-VG_STATIC int steam_init(void)
-{
- const char *username = NULL;
+VG_STATIC int steam_init(void){
+ const char *username = "offline player";
#ifdef SR_NETWORKED
vg_info( "Initializing steamworks\n" );