REFACTOR [anough to enough]
This commit is contained in:
parent
2579738256
commit
a375f898f5
7 changed files with 21 additions and 21 deletions
|
@ -2451,7 +2451,7 @@ int AINode_Battle_Retreat(bot_state_t *bs) {
|
|||
else if (!(moveresult.flags & MOVERESULT_MOVEMENTVIEWSET)
|
||||
&& !(bs->flags & BFL_IDEALVIEWSET) ) {
|
||||
attack_skill = trap_Characteristic_BFloat(bs->character, CHARACTERISTIC_ATTACK_SKILL, 0, 1);
|
||||
//if the bot is skilled anough
|
||||
//if the bot is skilled enough
|
||||
if (attack_skill > 0.3) {
|
||||
BotAimAtEnemy(bs);
|
||||
}
|
||||
|
@ -2597,7 +2597,7 @@ int AINode_Battle_NBG(bot_state_t *bs) {
|
|||
else if (!(moveresult.flags & MOVERESULT_MOVEMENTVIEWSET)
|
||||
&& !(bs->flags & BFL_IDEALVIEWSET)) {
|
||||
attack_skill = trap_Characteristic_BFloat(bs->character, CHARACTERISTIC_ATTACK_SKILL, 0, 1);
|
||||
//if the bot is skilled anough and the enemy is visible
|
||||
//if the bot is skilled enough and the enemy is visible
|
||||
if (attack_skill > 0.3) {
|
||||
//&& BotEntityVisible(bs->entitynum, bs->eye, bs->viewangles, 360, bs->enemy)
|
||||
BotAimAtEnemy(bs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue