// =============================================================================== // DESCRIPTION: Initates the script vars and starts the game // CALLED BY: maploaded // PARAMS: none // TYPE: Server-Side // =============================================================================== // Init ========================================================================== @INIT CreateVar string __name "SA" CreateVar string __version "02" CreateVar string __mapname #__name#"_"#__version# // Debug settings CreateVar string __empty "" CreateVar string __empty "" CreateVar string __debug_prefix "^c::"#__mapname#":: ^y" CreateVar int __start_game_min 3 // Register CreateVar bool __game_started false CreateVar int __game_seconds #GetGameTime()# CreateVar bool __game_blocking false CreateVar int __clients 0 CreateVar int __clients_max_idx 0 CreateVar int __clients_max_idx_prev 0 // LOOP CreateVar bool __loop_progress false CreateVar int __tick 0 CreateVar int __powerups_num 0 CreateVar int __powerups_num_consistancy 0 CreateVar bool __powerups_assigned false CreateVar int __powerups_respawn 30 CreateVar int __powerups_locations 5 CreateVar string __powerups_location0 "" CreateVar int __powerups_location0_mtime 0 CreateVar string __powerups_location1 "" CreateVar int __powerups_location1_mtime 0 CreateVar string __powerups_location2 "" CreateVar int __powerups_location2_mtime 0 CreateVar string __powerups_location3 "" CreateVar int __powerups_location3_mtime 0 CreateVar string __powerups_location4 "" CreateVar int __powerups_location4_mtime 0 CreateVar int __powerups 7 CreateVar string __powerups0 "consumable_healthmajor" CreateVar string __powerups1 "consumable_healthshrine" CreateVar string __powerups2 "consumable_speedboost" CreateVar string __powerups3 "consumable_toughskin" CreateVar string __powerups4 "consumable_staminamajor" CreateVar string __powerups5 "consumable_malikenlungs" CreateVar string __powerups6 "consumable_malikenheart" CreateVar int __timer_start #GetGameTime()# StartGame if [__debug == 1] goto DEBUG goto SCRIPT // =============================================================================== // Debug ========================================================================= @DEBUG Echo #__debug_prefix#"Calling script __SCRIPTVARS" goto SCRIPT // =============================================================================== // Script ======================================================================== @SCRIPT goto EOF @EOF // ===============================================================================