mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 22:52:50 +00:00
43 lines
914 B
C++
43 lines
914 B
C++
// DR. ROBOTNIK'S RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2023 by James Robert Roman
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#include "broly.hpp"
|
|
|
|
#include "../doomstat.h"
|
|
#include "../k_kart.h"
|
|
#include "../sounds.h"
|
|
|
|
using namespace srb2::objects;
|
|
|
|
mobj_t *
|
|
Obj_SpawnBrolyKi
|
|
( mobj_t * source,
|
|
tic_t duration)
|
|
{
|
|
Broly* x = Broly::spawn<Broly>(static_cast<Mobj*>(source), duration, {64 * mapobjectscale, 0});
|
|
|
|
if (!x)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
x->colorized = true;
|
|
x->color = source->color;
|
|
|
|
K_ReduceVFXForEveryone(x);
|
|
x->voice(sfx_cdfm74);
|
|
|
|
return x;
|
|
}
|
|
|
|
boolean
|
|
Obj_BrolyKiThink (mobj_t *x)
|
|
{
|
|
return static_cast<Broly*>(x)->think();
|
|
}
|