mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Battle: downscale hitlag VFX and Gahabom explosion (not in Prisons)
- Hitlag VFX: 3/4x - Gachabom explosion: 1/2x
This commit is contained in:
parent
26b03a810c
commit
92f6e61243
2 changed files with 11 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include "doomdef.h"
|
||||
#include "doomstat.h"
|
||||
#include "k_battle.h"
|
||||
#include "k_kart.h"
|
||||
#include "m_random.h"
|
||||
#include "p_local.h"
|
||||
|
|
@ -195,6 +196,11 @@ static void K_SpawnHitLagEFX(mobj_t *victim, mobj_t *inflictor, mobj_t *source,
|
|||
newScale = 3 * victim->destscale;
|
||||
}
|
||||
|
||||
if ((gametyperules & GTR_BUMPERS) && battleprisons == false)
|
||||
{
|
||||
newScale = 3 * newScale / 4;
|
||||
}
|
||||
|
||||
if (P_MobjWasRemoved(source) == false)
|
||||
{
|
||||
color = (source->player != NULL) ? source->player->skincolor : source->color;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include "../d_player.h"
|
||||
#include "../k_battle.h"
|
||||
#include "../k_objects.h"
|
||||
#include "../m_fixed.h"
|
||||
#include "../info.h"
|
||||
|
|
@ -230,7 +231,10 @@ void Obj_SpawnGachaBomRebound(mobj_t* source, mobj_t* target)
|
|||
x->color = target->color;
|
||||
x->angle = angle;
|
||||
|
||||
P_InstaScale(x, 2 * x->scale);
|
||||
if (!(gametyperules & GTR_BUMPERS) || battleprisons)
|
||||
{
|
||||
P_InstaScale(x, 2 * x->scale);
|
||||
}
|
||||
|
||||
rebound_mode(x) = static_cast<int>(mode);
|
||||
rebound_timer(x) = kReboundAcceptPause;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue