blob: 3a46eba8457c88280c598fad65f3f0b1746c744a (
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
36
37
38
39
40
41
42
43
44
45
|
untyped
global function CodeCallback_MapInit
struct {
bool introStartTime
} file
void function CodeCallback_MapInit()
{
AddEvacNode( GetEnt( "evac_location1" ) )
AddEvacNode( GetEnt( "evac_location2" ) )
AddEvacNode( GetEnt( "evac_location3" ) )
AddEvacNode( GetEnt( "evac_location4" ) )
SetEvacSpaceNode( GetEnt( "end_spacenode" ) )
// currently disabled: intro
// if ( !IsFFAGame() )
// ClassicMP_SetLevelIntro( WargamesIntroSetup, 25.0 )
}
// intro stuff
void function WargamesIntroSetup()
{
AddCallback_OnClientConnected( WargamesIntro_OnClientConnected )
AddCallback_OnClientDisconnected( WargamesIntro_OnClientDisconnected )
AddCallback_GameStateEnter( eGameState.Prematch, OnPrematchStart )
}
void function WargamesIntro_OnClientConnected( entity player )
{
}
void function WargamesIntro_OnClientDisconnected( entity player )
{
}
void function OnPrematchStart()
{
ClassicMP_OnIntroStarted()
file.introStartTime = Time()
}
|