RE: Animation
In engine I have:
Quote:struct Animation
{
Flt b_turn_l, t_turn_l, // blend and time value of turning left animation
b_turn_r, t_turn_r; // blend and time value of turning right animation
Flt stand_crouch, // stand 0..1 crouch blend value
stop_move , // stop 0..1 move blend value
walk_run , // walk 0..1 run blend value
loose_ready , // loose 0..1 ready blend value
forward_back , // forward 0..1 back blend value
left_right , // left 0..1 right blend value
straight_strafe; // straight 0..1 strafe blend value
Flt strafe_yaw, // -1..1 value
lean ; // -1..1 lean value
Flt time , // 0..Inf, default=0 , character movement animation time
speed , // 0..Inf, default=0.68 , character movement animation scale factor, this affects only animation speed, you can change it when setting different 'Chr::speed' values so the animations will be played proportionally to movement speed, suggested formula : Chr::anim.speed=Chr::speed/6
unique; // 0..1 , default=RandomF(), character unique value used for animation offsets
// flying values
Flt fly,
fly_x,fly_z,
fly_strafe,fly_turn,
fly_full_body;
}anim;
struct SkelAnimCache // Skeleton Animation Cache, these are the pointers to character default animations, you can replace them with custom ones, for example 'walk=cskel.getSkelAnim("custom walk.anim")'
{
SkelAnim
*fist_l , // left fist
*fist_r , // right fist
*stand , // stand still
*ready , // ready pose
*crouch , // crouch still
*turn_l , // turn left
*turn_r , // turn right
*walk , // walk forward
*run , // run forward
*crouch_f , // crouch and move forward
*crouch_l , // crouch and move left
*crouch_r , // crouch and move right
*strafe_wl, // strafe left walking
*strafe_wr, // strafe right walking
*strafe_l , // strafe left running
*strafe_r , // strafe right running
*dodge_l , // dodge left
*dodge_r , // dodge right
*floating ; // float still
Int head, neck, body,body_u, arm_ru,arm_lu, leg_lu,leg_ru,leg_ld,leg_rd, hand_l,hand_r, foot_l0,foot_r0; // indexes of skeleton bones found in 'cskel', -1=none
}sac; // not saved in SaveGame
How i can add or change something in this struct. I can overwrite it in my player struct or have to done every think by my self?
|