mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-23 06:15:43 +00:00
A lot of chat stuff
This commit is contained in:
parent
f58e91b762
commit
5f44a7b455
@ -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
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user