aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/hl2/ai_goal_police.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/hl2/ai_goal_police.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/hl2/ai_goal_police.h')
-rw-r--r--mp/src/game/server/hl2/ai_goal_police.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/ai_goal_police.h b/mp/src/game/server/hl2/ai_goal_police.h
new file mode 100644
index 00000000..bfc28dd5
--- /dev/null
+++ b/mp/src/game/server/hl2/ai_goal_police.h
@@ -0,0 +1,50 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef AI_GOAL_POLICE_H
+#define AI_GOAL_POLICE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+class CAI_PoliceGoal : public CBaseEntity
+{
+public:
+
+ DECLARE_CLASS( CAI_PoliceGoal, CBaseEntity );
+
+ CAI_PoliceGoal( void );
+
+ float GetRadius( void );
+ CBaseEntity *GetTarget( void );
+
+ bool ShouldKnockOutTarget( const Vector &targetPos, bool bTargetVisible ); // If the target should be knocked out
+ void KnockOutTarget( CBaseEntity *pTarget ); // Send an output that we've knocked out this target
+ bool ShouldRemainAtPost( void );
+
+ void InputEnableKnockOut( inputdata_t &data );
+ void InputDisableKnockOut( inputdata_t &data );
+
+ void FireWarningLevelOutput( int level );
+
+ float m_flRadius;
+ EHANDLE m_hTarget;
+ string_t m_iszTarget;
+ bool m_bOverrideKnockOut;
+
+ COutputEvent m_OnKnockOut;
+ COutputEvent m_OnFirstWarning;
+ COutputEvent m_OnSecondWarning;
+ COutputEvent m_OnLastWarning;
+ COutputEvent m_OnSupressingTarget;
+
+ DECLARE_DATADESC();
+};
+
+#define SF_POLICE_GOAL_KNOCKOUT_BEHIND (1<<1) // Knockout a target that's behind the plane that cuts perpendicularly through us
+#define SF_POLICE_GOAL_DO_NOT_LEAVE_POST (1<<2) // Cop will not come off his policing goal, even when angered
+
+#endif // AI_GOAL_POLICE_H