This commit is contained in:
ineed bots 2024-01-04 16:10:14 -06:00
parent 04b7296246
commit 3ff48407d5
9 changed files with 4092 additions and 4086 deletions

View File

@ -1,21 +1,27 @@
# try to mimic the original gsc provided
# mode=ghc
mode=c
style=allman
indent=tab
indent=force-tab=2
lineend=windows
pad-oper
pad-paren-in
pad-header
# delete-empty-lines
# pad-brackets-in
fill-empty-lines
squeeze-lines=2
squeeze-ws
break-one-line-headers
add-braces
remove-comment-prefix
break-blocks
# remove-braces
indent-switches
indent-cases
indent-after-parens
indent-col1-comments
remove-comment-prefix

View File

@ -4,7 +4,7 @@ root = true
indent_style = tab
indent_size = 2
charset = latin1
trim_trailing_whitespace = true
trim_trailing_whitespace = false
insert_final_newline = true
[*.md]

View File

@ -1121,7 +1121,7 @@ bot_chat_killed_watch( victim )
break;
case 5:
message = ( "^" + ( randomint( 6 ) + 1 ) + "LOL " + victim.name + ", l2play" );
message = ( "^" + ( randomint( 6 ) + 1 ) + "LOL " + victim.name + ", l2play" );
break;
case 6:
@ -1306,7 +1306,7 @@ bot_chat_death_watch( killer, last_ks )
break;
case 3:
message = ( "^" + ( randomint( 6 ) + 1 ) + "How the?? How did you do that " + killer.name + "?" );
message = ( "^" + ( randomint( 6 ) + 1 ) + "How the?? How did you do that " + killer.name + "?" );
break;
case 4:

View File

@ -775,8 +775,8 @@ doBotMovement_loop( data )
// rotate our direction according to our angles
dir = ( dir[ 0 ] * cosa - dir[ 1 ] * sina,
dir[ 0 ] * sina + dir[ 1 ] * cosa,
0 );
dir[ 0 ] * sina + dir[ 1 ] * cosa,
0 );
// make the length 127
dir = vectornormalize( dir ) * 127;
@ -1233,8 +1233,8 @@ updateAimOffset( obj, theTime )
if ( offsetAmount > 0 )
{
obj.aim_offset_base = ( randomfloatrange( 0 - offsetAmount, offsetAmount ),
randomfloatrange( 0 - offsetAmount, offsetAmount ),
randomfloatrange( 0 - offsetAmount, offsetAmount ) );
randomfloatrange( 0 - offsetAmount, offsetAmount ),
randomfloatrange( 0 - offsetAmount, offsetAmount ) );
}
else
{
@ -1443,7 +1443,7 @@ target_loop()
if ( usingRemote )
{
canTargetPlayer = ( bullettracepassed( myEye, player gettagorigin( "j_head" ), false, vehEnt )
&& !player _hasperk( "specialty_blindeye" ) );
&& !player _hasperk( "specialty_blindeye" ) );
}
else
{
@ -1456,19 +1456,19 @@ target_loop()
traceAnkleRight = bullettrace( myEye, targetAnkleRight, false, undefined );
canTargetPlayer = ( ( sighttracepassed( myEye, targetHead, false, undefined ) ||
sighttracepassed( myEye, targetAnkleLeft, false, undefined ) ||
sighttracepassed( myEye, targetAnkleRight, false, undefined ) )
sighttracepassed( myEye, targetAnkleLeft, false, undefined ) ||
sighttracepassed( myEye, targetAnkleRight, false, undefined ) )
&& ( ( traceHead[ "fraction" ] >= 1.0 || traceHead[ "surfacetype" ] == "glass" ) ||
( traceAnkleLeft[ "fraction" ] >= 1.0 || traceAnkleLeft[ "surfacetype" ] == "glass" ) ||
( traceAnkleRight[ "fraction" ] >= 1.0 || traceAnkleRight[ "surfacetype" ] == "glass" ) )
&& ( ( traceHead[ "fraction" ] >= 1.0 || traceHead[ "surfacetype" ] == "glass" ) ||
( traceAnkleLeft[ "fraction" ] >= 1.0 || traceAnkleLeft[ "surfacetype" ] == "glass" ) ||
( traceAnkleRight[ "fraction" ] >= 1.0 || traceAnkleRight[ "surfacetype" ] == "glass" ) )
&& ( ignoreSmoke ||
SmokeTrace( myEye, player.origin, level.smokeradius ) ||
daDist < level.bots_maxknifedistance * 4 )
&& ( ignoreSmoke ||
SmokeTrace( myEye, player.origin, level.smokeradius ) ||
daDist < level.bots_maxknifedistance * 4 )
&& ( getConeDot( player.origin, self.origin, myAngles ) >= myFov ||
( isObjDef && obj.trace_time ) ) );
&& ( getConeDot( player.origin, self.origin, myAngles ) >= myFov ||
( isObjDef && obj.trace_time ) ) );
}
if ( isdefined( self.bot.target_this_frame ) && self.bot.target_this_frame == player )

View File

@ -2457,7 +2457,7 @@ onUsePlantObjectFix( player )
player playsound( "mp_bomb_plant" );
player notify( "bomb_planted" );
player notify( "objective", "plant" );
player notify( "objective", "plant" );
player maps\mp\_utility::incpersstat( "plants", 1 );
player maps\mp\gametypes\_persistence::statsetchild( "round", "plants", player.pers[ "plants" ] );
@ -3452,7 +3452,7 @@ botGiveLoadout( team, class, allowCopycat, setPrimarySpawnWeapon ) // setPrimary
if ( primaryName == "riotshield_mp" && level.ingraceperiod )
{
self notify( "weapon_change", "riotshield_mp" );
self notify( "weapon_change", "riotshield_mp" );
}
if ( self _hasperk( "specialty_extraammo" ) )

View File

@ -992,9 +992,9 @@ initHudElem( txt, xl, yl )
hud = newclienthudelem( self );
hud settext( txt );
hud.alignx = "left";
hud.aligny = "top";
hud.horzalign = "left";
hud.vertalign = "top";
hud.aligny = "top";
hud.horzalign = "left";
hud.vertalign = "top";
hud.x = xl;
hud.y = yl;
hud.foreground = true;