mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-30 22:19:19 +00:00
upload "kind" alien swarm
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user