aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_soldiers_sp.gnut
blob: 6faf66491bdcdaa0c2adf60e08cc370fc5b74044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
global function IsAutoPopulateEnabled

bool function IsAutoPopulateEnabled( var team = null )
{
	if ( IsNPCSpawningEnabled() == false )
		return false

	if ( Flag( "disable_npcs" ) )
		return false

	if ( team == TEAM_MILITIA && Flag( "Disable_MILITIA" ) )
		return false
	if ( team == TEAM_IMC && Flag( "Disable_IMC" ) )
		return false

	return true
}