mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
- copied some changes to kill count management from DukeGDX.
This commit is contained in:
parent
8a92ecb70c
commit
ecdc92e6b9
7 changed files with 20 additions and 3 deletions
|
@ -2445,6 +2445,7 @@ static void greenslime(int i)
|
|||
int k = EGS(sprite[i].sectnum, sprite[i].x, sprite[i].y, sprite[i].z, GLASSPIECES + (j % 3), -32, 36, 36, krand() & 2047, 32 + (krand() & 63), 1024 - (krand() & 1023), i, 5);
|
||||
sprite[k].pal = 1;
|
||||
}
|
||||
ps[p].actors_killed++;
|
||||
S_PlayActorSound(GLASS_BREAKING, i);
|
||||
deletesprite(i);
|
||||
}
|
||||
|
@ -2575,7 +2576,6 @@ static void greenslime(int i)
|
|||
{
|
||||
S_PlayActorSound(SLIM_DYING, i);
|
||||
|
||||
ps[p].actors_killed++;
|
||||
if (ps[p].somethingonplayer == i)
|
||||
ps[p].somethingonplayer = -1;
|
||||
|
||||
|
@ -2584,6 +2584,7 @@ static void greenslime(int i)
|
|||
S_PlayActorSound(SOMETHINGFROZE, i); t[0] = -5; t[3] = 0;
|
||||
return;
|
||||
}
|
||||
ps[p].actors_killed++;
|
||||
|
||||
if ((krand() & 255) < 32)
|
||||
{
|
||||
|
|
|
@ -284,5 +284,6 @@ int TILE_CROSSHAIR;
|
|||
int TILE_BIGORBIT1;
|
||||
int TILE_HURTRAIL;
|
||||
int TILE_FLOORPLASMA;
|
||||
int TILE_EGG;
|
||||
|
||||
END_DUKE_NS
|
||||
|
|
|
@ -281,6 +281,7 @@ void initactorflags_d()
|
|||
TILE_BIGORBIT1 = BIGORBIT1;
|
||||
TILE_HURTRAIL = HURTRAIL;
|
||||
TILE_FLOORPLASMA = FLOORPLASMA;
|
||||
TILE_EGG = EGG;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -251,6 +251,7 @@ void initactorflags_r()
|
|||
TILE_BIGORBIT1 = BIGORBIT1;
|
||||
TILE_HURTRAIL = HURTRAIL;
|
||||
TILE_FLOORPLASMA = FLOORPLASMA;
|
||||
TILE_EGG = EGG;
|
||||
|
||||
PHEIGHT = PHEIGHT_RR;
|
||||
}
|
||||
|
|
|
@ -439,7 +439,16 @@ int ParseState::parse(void)
|
|||
insptr++;
|
||||
if (g_sp->picnum == TILE_APLAYER)
|
||||
g_sp->pal = ps[g_sp->yvel].palookup;
|
||||
else g_sp->pal = hittype[g_i].tempang;
|
||||
else
|
||||
{
|
||||
// Copied from DukeGDX.
|
||||
if (g_sp->picnum == TILE_EGG && hittype[g_i].temp_data[5] == TILE_EGG + 2 && g_sp->pal == 1)
|
||||
{
|
||||
ps[connecthead].max_actors_killed++; //revive the egg
|
||||
hittype[g_i].temp_data[5] = 0;
|
||||
}
|
||||
g_sp->pal = hittype[g_i].tempang;
|
||||
}
|
||||
hittype[g_i].tempang = 0;
|
||||
break;
|
||||
case concmd_tossweapon:
|
||||
|
|
|
@ -54,6 +54,7 @@ extern int TILE_CROSSHAIR;
|
|||
extern int TILE_BIGORBIT1;
|
||||
extern int TILE_HURTRAIL;
|
||||
extern int TILE_FLOORPLASMA;
|
||||
extern int TILE_EGG;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1164,8 +1164,11 @@ int spawn_d(int j, int pn)
|
|||
}
|
||||
else
|
||||
{
|
||||
if(sp->picnum == EGG)
|
||||
if (sp->picnum == EGG)
|
||||
{
|
||||
sp->clipdist = 24;
|
||||
ps[connecthead].max_actors_killed++;
|
||||
}
|
||||
sp->cstat = 257|(krand()&4);
|
||||
changespritestat(i,2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue