mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 18:25:44 +00:00
Uses botWeapon
This commit is contained in:
parent
cd7d315460
commit
bf671d646a
@ -288,11 +288,10 @@ onWeaponChange()
|
||||
|
||||
if (newWeapon == "none")
|
||||
{
|
||||
self changeToWeap(self.lastDroppableWeapon);
|
||||
continue;
|
||||
}
|
||||
|
||||
self changeToWeap(self GetCurrentWeapon());
|
||||
self changeToWeap(newWeapon);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1815,14 +1814,5 @@ prone()
|
||||
*/
|
||||
changeToWeap(weap)
|
||||
{
|
||||
toks = strtok(weap, "_");
|
||||
if (toks[0] == "gl")
|
||||
{
|
||||
self setSpawnWeapon(weap);
|
||||
//self botWeapon("");
|
||||
return;
|
||||
}
|
||||
|
||||
//self botWeapon(weap);
|
||||
self setSpawnWeapon(weap);
|
||||
self botWeapon(weap);
|
||||
}
|
||||
|
@ -1007,7 +1007,7 @@ bot_weapon_think()
|
||||
|
||||
if(threat.classname == "script_vehicle" && self getAmmoCount("rpg_mp") && curWeap != "rpg_mp")
|
||||
{
|
||||
self setSpawnWeapon("rpg_mp");
|
||||
self BotChangeToWeapon("rpg_mp");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -1047,7 +1047,7 @@ bot_weapon_think()
|
||||
if(weap == "")
|
||||
continue;
|
||||
|
||||
self setSpawnWeapon(weap);//until switchToWeapon works...
|
||||
self BotChangeToWeapon(weap);//until switchToWeapon works...
|
||||
}
|
||||
}
|
||||
|
||||
@ -1135,7 +1135,7 @@ bot_killstreak_think()
|
||||
continue;
|
||||
|
||||
self BotFreezeControls(true);
|
||||
self setSpawnWeapon(self.pers["hardPointItem"]);
|
||||
self BotChangeToWeapon(self.pers["hardPointItem"]);
|
||||
wait 1;
|
||||
if(isAirstrikePos && !isDefined( level.airstrikeInProgress ))
|
||||
{
|
||||
@ -1145,7 +1145,7 @@ bot_killstreak_think()
|
||||
self BotFreezeControls(false);
|
||||
|
||||
if(self getCurrentWeapon() != self.lastDroppableWeapon)
|
||||
self setSpawnWeapon(self.lastDroppableWeapon);
|
||||
self BotChangeToWeapon(self.lastDroppableWeapon);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user