mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 21:31:03 +00:00
parent
596367f10f
commit
dfa3519ebc
4 changed files with 11 additions and 8 deletions
|
@ -1676,11 +1676,13 @@ static void movement(int snum, ESyncBits sb_snum, int psect, int fz, int cz, int
|
||||||
if (p->poszv > 2400 && p->falling_counter < 255)
|
if (p->poszv > 2400 && p->falling_counter < 255)
|
||||||
{
|
{
|
||||||
p->falling_counter++;
|
p->falling_counter++;
|
||||||
if (p->falling_counter == 38)
|
if (p->falling_counter == 38 && !S_CheckActorSoundPlaying(pi, DUKE_SCREAM))
|
||||||
p->scream_voice = S_PlayActorSound(DUKE_SCREAM, pi);
|
S_PlayActorSound(DUKE_SCREAM, pi);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((p->posz + p->poszv) >= (fz - (i << 8))) // hit the ground
|
if ((p->posz + p->poszv) >= (fz - (i << 8))) // hit the ground
|
||||||
|
{
|
||||||
|
S_StopSound(DUKE_SCREAM, pi);
|
||||||
if (sector[p->cursectnum].lotag != 1)
|
if (sector[p->cursectnum].lotag != 1)
|
||||||
{
|
{
|
||||||
if (p->falling_counter > 62) quickkill(p);
|
if (p->falling_counter > 62) quickkill(p);
|
||||||
|
@ -1704,6 +1706,7 @@ static void movement(int snum, ESyncBits sb_snum, int psect, int fz, int cz, int
|
||||||
}
|
}
|
||||||
else if (p->poszv > 2048) S_PlayActorSound(DUKE_LAND, pi);
|
else if (p->poszv > 2048) S_PlayActorSound(DUKE_LAND, pi);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2176,15 +2176,17 @@ static void movement(int snum, ESyncBits sb_snum, int psect, int fz, int cz, int
|
||||||
if (p->poszv > 2400 && p->falling_counter < 255)
|
if (p->poszv > 2400 && p->falling_counter < 255)
|
||||||
{
|
{
|
||||||
p->falling_counter++;
|
p->falling_counter++;
|
||||||
if (p->falling_counter == 38)
|
if (p->falling_counter == 38 && !S_CheckActorSoundPlaying(pi, DUKE_SCREAM))
|
||||||
p->scream_voice = S_PlayActorSound(DUKE_SCREAM, pi);
|
S_PlayActorSound(DUKE_SCREAM, pi);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((p->posz + p->poszv) >= (fz - (i << 8))) // hit the ground
|
if ((p->posz + p->poszv) >= (fz - (i << 8))) // hit the ground
|
||||||
|
{
|
||||||
|
S_StopSound(DUKE_SCREAM, pi);
|
||||||
if (sector[p->cursectnum].lotag != 1)
|
if (sector[p->cursectnum].lotag != 1)
|
||||||
{
|
{
|
||||||
if (isRRRA()) p->MotoOnGround = 1;
|
if (isRRRA()) p->MotoOnGround = 1;
|
||||||
if (p->falling_counter > 62 || (isRRRA() && p->falling_counter > 2 && sector[p->cursectnum].lotag == 802))
|
if (p->falling_counter > 62 || (isRRRA() && p->falling_counter > 2 && sector[p->cursectnum].lotag == 802))
|
||||||
quickkill(p);
|
quickkill(p);
|
||||||
|
|
||||||
else if (p->falling_counter > 9)
|
else if (p->falling_counter > 9)
|
||||||
|
@ -2220,6 +2222,7 @@ static void movement(int snum, ESyncBits sb_snum, int psect, int fz, int cz, int
|
||||||
p->TurbCount = 12;
|
p->TurbCount = 12;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,7 +208,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
|
||||||
("last_full_weapon", w.last_full_weapon)
|
("last_full_weapon", w.last_full_weapon)
|
||||||
("footprintshade", w.footprintshade)
|
("footprintshade", w.footprintshade)
|
||||||
("boot_amount", w.boot_amount)
|
("boot_amount", w.boot_amount)
|
||||||
("scream_voice", w.scream_voice)
|
|
||||||
("gm", w.gm)
|
("gm", w.gm)
|
||||||
("on_warping_sector", w.on_warping_sector)
|
("on_warping_sector", w.on_warping_sector)
|
||||||
("footprintcount", w.footprintcount)
|
("footprintcount", w.footprintcount)
|
||||||
|
|
|
@ -160,8 +160,6 @@ struct player_struct
|
||||||
short holoduke_on, pycount, frag_ps;
|
short holoduke_on, pycount, frag_ps;
|
||||||
short transporter_hold, last_full_weapon, footprintshade, boot_amount;
|
short transporter_hold, last_full_weapon, footprintshade, boot_amount;
|
||||||
|
|
||||||
int scream_voice;
|
|
||||||
|
|
||||||
unsigned char gm;
|
unsigned char gm;
|
||||||
unsigned char on_warping_sector, footprintcount;
|
unsigned char on_warping_sector, footprintcount;
|
||||||
unsigned char hbomb_on, jumping_toggle, rapid_fire_hold, on_ground;
|
unsigned char hbomb_on, jumping_toggle, rapid_fire_hold, on_ground;
|
||||||
|
|
Loading…
Reference in a new issue