aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_serverflags.nut
blob: a665463da6a03b37b685a9f247720cee775453d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
untyped

globalize_all_functions

function GiveServerFlag( player, passive )
{
	if ( !( player.serverFlags & passive ) )
	{
		player.serverFlags = player.serverFlags | passive
	}

	// enter/exit functions for specific passives
	switch ( passive )
	{
	}
}

function TakeServerFlag( player, passive )
{
	if ( !PlayerHasServerFlag( player, passive ) )
		return

	player.serverFlags = player.serverFlags & ( ~passive )

	// enter/exit functions for specific passives
	switch ( passive )
	{
	}

}

bool function PlayerHasServerFlag( player, passive )
{
	return bool( player.serverFlags & passive )
}