From 417586848991b48196ab59a343e376c8eb23ac90 Mon Sep 17 00:00:00 2001 From: ALord7 <124674138+ALord7@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:44:59 +0800 Subject: [PATCH] Update Item.h --- game/Item.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/game/Item.h b/game/Item.h index acf7c0c..cf44992 100644 --- a/game/Item.h +++ b/game/Item.h @@ -161,6 +161,7 @@ public: void Spawn( void ); virtual void Think( void ); + virtual bool Collide( const trace_t &collision, const idVec3 &velocity ); // darknar, probably this can be useful if the splat fx moveable gib was causing lag. Allow idMoveableItem class spawn fx on collision virtual bool Pickup( idPlayer *player ); static void DropItems( idAnimatedEntity *ent, const char *type, idList *list ); @@ -174,7 +175,8 @@ private: idClipModel * trigger; const idDeclParticle * smoke; int smokeTime; - + int nextSoundTime; // darknar, fx collide data + idStr fxCollide; // darknar, fx collide data void Gib( const idVec3 &dir, const char *damageDefName ); void Event_DropToFloor( void ); @@ -226,4 +228,20 @@ private: void Event_GetPlayerPos(); }; +// darknar start change + +/* +=============================================================================== + +idMoveableGibItem + +=============================================================================== +*/ +class idMoveableGibItem : public idMoveableItem { +public: + CLASS_PROTOTYPE(idMoveableGibItem); +}; + +// darknar end change + #endif /* !__GAME_ITEM_H__ */