mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-30 05:59:20 +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: A camera entity that's used by the -makedevshots system to take
|
||||
// dev screenshots everytime the map is checked into source control.
|
||||
@@ -53,24 +53,6 @@ END_DATADESC()
|
||||
|
||||
LINK_ENTITY_TO_CLASS( point_devshot_camera, CPointDevShotCamera );
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Convenience function so we don't have to make this check all over
|
||||
//-----------------------------------------------------------------------------
|
||||
static CBasePlayer * UTIL_GetLocalPlayerOrListenServerHost( void )
|
||||
{
|
||||
if ( gpGlobals->maxClients > 1 )
|
||||
{
|
||||
if ( engine->IsDedicatedServer() )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return UTIL_GetListenServerHost();
|
||||
}
|
||||
|
||||
return UTIL_GetLocalPlayer();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -146,7 +128,7 @@ void CPointDevShotCamera::DevShotThink_TakeShot( void )
|
||||
if ( !pPlayer )
|
||||
return;
|
||||
|
||||
engine->ClientCommand( pPlayer->edict(), "devshots_screenshot \"%s\"", STRING(m_iszCameraName) );
|
||||
engine->ClientCommand( pPlayer->edict(), UTIL_VarArgs( "devshots_screenshot \"%s\"", STRING(m_iszCameraName) ) );
|
||||
|
||||
// Now take the shot next frame
|
||||
SetThink( &CPointDevShotCamera::DevShotThink_PostShot );
|
||||
|
||||
Reference in New Issue
Block a user