mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-04-22 23:25:42 +00:00
Added vscode settings
This commit is contained in:
parent
2daf4fae28
commit
62403096c1
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
|
||||
# Files to not ignore
|
||||
!/.gitignore
|
||||
!/.vscode
|
||||
!/z_client.bat
|
||||
|
||||
# Folder to not ignore
|
||||
|
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"astyle.astylerc": "${workspaceRoot}/.astylerc",
|
||||
"astyle.additional_languages": [
|
||||
"gsc"
|
||||
],
|
||||
"editor.defaultFormatter": "chiehyu.vscode-astyle",
|
||||
"editor.formatOnSave": true
|
||||
}
|
@ -40,6 +40,9 @@ async function doDeploy() {
|
||||
await exec(`git clone ${repo_url} && cd ${repo_name} && git submodule update --init --recursive`)
|
||||
|
||||
printToConsole('Cloned!')
|
||||
printToConsole('Deploying...')
|
||||
await exec('deploy.bat')
|
||||
printToConsole('Deployed!')
|
||||
} catch (f) {
|
||||
printToConsole(f, true)
|
||||
}
|
||||
|
@ -26,6 +26,9 @@ init()
|
||||
if ( getCvar( "bots_main_waitForHostTime" ) == "" )
|
||||
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" ) == "" )
|
||||
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
|
||||
setCvar( "bots_play_ads", true );
|
||||
|
||||
if ( getCvar( "bots_play_aim" ) == "" )
|
||||
setCvar( "bots_play_aim", true );
|
||||
|
||||
if ( !isDefined( game["botWarfare"] ) )
|
||||
game["botWarfare"] = true;
|
||||
|
||||
@ -159,6 +165,16 @@ handleBots()
|
||||
wait 0.05;
|
||||
|
||||
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() );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2049,7 +2049,7 @@ bot_lookat( pos, time, vel )
|
||||
self endon( "spawned_player" );
|
||||
level endon ( "game_ended" );
|
||||
|
||||
if ( level.gameEnded || self.bot.isfrozen )
|
||||
if ( level.gameEnded || self.bot.isfrozen || !getCvarInt( "bots_play_aim" ) )
|
||||
return;
|
||||
|
||||
if ( !isDefined( pos ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user