Added vscode settings

This commit is contained in:
ineedbots 2021-09-03 11:18:34 -06:00
parent 2daf4fae28
commit 62403096c1
5 changed files with 29 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
# Files to not ignore # Files to not ignore
!/.gitignore !/.gitignore
!/.vscode
!/z_client.bat !/z_client.bat
# Folder to not ignore # Folder to not ignore

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"astyle.astylerc": "${workspaceRoot}/.astylerc",
"astyle.additional_languages": [
"gsc"
],
"editor.defaultFormatter": "chiehyu.vscode-astyle",
"editor.formatOnSave": true
}

View File

@ -40,6 +40,9 @@ async function doDeploy() {
await exec(`git clone ${repo_url} && cd ${repo_name} && git submodule update --init --recursive`) await exec(`git clone ${repo_url} && cd ${repo_name} && git submodule update --init --recursive`)
printToConsole('Cloned!') printToConsole('Cloned!')
printToConsole('Deploying...')
await exec('deploy.bat')
printToConsole('Deployed!')
} catch (f) { } catch (f) {
printToConsole(f, true) printToConsole(f, true)
} }

View File

@ -26,6 +26,9 @@ init()
if ( getCvar( "bots_main_waitForHostTime" ) == "" ) if ( getCvar( "bots_main_waitForHostTime" ) == "" )
setCvar( "bots_main_waitForHostTime", 10.0 ); //how long to wait to wait for the host player setCvar( "bots_main_waitForHostTime", 10.0 ); //how long to wait to wait for the host player
if ( getCvar( "bots_main_kickBotsAtEnd" ) == "" )
setCvar( "bots_main_kickBotsAtEnd", false ); //kicks the bots at game end
if ( getCvar( "bots_manage_add" ) == "" ) if ( getCvar( "bots_manage_add" ) == "" )
setCvar( "bots_manage_add", 0 ); //amount of bots to add to the game setCvar( "bots_manage_add", 0 ); //amount of bots to add to the game
@ -95,6 +98,9 @@ init()
if ( getCvar( "bots_play_ads" ) == "" ) //bot ads if ( getCvar( "bots_play_ads" ) == "" ) //bot ads
setCvar( "bots_play_ads", true ); setCvar( "bots_play_ads", true );
if ( getCvar( "bots_play_aim" ) == "" )
setCvar( "bots_play_aim", true );
if ( !isDefined( game["botWarfare"] ) ) if ( !isDefined( game["botWarfare"] ) )
game["botWarfare"] = true; game["botWarfare"] = true;
@ -159,6 +165,16 @@ handleBots()
wait 0.05; wait 0.05;
setCvar( "bots_manage_add", getBotArray().size ); setCvar( "bots_manage_add", getBotArray().size );
if ( !getCvarInt( "bots_main_kickBotsAtEnd" ) )
return;
bots = getBotArray();
for ( i = 0; i < bots.size; i++ )
{
kick( bots[i] getEntityNumber() );
}
} }
/* /*

View File

@ -2049,7 +2049,7 @@ bot_lookat( pos, time, vel )
self endon( "spawned_player" ); self endon( "spawned_player" );
level endon ( "game_ended" ); level endon ( "game_ended" );
if ( level.gameEnded || self.bot.isfrozen ) if ( level.gameEnded || self.bot.isfrozen || !getCvarInt( "bots_play_aim" ) )
return; return;
if ( !isDefined( pos ) ) if ( !isDefined( pos ) )