A lot of chat stuff

This commit is contained in:
ineed bots 2022-04-18 15:58:21 -06:00
parent f58e91b762
commit 5f44a7b455
3 changed files with 1143 additions and 60 deletions

View File

@ -399,6 +399,23 @@ doNotifyOnAirdrop()
self.doingPhysics = false; self.doingPhysics = false;
self.owner notify( "crate_physics_done" ); self.owner notify( "crate_physics_done" );
self thread onCarepackageCaptured();
}
/*
Waits to be captured
*/
onCarepackageCaptured()
{
self endon( "death" );
self waittill( "captured", player );
if ( isDefined( self.owner ) && self.owner is_bot() )
{
self.owner BotNotifyBotChat( "crate_cap", "captured", self, player );
}
} }
/* /*
@ -627,7 +644,7 @@ diffBots_loop()
if ( !player is_bot() ) if ( !player is_bot() )
continue; continue;
player.pers["bots"]["skill"]["base"] = int(clamp(player.pers["bots"]["skill"]["base"], GetDvarInt("bots_skill_min"), GetDvarInt("bots_skill_max"))); player.pers["bots"]["skill"]["base"] = int( clamp( player.pers["bots"]["skill"]["base"], GetDvarInt( "bots_skill_min" ), GetDvarInt( "bots_skill_max" ) ) );
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -4159,14 +4159,14 @@ bot_target_vehicle_loop()
if ( !isDefined( target ) ) if ( !isDefined( target ) )
return; return;
self BotNotifyBotChat( "attack_vehicle", "start", target ); self BotNotifyBotChat( "attack_vehicle", "start", target, rocketAmmo );
self SetScriptEnemy( target, ( 0, 0, 0 ) ); self SetScriptEnemy( target, ( 0, 0, 0 ) );
self bot_attack_vehicle( target ); self bot_attack_vehicle( target );
self ClearScriptEnemy(); self ClearScriptEnemy();
self notify( "bot_force_check_switch" ); self notify( "bot_force_check_switch" );
self BotNotifyBotChat( "attack_vehicle", "stop", target ); self BotNotifyBotChat( "attack_vehicle", "stop", target, rocketAmmo );
} }
/* /*