From 2492ffc97b392408c9f370c55df9bc6ad7be6505 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Wed, 20 Dec 2023 15:19:08 -0600 Subject: [PATCH] fix comment formatting --- maps/bots/_bot.gsc | 30 +++++++++++++++--------------- maps/bots/_bot_debug.gsc | 2 +- maps/bots/_bot_internal.gsc | 10 +++++----- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/maps/bots/_bot.gsc b/maps/bots/_bot.gsc index 8b1e945..c03b1b3 100644 --- a/maps/bots/_bot.gsc +++ b/maps/bots/_bot.gsc @@ -29,52 +29,52 @@ init() if ( getdvar( "bots_main_GUIDs" ) == "" ) { - setdvar( "bots_main_GUIDs", "" ); //guids of players who will be given host powers, comma seperated + setdvar( "bots_main_GUIDs", "" ); // guids of players who will be given host powers, comma seperated } if ( getdvar( "bots_main_firstIsHost" ) == "" ) { - setdvar( "bots_main_firstIsHost", false ); //first player to connect is a host + setdvar( "bots_main_firstIsHost", false ); // first player to connect is a host } if ( getdvar( "bots_main_waitForHostTime" ) == "" ) { - setdvar( "bots_main_waitForHostTime", 10.0 ); //how long to wait to wait for the host player + setdvar( "bots_main_waitForHostTime", 10.0 ); // how long to wait to wait for the host player } if ( getdvar( "bots_main_kickBotsAtEnd" ) == "" ) { - setdvar( "bots_main_kickBotsAtEnd", false ); //kicks the bots at game end + setdvar( "bots_main_kickBotsAtEnd", false ); // kicks the bots at game end } if ( getdvar( "bots_manage_add" ) == "" ) { - setdvar( "bots_manage_add", 0 ); //amount of bots to add to the game + setdvar( "bots_manage_add", 0 ); // amount of bots to add to the game } if ( getdvar( "bots_manage_fill" ) == "" ) { - setdvar( "bots_manage_fill", 0 ); //amount of bots to maintain + setdvar( "bots_manage_fill", 0 ); // amount of bots to maintain } if ( getdvar( "bots_manage_fill_mode" ) == "" ) { - setdvar( "bots_manage_fill_mode", 0 ); //fill mode, 0 adds everyone, 1 just bots, 2 maintains at maps, 3 is 2 with 1 + setdvar( "bots_manage_fill_mode", 0 ); // fill mode, 0 adds everyone, 1 just bots, 2 maintains at maps, 3 is 2 with 1 } if ( getdvar( "bots_manage_fill_kick" ) == "" ) { - setdvar( "bots_manage_fill_kick", false ); //kick bots if too many + setdvar( "bots_manage_fill_kick", false ); // kick bots if too many } if ( getdvar( "bots_skill" ) == "" ) { - setdvar( "bots_skill", 0 ); //0 is random, 1 is easy 7 is hard, 8 is custom, 9 is completely random + setdvar( "bots_skill", 0 ); // 0 is random, 1 is easy 7 is hard, 8 is custom, 9 is completely random } if ( getdvar( "bots_skill_hard" ) == "" ) { - setdvar( "bots_skill_hard", 0 ); //amount of hard bots on axis team + setdvar( "bots_skill_hard", 0 ); // amount of hard bots on axis team } if ( getdvar( "bots_skill_med" ) == "" ) @@ -92,27 +92,27 @@ init() setdvar( "bots_loadout_prestige", -1 ); } - if ( getdvar( "bots_play_move" ) == "" ) //bots move + if ( getdvar( "bots_play_move" ) == "" ) // bots move { setdvar( "bots_play_move", true ); } - if ( getdvar( "bots_play_knife" ) == "" ) //bots knife + if ( getdvar( "bots_play_knife" ) == "" ) // bots knife { setdvar( "bots_play_knife", true ); } - if ( getdvar( "bots_play_fire" ) == "" ) //bots fire + if ( getdvar( "bots_play_fire" ) == "" ) // bots fire { setdvar( "bots_play_fire", true ); } - if ( getdvar( "bots_play_nade" ) == "" ) //bots grenade + if ( getdvar( "bots_play_nade" ) == "" ) // bots grenade { setdvar( "bots_play_nade", true ); } - if ( getdvar( "bots_play_ads" ) == "" ) //bot ads + if ( getdvar( "bots_play_ads" ) == "" ) // bot ads { setdvar( "bots_play_ads", true ); } diff --git a/maps/bots/_bot_debug.gsc b/maps/bots/_bot_debug.gsc index 91e470d..c69dc7a 100644 --- a/maps/bots/_bot_debug.gsc +++ b/maps/bots/_bot_debug.gsc @@ -284,7 +284,7 @@ textScroll( string ) { self endon( "zombified" ); self endon( "disconnect" ); - //thanks ActionScript + // thanks ActionScript back = createbar( ( 0, 0, 0 ), 1000, 30 ); back setpoint( "CENTER", undefined, 0, 220 ); diff --git a/maps/bots/_bot_internal.gsc b/maps/bots/_bot_internal.gsc index 2ab0e87..d60c24d 100644 --- a/maps/bots/_bot_internal.gsc +++ b/maps/bots/_bot_internal.gsc @@ -480,7 +480,7 @@ stance_loop() toStance = "crouch"; } - toStance = "stand"; //Hack to make the bots never crouch + toStance = "stand"; // Hack to make the bots never crouch if ( toStance == "stand" ) { @@ -1413,7 +1413,7 @@ aim_loop() { if ( isact ) { - //better room to nade? cook time function with dist? + // better room to nade? cook time function with dist? if ( !self.bot.isfraggingafter && !self.bot.issmokingafter ) { nade = self getValidGrenade(); @@ -1770,7 +1770,7 @@ doWalk( goal, dist, isScriptGoal ) { level endon( "intermission" ); self endon( "kill_goal" ); - self endon( "goal_internal" ); //so that the watchOnGoal notify can happen same frame, not a frame later + self endon( "goal_internal" ); // so that the watchOnGoal notify can happen same frame, not a frame later dist *= dist; @@ -1998,7 +1998,7 @@ strafe( target ) */ getRandomLargestStafe( dist ) { - //find a better algo? + // find a better algo? traces = NewHeap( ::HeapTraceFraction ); myOrg = self.origin + ( 0, 0, 16 ); @@ -2035,7 +2035,7 @@ initAStar( goal ) if ( !isdefined( nodes ) || nodes.size <= 0 ) { - //Try again to find a path to the origin using best effort algo + // Try again to find a path to the origin using best effort algo nodes = BotBuiltinGeneratePath( self.origin, goal, self.team, 192.0 ); if ( !isdefined( nodes ) || nodes.size <= 0 )