mirror of
https://github.com/unknownworlds/NS.git
synced 2025-01-18 23:11:49 +00:00
o removed 'enemy approaches' warning during round warmup
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@463 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
0a503f4af9
commit
d77290c497
2 changed files with 5 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
|
||||
// Half-Life Server Configuration Layout Script (stores last settings chosen, too)
|
||||
// File generated: Thu Mar 03 11:29:18 PM
|
||||
// File generated: Sun May 07 10:30:06 AM
|
||||
//
|
||||
//
|
||||
// Cvar - Setting
|
||||
|
|
|
@ -1072,11 +1072,12 @@ bool AvHGamerules::CanEntityDoDamageTo(const CBaseEntity* inAttacker, const CBas
|
|||
*outScalar = theScalar;
|
||||
}
|
||||
|
||||
if(!theTeamsAreDifferent && !AvHSUGetIsExternalClassName(STRING(inReceiver->pev->classname)))
|
||||
if(!theTeamsAreDifferent && !AvHSUGetIsExternalClassName(STRING(inReceiver->pev->classname)) && theGameHasStarted )
|
||||
{
|
||||
AvHHive *theHive=(AvHHive *)dynamic_cast<const AvHHive *>(inReceiver);
|
||||
if ( theHive != NULL && !this->GetIsEntityUnderAttack(theHive->entindex()) ) {
|
||||
if ( theHive != NULL ) {
|
||||
theCanDoDamage=false;
|
||||
if ( !this->GetIsEntityUnderAttack(theHive->entindex()) )
|
||||
GetGameRules()->TriggerAlert((AvHTeamNumber)inAttacker->pev->team, ALERT_HIVE_DEFEND, theHive->entindex());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue