blob: 62f603e9af316c34865ed555daec3edf7af1eae1 (
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
|
untyped
global function ClCoopSpUtils_Init
global function AreAllPlayersDead
global function IsPlayingTimeshiftLevel
void function ClCoopSpUtils_Init()
{
}
bool function AreAllPlayersDead()
{
foreach ( entity player in GetPlayerArray() )
if ( IsAlive( player ) )
return false
return true
}
// TIMESHIFT STUFF
bool function IsPlayingTimeshiftLevel()
{
bool allowed = false
try
{
allowed = expect bool( level.allowTimeTravel )
}
catch ( exception ) {}
return GetMapName().find( "timeshift" ) != null || allowed
}
|