mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-18 04:32:30 +00:00
38 lines
880 B
C++
38 lines
880 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});
|
|
|
|
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();
|
|
}
|