isLogicControllable
This commit is contained in:
@@ -93,6 +93,11 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
||||
return isAdded();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLogicControllable(){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Replace
|
||||
public float clipSize(){
|
||||
return unit.isNull() ? 20 : unit.type.hitSize * 2f;
|
||||
|
||||
@@ -55,6 +55,11 @@ public class AIController implements UnitController{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLogicControllable(){
|
||||
return true;
|
||||
}
|
||||
|
||||
public void stopShooting(){
|
||||
for(var mount : unit.mounts){
|
||||
//ignore mount controllable stats too, they should not shoot either
|
||||
|
||||
@@ -14,6 +14,11 @@ public interface UnitController{
|
||||
return true;
|
||||
}
|
||||
|
||||
/** @return whether logic AI can take over */
|
||||
default boolean isLogicControllable(){
|
||||
return false;
|
||||
}
|
||||
|
||||
default void updateUnit(){
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user