mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +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)
|
||||
{
|
||||
if (actor->temp_data[0] < 7 * 26)
|
||||
if (actor->temp_data[0] < 14 * 26)
|
||||
{
|
||||
auto offset = krandf(1);
|
||||
auto zadj = (1. / 16.);
|
||||
auto sadj = (1. / 12.) * REPEAT_SCALE;
|
||||
auto lerp = 1. - (double(actor->temp_data[0]) / (14 * 26));
|
||||
auto zadj = (1. / 16.) * lerp;
|
||||
auto sadj = (1. / 12.) * lerp * REPEAT_SCALE;
|
||||
actor->spr.pos.Z += zadj + offset * zadj;
|
||||
actor->spr.scale.Y += sadj + offset * sadj;
|
||||
actor->temp_data[0]++;
|
||||
|
|
Loading…
Reference in a new issue