mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Duke: Soften the blood splats in Duke when the timer is at the end.
This commit is contained in:
parent
5a698fbc2b
commit
ec16fd9310
1 changed files with 4 additions and 3 deletions
|
@ -1229,11 +1229,12 @@ void reactor(DDukeActor* const actor, int REACTOR, int REACTOR2, int REACTORBURN
|
||||||
|
|
||||||
void bloodsplats(DDukeActor *actor)
|
void bloodsplats(DDukeActor *actor)
|
||||||
{
|
{
|
||||||
if (actor->temp_data[0] < 7 * 26)
|
if (actor->temp_data[0] < 14 * 26)
|
||||||
{
|
{
|
||||||
auto offset = krandf(1);
|
auto offset = krandf(1);
|
||||||
auto zadj = (1. / 16.);
|
auto lerp = 1. - (double(actor->temp_data[0]) / (14 * 26));
|
||||||
auto sadj = (1. / 12.) * REPEAT_SCALE;
|
auto zadj = (1. / 16.) * lerp;
|
||||||
|
auto sadj = (1. / 12.) * lerp * REPEAT_SCALE;
|
||||||
actor->spr.pos.Z += zadj + offset * zadj;
|
actor->spr.pos.Z += zadj + offset * zadj;
|
||||||
actor->spr.scale.Y += sadj + offset * sadj;
|
actor->spr.scale.Y += sadj + offset * sadj;
|
||||||
actor->temp_data[0]++;
|
actor->temp_data[0]++;
|
||||||
|
|
Loading…
Reference in a new issue