Пример #1
0
 public virtual bool Equals(pmove_state_t p2)
 {
     if (pm_type == p2.pm_type && origin[0] == p2.origin[0] && origin[1] == p2.origin[1] && origin[2] == p2.origin[2] && velocity[0] == p2.velocity[0] && velocity[1] == p2.velocity[1] && velocity[2] == p2.origin[2] && pm_flags == p2.pm_flags && pm_time == p2.pm_time && gravity == gravity && delta_angles[0] == p2.delta_angles[0] && delta_angles[1] == p2.delta_angles[1] && delta_angles[2] == p2.origin[2])
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 public virtual void Clear( )
 {
     ping                = 0;
     pers                = new client_persistant_t();
     resp                = new client_respawn_t();
     old_pmove           = new pmove_state_t();
     showscores          = false;
     showinventory       = false;
     showhelp            = false;
     showhelpicon        = false;
     ammo_index          = 0;
     buttons             = oldbuttons = latched_buttons = 0;
     weapon_thunk        = false;
     newweapon           = null;
     damage_armor        = 0;
     damage_parmor       = 0;
     damage_blood        = 0;
     damage_knockback    = 0;
     killer_yaw          = 0;
     damage_from         = new Single[3];
     weaponstate         = 0;
     kick_angles         = new Single[3];
     kick_origin         = new Single[3];
     v_dmg_roll          = v_dmg_pitch = v_dmg_time = 0;
     fall_time           = fall_value = 0;
     damage_alpha        = 0;
     bonus_alpha         = 0;
     damage_blend        = new Single[3];
     v_angle             = new Single[3];
     bobtime             = 0;
     oldviewangles       = new Single[3];
     oldvelocity         = new Single[3];
     next_drown_time     = 0;
     old_waterlevel      = 0;
     breather_sound      = 0;
     machinegun_shots    = 0;
     anim_end            = 0;
     anim_priority       = 0;
     anim_duck           = false;
     anim_run            = false;
     quad_framenum       = 0;
     invincible_framenum = 0;
     breather_framenum   = 0;
     enviro_framenum     = 0;
     grenade_blew_up     = false;
     grenade_time        = 0;
     silencer_shots      = 0;
     weapon_sound        = 0;
     pickup_msg_time     = 0;
     flood_locktill      = 0;
     flood_when          = new Single[10];
     flood_whenhead      = 0;
     respawn_time        = 0;
     chase_target        = null;
     update_chase        = false;
 }
Пример #3
0
 public virtual void Set(pmove_state_t from)
 {
     pm_type = from.pm_type;
     Math3D.VectorCopy(from.origin, origin);
     Math3D.VectorCopy(from.velocity, velocity);
     pm_flags = from.pm_flags;
     pm_time  = from.pm_time;
     gravity  = from.gravity;
     Math3D.VectorCopy(from.delta_angles, delta_angles);
 }