mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-06 16:12:49 +00:00
srb2::Mobj: add bouncing methods
This commit is contained in:
parent
5cbb11cbfc
commit
7656edc91a
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "doomtype.h"
|
#include "doomtype.h"
|
||||||
#include "k_hitlag.h"
|
#include "k_hitlag.h"
|
||||||
|
#include "k_kart.h"
|
||||||
#include "info.h"
|
#include "info.h"
|
||||||
#include "p_local.h"
|
#include "p_local.h"
|
||||||
#include "p_mobj.h"
|
#include "p_mobj.h"
|
||||||
|
|
@ -116,6 +117,9 @@ struct Mobj : mobj_t
|
||||||
void instathrust(angle_t angle, fixed speed) { P_InstaThrust(this, angle, speed); }
|
void instathrust(angle_t angle, fixed speed) { P_InstaThrust(this, angle, speed); }
|
||||||
void thrust(angle_t angle, fixed speed) { P_Thrust(this, angle, speed); }
|
void thrust(angle_t angle, fixed speed) { P_Thrust(this, angle, speed); }
|
||||||
|
|
||||||
|
static void bounce(Mobj* t1, Mobj* t2) { K_KartBouncing(t1, t2); }
|
||||||
|
void solid_bounce(Mobj* solid) { K_KartSolidBounce(this, solid); }
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Mobj pointers
|
// Mobj pointers
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue