- fix some interpolation harshness with p->weapon_pos.

This commit is contained in:
Mitchell Richters 2020-08-03 15:05:38 +10:00
parent 7efa905a01
commit 6bd050e201
2 changed files with 5 additions and 5 deletions

View file

@ -2122,7 +2122,7 @@ static void operateweapon(int snum, ESyncBits sb_snum, int psect)
{ {
p->curr_weapon = HANDREMOTE_WEAPON; p->curr_weapon = HANDREMOTE_WEAPON;
p->last_weapon = -1; p->last_weapon = -1;
p->weapon_pos = 10; p->oweapon_pos = p->weapon_pos = 10;
} }
} }
@ -2459,7 +2459,7 @@ static void operateweapon(int snum, ESyncBits sb_snum, int psect)
{ {
p->okickback_pic = p->kickback_pic = 0; p->okickback_pic = p->kickback_pic = 0;
checkavailweapon(p); checkavailweapon(p);
p->weapon_pos = -9; p->oweapon_pos = p->weapon_pos = -9;
} }
else p->kickback_pic++; else p->kickback_pic++;
break; break;

View file

@ -161,7 +161,7 @@ void resetplayerstats(int snum)
p->okickback_pic = p->kickback_pic = isRR()? 22 : 5; p->okickback_pic = p->kickback_pic = isRR()? 22 : 5;
else p->okickback_pic = p->kickback_pic = 0; else p->okickback_pic = p->kickback_pic = 0;
p->weapon_pos = 6; p->oweapon_pos = p->weapon_pos = 6;
p->walking_snd_toggle= 0; p->walking_snd_toggle= 0;
p->weapon_ang = 0; p->weapon_ang = 0;
@ -273,7 +273,7 @@ void resetweapons(int snum)
} }
p->gotweapon.Zero(); p->gotweapon.Zero();
p->weapon_pos = 6; p->oweapon_pos = p->weapon_pos = 6;
p->okickback_pic = p->kickback_pic = 5; p->okickback_pic = p->kickback_pic = 5;
p->curr_weapon = PISTOL_WEAPON; p->curr_weapon = PISTOL_WEAPON;
p->gotweapon.Set(PISTOL_WEAPON); p->gotweapon.Set(PISTOL_WEAPON);
@ -400,7 +400,7 @@ void resetprestat(int snum,int g)
p->actors_killed = 0; p->actors_killed = 0;
p->max_actors_killed = 0; p->max_actors_killed = 0;
p->lastrandomspot = 0; p->lastrandomspot = 0;
p->weapon_pos = 6; p->oweapon_pos = p->weapon_pos = 6;
p->okickback_pic = p->kickback_pic = 5; p->okickback_pic = p->kickback_pic = 5;
p->last_weapon = -1; p->last_weapon = -1;
p->weapreccnt = 0; p->weapreccnt = 0;