bots can melee with riot shield
This commit is contained in:
@@ -344,6 +344,14 @@ updateWeapon()
|
|||||||
if(level.state == "prematch")
|
if(level.state == "prematch")
|
||||||
self setMoveSpeedScale(0);
|
self setMoveSpeedScale(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isDefined(self.pers["isBot"]) && self.pers["isBot"] && getDvar("gunmode") == "Fungame")
|
||||||
|
{
|
||||||
|
if(level.gungameList[self.current] == "riotshield_mp")
|
||||||
|
self enableMelee();
|
||||||
|
else
|
||||||
|
self disableMelee();
|
||||||
|
}
|
||||||
if(self getCurrentWeapon() == "none" && !self isMantling() && !self isOnLadder()) // in rare case weapon does not exist
|
if(self getCurrentWeapon() == "none" && !self isMantling() && !self isOnLadder()) // in rare case weapon does not exist
|
||||||
{
|
{
|
||||||
self updateWeapon();
|
self updateWeapon();
|
||||||
|
|||||||
Reference in New Issue
Block a user