From 1ff5d61d4f3c0886678ed556fcf32a2e007410e0 Mon Sep 17 00:00:00 2001 From: Arbab Ahmed Date: Mon, 20 Feb 2023 23:21:09 +1100 Subject: [PATCH] Add new inputs for the new functionality --- sp/src/game/server/hl2/grenade_bugbait.cpp | 3 +++ sp/src/game/server/hl2/grenade_bugbait.h | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/sp/src/game/server/hl2/grenade_bugbait.cpp b/sp/src/game/server/hl2/grenade_bugbait.cpp index 5480a980..0f054d57 100644 --- a/sp/src/game/server/hl2/grenade_bugbait.cpp +++ b/sp/src/game/server/hl2/grenade_bugbait.cpp @@ -63,6 +63,9 @@ BEGIN_DATADESC( CBugBaitSensor ) #ifdef MAPBASE DEFINE_INPUTFUNC( FIELD_VOID, "EnableRadius", InputEnableRadius ), DEFINE_INPUTFUNC( FIELD_VOID, "DisableRadius", InputDisableRadius ), + DEFINE_INPUTFUNC( FIELD_INTEGER, "SetRadius", InputSetRadius ), + DEFINE_INPUTFUNC( FIELD_VECTOR, "SetMins", InputSetMins ), + DEFINE_INPUTFUNC( FIELD_VECTOR, "SetMaxs", InputSetMaxs ), #endif // Function Pointers diff --git a/sp/src/game/server/hl2/grenade_bugbait.h b/sp/src/game/server/hl2/grenade_bugbait.h index af89657a..fb2a68cc 100644 --- a/sp/src/game/server/hl2/grenade_bugbait.h +++ b/sp/src/game/server/hl2/grenade_bugbait.h @@ -71,6 +71,18 @@ public: void InputDisableRadius( inputdata_t &data ){ m_bUseRadius = false; } + + void InputSetRadius( inputdata_t &data ){ + m_flRadius = data.value.Int(); + } + + void InputSetMins( inputdata_t &data ){ + data.value.Vector3D( m_vecMins ); + } + + void InputSetMaxs( inputdata_t &data ){ + data.value.Vector3D( m_vecMaxs ); + } #endif bool SuppressCall( void )