Basic unit boost command support
This commit is contained in:
@@ -64,7 +64,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
}
|
||||
|
||||
public void updateBoosting(boolean boost){
|
||||
if(!type.canBoost) return;
|
||||
if(!type.canBoost || dead) return;
|
||||
|
||||
elevation = Mathf.approachDelta(elevation, type.canBoost ? Mathf.num(boost || onSolid() || (isFlying() && !canLand())) : 0f, type.riseSpeed);
|
||||
}
|
||||
|
||||
@@ -222,6 +222,10 @@ public class AIController implements UnitController{
|
||||
return target(x, y, range, air, ground);
|
||||
}
|
||||
|
||||
public void commandTarget(Teamc moveTo){}
|
||||
|
||||
public void commandPosition(Vec2 pos){}
|
||||
|
||||
/** Called after this controller is assigned a unit. */
|
||||
public void init(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user