Player-only weapons (#6010)
Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -147,6 +147,11 @@ public class AIController implements UnitController{
|
||||
//let uncontrollable weapons do their own thing
|
||||
if(!weapon.controllable || weapon.noAttack) continue;
|
||||
|
||||
if(!weapon.aiControllable){
|
||||
mount.rotate = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
float mountX = unit.x + Angles.trnsx(rotation, weapon.x, weapon.y),
|
||||
mountY = unit.y + Angles.trnsy(rotation, weapon.x, weapon.y);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user