diff options
Diffstat (limited to 'Northstar.Coop/scripts/vscripts/sp/sh_coop_sp_utils.gnut')
-rw-r--r-- | Northstar.Coop/scripts/vscripts/sp/sh_coop_sp_utils.gnut | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Northstar.Coop/scripts/vscripts/sp/sh_coop_sp_utils.gnut b/Northstar.Coop/scripts/vscripts/sp/sh_coop_sp_utils.gnut deleted file mode 100644 index 62f603e9a..000000000 --- a/Northstar.Coop/scripts/vscripts/sp/sh_coop_sp_utils.gnut +++ /dev/null @@ -1,34 +0,0 @@ -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 -} |