New award rings linedef executor
This commit is contained in:
parent
c8cfc3110f
commit
6c2ef839c1
15
src/p_spec.c
15
src/p_spec.c
|
@ -3916,6 +3916,21 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
F_StartTextPrompt(promptnum, pagenum, mo, runpostexec ? postexectag : 0, blockcontrols, freezerealtime);
|
F_StartTextPrompt(promptnum, pagenum, mo, runpostexec ? postexectag : 0, blockcontrols, freezerealtime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case 460: // Award rings
|
||||||
|
{
|
||||||
|
INT16 rings = (sides[line->sidenum[0]].textureoffset>>FRACBITS);
|
||||||
|
INT16 delay = (sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
||||||
|
if (mo && mo->player)
|
||||||
|
{
|
||||||
|
if (delay > 0)
|
||||||
|
{
|
||||||
|
if (!(leveltime % (delay*TICRATE)))
|
||||||
|
P_GivePlayerRings(mo->player, rings);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
P_GivePlayerRings(mo->player, rings);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef POLYOBJECTS
|
#ifdef POLYOBJECTS
|
||||||
|
|
Loading…
Reference in New Issue