self.havocbot_keyboardtime =
max(
self.havocbot_keyboardtime
- + bound(0,0.05/(sk+self.havocbot_keyboardskill),0.05)
- +random()*bound(0,0.025/(skill+self.havocbot_keyboardskill),100)
+ + 0.05/max(1, sk+self.havocbot_keyboardskill)
+ + random()*0.025/max(0.00025, skill+self.havocbot_keyboardskill)
, time);
keyboard = self.movement * (1.0 / maxspeed);
entity oldself,oldenemy;
self.cnt = self.cnt - 1;
- if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
- if ((self.owner.ammo_rockets < cvar("g_balance_seeker_missile_ammo")) || (self.cnt <= -1) || (self.owner.deadflag != DEAD_NO))
+ if((!(self.owner.items & IT_UNLIMITED_AMMO) && self.owner.ammo_rockets < cvar("g_balance_seeker_missile_ammo")) || (self.cnt <= -1) || (self.owner.deadflag != DEAD_NO))
{
+ print("cannot\n");
remove(self);
return;
}