Multi shotgun fix (#8460)

* Multi-barrel shotgun fix

* multi-recoil support

* @Nullable for everything
This commit is contained in:
MEEPofFaith
2023-04-03 13:38:10 -07:00
committed by GitHub
parent 2075a226e1
commit 6d71bcd2eb
13 changed files with 73 additions and 20 deletions

View File

@@ -14,6 +14,8 @@ public abstract class DrawPart{
public boolean under = false;
/** For units, this is the index of the weapon this part gets its progress for. */
public int weaponIndex = 0;
/** Which recoil counter to use. < 0 to use base recoil. */
public int recoilIndex = -1;
public abstract void draw(PartParams params);
public abstract void load(String name);
@@ -41,6 +43,11 @@ public abstract class DrawPart{
this.sideMultiplier = 1;
return this;
}
public PartParams setRecoil(float recoils){
this.recoil = recoils;
return this;
}
}
public static class PartMove{