From f4c11e51e0b2f0b165697e478bcc03abdde11538 Mon Sep 17 00:00:00 2001 From: -_YoYo178_- <95132723+YoYo178@users.noreply.github.com> Date: Sun, 30 Jun 2024 21:36:53 +0530 Subject: [PATCH] Add missing CLASS_TRIGGER --- mp/src/game/server/baseentity.h | 1 + mp/src/game/server/triggers.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mp/src/game/server/baseentity.h b/mp/src/game/server/baseentity.h index e344d78e..8aed4e10 100644 --- a/mp/src/game/server/baseentity.h +++ b/mp/src/game/server/baseentity.h @@ -226,6 +226,7 @@ enum Class_T CLASS_TURRET, CLASS_BACKPACK, CLASS_INFOSCRIPT, + CLASS_TRIGGER, // see https://github.com/fortressforever-2013/fortressforever-src/issues/34 CLASS_TRIGGERSCRIPT, CLASS_TRIGGER_CLIP, CLASS_TEAMSPAWN, diff --git a/mp/src/game/server/triggers.h b/mp/src/game/server/triggers.h index b02f26bd..df912807 100644 --- a/mp/src/game/server/triggers.h +++ b/mp/src/game/server/triggers.h @@ -61,6 +61,8 @@ class CBaseTrigger : public CBaseToggle void UpdateOnRemove( void ); void TouchTest( void ); + virtual Class_T Classify( void ) { return CLASS_TRIGGER; } + // Input handlers virtual void InputEnable( inputdata_t &inputdata ); virtual void InputDisable( inputdata_t &inputdata );