Skip to content

Commit

Permalink
Added EnableCrouch input to npc_strider
Browse files Browse the repository at this point in the history
  • Loading branch information
Blixibon committed Mar 7, 2021
1 parent 1831c6c commit bc7ade7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sp/src/game/server/hl2/npc_strider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ BEGIN_DATADESC( CNPC_Strider )
DEFINE_INPUTFUNC( FIELD_VOID, "EnableMinigun", InputEnableMinigun ),
DEFINE_INPUTFUNC( FIELD_FLOAT, "StopShootingMinigunForSeconds", InputStopShootingMinigunForSeconds ),
DEFINE_INPUTFUNC( FIELD_VOID, "DisableCrouch", InputDisableCrouch ),
#ifdef MAPBASE
DEFINE_INPUTFUNC( FIELD_VOID, "EnableCrouch", InputEnableCrouch ),
#endif
DEFINE_INPUTFUNC( FIELD_VOID, "DisableMoveToLOS", InputDisableMoveToLOS ),
DEFINE_INPUTFUNC( FIELD_STRING, "DisableCollisionWith", InputDisableCollisionWith ),
DEFINE_INPUTFUNC( FIELD_STRING, "EnableCollisionWith", InputEnableCollisionWith ),
Expand Down Expand Up @@ -2362,6 +2365,15 @@ void CNPC_Strider::InputDisableCrouch( inputdata_t &inputdata )
m_bDontCrouch = true;
}

#ifdef MAPBASE
//---------------------------------------------------------
//---------------------------------------------------------
void CNPC_Strider::InputEnableCrouch( inputdata_t &inputdata )
{
m_bDontCrouch = false;
}
#endif

//---------------------------------------------------------
//---------------------------------------------------------
void CNPC_Strider::InputDisableMoveToLOS( inputdata_t &inputdata )
Expand Down
3 changes: 3 additions & 0 deletions sp/src/game/server/hl2/npc_strider.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ class CNPC_Strider : public CAI_BlendingHost<CAI_BaseNPC>,
void InputDisableAggressiveBehavior( inputdata_t &inputdata );
void InputStopShootingMinigunForSeconds( inputdata_t &inputdata );
void InputDisableCrouch( inputdata_t &inputdata );
#ifdef MAPBASE
void InputEnableCrouch( inputdata_t &inputdata );
#endif
void InputDisableMoveToLOS( inputdata_t &inputdata );
void InputExplode( inputdata_t &inputdata );
void InputScaleGroundSpeed( inputdata_t &inputdata );
Expand Down

0 comments on commit bc7ade7

Please sign in to comment.