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
+15 -14
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -12,14 +12,7 @@
#include "AI_Criteria.h"
#include "ai_baseactor.h"
#include "ai_speechfilter.h"
#ifndef _WIN32
#undef min
#endif
#include "stdstring.h"
#ifndef _WIN32
#undef MINMAX_H
#include "minmax.h"
#endif
#if defined( _WIN32 )
#pragma once
@@ -249,19 +242,27 @@ enum AISpeechTargetSearchFlags_t
struct AISpeechSelection_t
{
AISpeechSelection_t()
: pResponse(NULL)
: response()
{
}
void Set( AIConcept_t newConcept, AI_Response *pNewResponse, CBaseEntity *pTarget = NULL )
void Set( AIConcept_t newConcept, AI_Response &nuResponse, CBaseEntity *pTarget = NULL )
{
pResponse = pNewResponse;
response = nuResponse;
concept = newConcept;
hSpeechTarget = pTarget;
}
// Use in a specific case where the response has already been set.
void Set( AIConcept_t newConcept, CBaseEntity *pTarget )
{
Assert( !response.IsEmpty() );
concept = newConcept;
hSpeechTarget = pTarget;
}
std::string concept;
AI_Response * pResponse;
AI_Response response;
EHANDLE hSpeechTarget;
};
@@ -304,7 +305,7 @@ public:
//---------------------------------
// Damage handling
//---------------------------------
void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator );
void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr );
int OnTakeDamage_Alive( const CTakeDamageInfo &info );
int TakeHealth( float flHealth, int bitsDamageType );
void Event_Killed( const CTakeDamageInfo &info );
@@ -368,7 +369,7 @@ public:
bool IsOkToSpeak( void );
bool IsOkToCombatSpeak( void );
bool IsOkToSpeakInResponseToPlayer( void );
virtual bool IsOkToSpeakInResponseToPlayer( void );
bool ShouldSpeakRandom( AIConcept_t concept, int iChance );
bool IsAllowedToSpeak( AIConcept_t concept, bool bRespondingToPlayer = false );