Skip to content

Commit a1a6c49

Browse files
Add vscript funcs
Panel::RemoveTickSignal() CAI_BaseNPC::IsMedic()
1 parent af6f9fe commit a1a6c49

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

sp/src/game/client/mapbase/vscript_vgui.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,11 @@ CLASS_HELPER_INTERFACE_ROOT( Panel )
14001400
{
14011401
ivgui()->AddTickSignal( this->GetVPanel(), i );
14021402
}
1403+
1404+
void RemoveTickSignal()
1405+
{
1406+
ivgui()->RemoveTickSignal( this->GetVPanel() );
1407+
}
14031408
#if SCRIPT_VGUI_SIGNAL_INTERFACE
14041409
void AddActionSignalTarget( HSCRIPT messageTarget )
14051410
{
@@ -1788,6 +1793,7 @@ CLASS_HELPER_INTERFACE_ROOT( Panel )
17881793
DEFINE_SCRIPTFUNC( MakeReadyForUse, "" )\
17891794
DEFINE_SCRIPTFUNC( GetName, "" )\
17901795
DEFINE_SCRIPTFUNC( AddTickSignal, "" )\
1796+
DEFINE_SCRIPTFUNC( RemoveTickSignal, "" )\
17911797
\
17921798
DEFINE_SCRIPTFUNC( GetParent, "" )\
17931799
DEFINE_SCRIPTFUNC( SetParent, "" )\

sp/src/game/server/ai_basenpc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12333,6 +12333,7 @@ BEGIN_ENT_SCRIPTDESC( CAI_BaseNPC, CBaseCombatCharacter, "The base class all NPC
1233312333

1233412334
DEFINE_SCRIPTFUNC( IsCommandable, "Check if the NPC is commandable." )
1233512335
DEFINE_SCRIPTFUNC( IsInPlayerSquad, "Check if the NPC is in the player's squad." )
12336+
DEFINE_SCRIPTFUNC( IsMedic, "Returns true if this NPC is a medic." )
1233612337

1233712338
DEFINE_SCRIPTFUNC_NAMED( VScriptGetCine, "GetCine", "Get the NPC's currently running scripted sequence if it has one." )
1233812339
DEFINE_SCRIPTFUNC( GetScriptState, "Get the NPC's current scripted sequence state." )

sp/src/game/server/hl2/npc_citizen17.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ ScriptHook_t CNPC_Citizen::g_Hook_SelectModel;
412412

413413
BEGIN_ENT_SCRIPTDESC( CNPC_Citizen, CAI_BaseActor, "npc_citizen from Half-Life 2" )
414414

415-
DEFINE_SCRIPTFUNC( IsMedic, "Returns true if this citizen is a medic." )
416415
DEFINE_SCRIPTFUNC( IsAmmoResupplier, "Returns true if this citizen is an ammo resupplier." )
417416
DEFINE_SCRIPTFUNC( CanHeal, "Returns true if this citizen is a medic or ammo resupplier currently able to heal/give ammo." )
418417

0 commit comments

Comments
 (0)