Multi shotgun fix (#8460)
* Multi-barrel shotgun fix * multi-recoil support * @Nullable for everything
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user