blob: 2e35417fe9dd3cc635d6cd6923be98010d592b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
// there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them
AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns )
}
void function TrimBadTitanStartSpawns( entity spawn )
{
vector comparisonOrigin
if ( spawn.GetTeam() == TEAM_IMC )
comparisonOrigin = < 160.625, 4748.13, -251.447 >
else
comparisonOrigin = < 1087.13, -4914.88, -199.969 >
if ( Distance2D( spawn.GetOrigin(), comparisonOrigin ) >= 1000.0)
spawn.Destroy()
}
|