Update and rename main.gsc to grief.gsc

This commit is contained in:
Sparker 2020-02-20 23:51:10 +05:30 committed by GitHub
parent 856adc58df
commit 4e30463c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,3 @@
/*
* Black Ops 2 - GSC Studio by iMCSx
*
* Creator : JezuzLizard
* Project : grieffix2
* Mode : Zombies
* Date : 2020/01/31 - 03:36:03
*
*/
#include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes_zm/_hud_util;
@ -15,20 +5,21 @@
#include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_utility;
#include maps/mp/gametypes_zm/zgrief;
#include maps/mp/zombies/_zm_afterlife;
init()
{
level.wait_time = 30; //change this to adjust the start time once the player quota is met
//this also gives players time to rejoin a game after its ended
level.player_quota_active = 0; //set this to 0 to disable player quotas recommended to be 1 for grief
level.player_quota = 2; //number of players required before the game starts
level.pap_grab_by_anyone = true;
level.magic_box_grab_by_anyone = true;
level.perk_purchase_limit = 9;
level.wait_time = 30;
level.player_quota_active = 1;
level.player_quota = 2;
level.waiting = 0;
level.countdown_start = 0;
level.round_prestart_func =::round_prestart_func; //delays the rounds from starting
SetDvar( "scr_zm_enable_bots", "1" ); //this is required for the mod to work
thread add_bots(); //this overrides the typical start time logic
level.default_solo_laststandpistol = "m1911_zm"; //prevents players from having the solo pistol when downed in grief
level.round_prestart_func =::round_prestart_func;
SetDvar( "scr_zm_enable_bots", "1" );
thread add_bots();
level.default_solo_laststandpistol = "m1911_zm";
for(;;)
{
level waittill("connected", player);
@ -79,7 +70,6 @@ teamBalancing()
add_bots()
{
flag_clear( "start_zombie_round_logic" );
players = get_players();
level.waiting = 1;
thread waitMessage();
@ -105,16 +95,17 @@ waitMessage()
}
Waiting = create_simple_hud();
Waiting.horzAlign = "center"; //valid inputs: center, top, bottom, left, right, top_right, top_left, topcenter, bottom_right, bottom_left
Waiting.horzAlign = "center";
Waiting.vertAlign = "middle";
Waiting.alignX = "center";
Waiting.alignY = "middle";
Waiting.y = 0; //- is top 0 is middle + is bottom
Waiting.x = -1;
Waiting.y = -130;
Waiting.x = 0;
Waiting.foreground = 1;
Waiting.fontscale = 3.0;
Waiting.alpha = 1; //transparency
Waiting.color = ( 1.000, 1.000, 1.000 ); //RGB
Waiting.fontscale = 2.0;
Waiting.alpha = 1;
Waiting.color = ( 1.000, 1.000, 1.000 );
Waiting.hideWhenInMenu = true;
Waiting SetText( "Waiting for 1 more player" );
while ( 1 )
@ -140,27 +131,27 @@ countdownTimer()
Remaining = create_simple_hud();
Remaining.horzAlign = "center";
Remaining.vertAlign = "middle";
Remaining.alignX = "Left";
Remaining.alignX = "center";
Remaining.alignY = "middle";
Remaining.y = 0;
Remaining.x = 135;
Remaining.y = 20;
Remaining.x = 0;
Remaining.foreground = 1;
Remaining.fontscale = 3.0;
Remaining.fontscale = 2.0;
Remaining.alpha = 1;
Remaining.color = ( 1.000, 1.000, 1.000 );
Remaining.color = ( 0.98, 0.549, 0 );
Countdown = create_simple_hud();
Countdown.horzAlign = "center";
Countdown.vertAlign = "middle";
Countdown.alignX = "center";
Countdown.alignY = "middle";
Countdown.y = 0;
Countdown.x = -1;
Countdown.y = -20;
Countdown.x = 0;
Countdown.foreground = 1;
Countdown.fontscale = 3.0;
Countdown.fontscale = 2.0;
Countdown.alpha = 1;
Countdown.color = ( 1.000, 1.000, 1.000 );
Countdown SetText( "Time until game starts:" );
Countdown SetText( "Match begins in" );
timer = level.wait_time;
while ( level.countdown_start == 1 )
@ -176,19 +167,3 @@ countdownTimer()
}
}
}