upload "kind" alien swarm

This commit is contained in:
nillerusr
2023-10-03 17:23:56 +03:00
parent b7bd94c52e
commit 7d3c0d8b5a
4229 changed files with 462900 additions and 495155 deletions
+11 -11
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -67,16 +67,14 @@ public:
float GetDistLook() const { return m_LookDist; }
void SetDistLook( float flDistLook ) { m_LookDist = flDistLook; }
void PerformSensing();
virtual void PerformSensing();
void Listen( void );
void Look( int iDistance );// basic sight function for npcs
bool ShouldSeeEntity( CBaseEntity *pEntity ); // logical query
bool CanSeeEntity( CBaseEntity *pSightEnt ); // more expensive cone & raycast test
#ifdef PORTAL
bool CanSeeEntityThroughPortal( const CProp_Portal *pPortal, CBaseEntity *pSightEnt ); // more expensive cone & raycast test
#endif
bool DidSeeEntity( CBaseEntity *pSightEnt ) const; // a less expensive query that looks at cached results from recent conditionsa gathering
@@ -89,6 +87,9 @@ public:
bool CanHearSound( CSound *pSound );
// children of this class may need to overload this function to allow for more specialized checks such as angle of elevation, etc.
virtual bool IsWithinSenseDistance( const Vector &source, const Vector &dest, float dist ) { return ( source.DistToSqr( dest ) < dist * dist ); }
//---------------------------------
float GetTimeLastUpdate( CBaseEntity *pEntity );
@@ -101,26 +102,25 @@ public:
DECLARE_SIMPLE_DATADESC();
private:
protected:
int GetAudibleList() const { return m_iAudibleList; }
bool WaitingUntilSeen( CBaseEntity *pSightEnt );
virtual bool WaitingUntilSeen( CBaseEntity *pSightEnt );
void BeginGather();
void NoteSeenEntity( CBaseEntity *pSightEnt );
void EndGather( int nSeen, CUtlVector<EHANDLE> *pResult );
bool Look( CBaseEntity *pSightEnt );
#ifdef PORTAL
bool LookThroughPortal( const CProp_Portal *pPortal, CBaseEntity *pSightEnt );
#endif
int LookForHighPriorityEntities( int iDistance );
virtual int LookForHighPriorityEntities( int iDistance );
int LookForNPCs( int iDistance );
int LookForObjects( int iDistance );
bool SeeEntity( CBaseEntity *pEntity );
private:
float m_LookDist; // distance npc sees (Default 2048)
float m_LastLookDist;
float m_TimeLastLook;