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
+4 -4
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -541,7 +541,7 @@ void CNPC_VehicleDriver::GatherEnemyConditions( CBaseEntity *pEnemy )
Disposition_t CNPC_VehicleDriver::IRelationType(CBaseEntity *pTarget)
{
// If it's the player and they are a criminal, we hate them.
if ( pTarget && pTarget->Classify() == CLASS_PLAYER)
if (pTarget->Classify() == CLASS_PLAYER)
{
if (GlobalEntity_GetState("gordon_precriminal") == GLOBAL_ON)
{
@@ -763,7 +763,7 @@ bool CNPC_VehicleDriver::OverridePathMove( float flInterval )
float flIncrement = flIncTime * (flSpeed / pCurrentSplineBeingTraversed->GetLength());
// Now advance our point along the spline
m_flDistanceAlongSpline = clamp( m_flDistanceAlongSpline + flIncrement, 0.f, 2.f);
m_flDistanceAlongSpline = clamp( m_flDistanceAlongSpline + flIncrement, 0, 2);
if ( m_flDistanceAlongSpline > 1 )
{
// We crossed the spline boundary
@@ -951,7 +951,7 @@ void CNPC_VehicleDriver::CheckForTeleport( void )
// Does it have the teleport flag set?
if ( pTrack->HasSpawnFlags( SF_PATH_TELEPORT ) )
{
IncrementInterpolationFrame();
AddEffects( EF_NOINTERP );
// Teleport the vehicle to the pathcorner
Vector vecMins, vecMaxs;