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
+1 -27
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -16,14 +16,6 @@
void Test_CreateEntity( const CCommand &args )
{
CBasePlayer *pPlayer = UTIL_GetCommandClient();
// Require a player entity or that the command was entered from the dedicated server console
if ( !pPlayer && UTIL_GetCommandClientIndex() > 0 )
{
return;
}
if ( args.ArgC() < 2 )
{
Error( "Test_CreateEntity: requires entity classname argument." );
@@ -31,24 +23,6 @@ void Test_CreateEntity( const CCommand &args )
const char *pClassName = args[ 1 ];
// Don't allow regular users to create point_servercommand entities for the same reason as blocking ent_fire
if ( pPlayer && !Q_stricmp( pClassName, "point_servercommand" ) )
{
if ( engine->IsDedicatedServer() )
{
// We allow people with disabled autokick to do it, because they already have rcon.
if ( pPlayer->IsAutoKickDisabled() == false )
return;
}
else if ( gpGlobals->maxClients > 1 )
{
// On listen servers with more than 1 player, only allow the host to create point_servercommand.
CBasePlayer *pHostPlayer = UTIL_GetListenServerHost();
if ( pPlayer != pHostPlayer )
return;
}
}
if ( !CreateEntityByName( pClassName ) )
{
Error( "Test_CreateEntity( %s ) failed.", pClassName );