maint: cleanup code
This commit is contained in:
parent
0848badc74
commit
351039652b
@ -105,10 +105,11 @@ function main()
|
|||||||
system::wait_till( "all" );
|
system::wait_till( "all" );
|
||||||
|
|
||||||
level thread load::art_review();
|
level thread load::art_review();
|
||||||
SetDvar("scr_firstGumFree",1); // First GobbleGum free
|
|
||||||
SetDvar("zm_private_rankedmatch",1); // Ranked private match
|
|
||||||
|
|
||||||
level flagsys::set( "load_main_complete" );
|
level flagsys::set( "load_main_complete" );
|
||||||
|
|
||||||
|
SetDvar("scr_firstGumFree",1); // First GobbleGum free
|
||||||
|
SetDvar("zm_private_rankedmatch",1); // Ranked private match
|
||||||
}
|
}
|
||||||
|
|
||||||
function footsteps()
|
function footsteps()
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
#using scripts\shared\system_shared;
|
#using scripts\shared\system_shared;
|
||||||
|
|
||||||
#using scripts\shared\flag_shared;
|
#using scripts\shared\flag_shared;
|
||||||
#using scripts\shared\array_shared;
|
// #using scripts\shared\array_shared;
|
||||||
#using scripts\zm\_zm_perks;
|
|
||||||
|
|
||||||
#insert scripts\shared\shared.gsh;
|
#insert scripts\shared\shared.gsh;
|
||||||
|
|
||||||
@ -17,20 +16,20 @@ function __init__()
|
|||||||
{
|
{
|
||||||
callback::on_start_gametype( &init );
|
callback::on_start_gametype( &init );
|
||||||
callback::on_connect( &on_player_connect );
|
callback::on_connect( &on_player_connect );
|
||||||
// callback::on_spawned( &on_player_spawned ); // Spawn message function
|
// callback::on_spawned( &on_player_spawned ); // Call message function on init
|
||||||
}
|
}
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
// this is now handled in code ( not lan )
|
// This is now handled in code ( not lan )
|
||||||
// see s_nextScriptClientId
|
// See s_nextScriptClientId
|
||||||
level.clientid = 0;
|
level.clientid = 0;
|
||||||
// Set Client Dvars
|
// Set Client Dvars
|
||||||
SetDvar("r_fog", "0"); // Disable fog
|
SetDvar("r_fog", "0"); // Disable fog
|
||||||
SetDvar("r_dof_enable", "0"); // Disable depth of field
|
SetDvar("r_dof_enable", "0"); // Disable depth of field
|
||||||
SetDvar("r_lodbiasrigid", "-1000"); // Increase draw distance
|
SetDvar("r_lodbiasrigid", "-1000"); // Increase draw distance
|
||||||
SetDvar("r_modellodbias", "10"); // Increase model draw distance
|
SetDvar("r_modellodbias", "10"); // Increase model draw distance
|
||||||
level.perk_purchase_limit = 25; // Remove perk limit on most maps
|
level.perk_purchase_limit = 50; // Remove perk limit on most maps
|
||||||
// level.player_starting_points = 500000; // DEBUG: Set player starting points
|
// level.player_starting_points = 500000; // DEBUG: Set player starting points
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,18 +41,17 @@ function on_player_connect()
|
|||||||
self.clientid = level.clientid;
|
self.clientid = level.clientid;
|
||||||
level.clientid++; // Is this safe? What if a server runs for a long time and many people join/leave
|
level.clientid++; // Is this safe? What if a server runs for a long time and many people join/leave
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
function on_player_spawned()
|
function on_player_spawned()
|
||||||
{
|
{
|
||||||
// Spawn Message
|
// Spawn Message
|
||||||
level flag::wait_till("initial_blackscreen_passed");
|
level flag::wait_till("initial_blackscreen_passed");
|
||||||
self iPrintLnBold("Follow ^2@thahrimdon ^7on ^1YouTube ^7& ^6Twitch^7!");
|
self iPrintLnBold("Follow ^2@thahrimdon ^7on ^1YouTube ^7& ^6Twitch^7!");
|
||||||
//self thread print(); // Print message on knife
|
self thread print(); // Print message on knife
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
function print()
|
function print()
|
||||||
{
|
{
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Loading…
Reference in New Issue
Block a user