mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
150 lines
3.8 KiB
Java
150 lines
3.8 KiB
Java
package com.hbm.handler.guncfg;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import com.hbm.handler.BulletConfigSyncingUtil;
|
|
import com.hbm.handler.BulletConfiguration;
|
|
import com.hbm.handler.GunConfiguration;
|
|
import com.hbm.items.ModItems;
|
|
import com.hbm.render.misc.RenderScreenOverlay.Crosshair;
|
|
|
|
public class GunRocketFactory {
|
|
|
|
public static GunConfiguration getGustavConfig() {
|
|
|
|
GunConfiguration config = new GunConfiguration();
|
|
|
|
config.rateOfFire = 30;
|
|
config.roundsPerCycle = 1;
|
|
config.gunMode = GunConfiguration.MODE_NORMAL;
|
|
config.firingMode = GunConfiguration.FIRE_MANUAL;
|
|
config.hasReloadAnim = false;
|
|
config.hasFiringAnim = false;
|
|
config.hasSpinup = false;
|
|
config.hasSpindown = false;
|
|
config.reloadDuration = 60;
|
|
config.firingDuration = 0;
|
|
config.ammoCap = 1;
|
|
config.reloadType = GunConfiguration.RELOAD_SINGLE;
|
|
config.allowsInfinity = true;
|
|
config.crosshair = Crosshair.L_CIRCUMFLEX;
|
|
|
|
config.name = "Carl Gustav Recoilless Rifle M1";
|
|
config.manufacturer = "Saab Bofors Dynamics";
|
|
|
|
config.config = new ArrayList<Integer>();
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_NORMAL);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_HE);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_INCENDIARY);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_SHRAPNEL);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_EMP);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_GLARE);
|
|
config.config.add(BulletConfigSyncingUtil.ROCKET_SLEEK);
|
|
config.durability = 140;
|
|
|
|
return config;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.explosive = 4F;
|
|
bullet.trail = 0;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketHEConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_he;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.wear = 15;
|
|
bullet.explosive = 6.5F;
|
|
bullet.trail = 1;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketIncendiaryConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_incendiary;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.wear = 15;
|
|
bullet.explosive = 4F;
|
|
bullet.incendiary = 5;
|
|
bullet.trail = 2;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketEMPConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_emp;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.explosive = 2.5F;
|
|
bullet.emp = 10;
|
|
bullet.trail = 4;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketSleekConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_sleek;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.explosive = 10F;
|
|
bullet.trail = 6;
|
|
bullet.gravity = 0;
|
|
bullet.jolt = 6.5D;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketShrapnelConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_shrapnel;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.explosive = 4F;
|
|
bullet.shrapnel = 25;
|
|
bullet.trail = 3;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRocketGlareConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardRocketConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_rocket_glare;
|
|
bullet.velocity = 5.0F;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
bullet.wear = 20;
|
|
bullet.explosive = 4F;
|
|
bullet.incendiary = 5;
|
|
bullet.trail = 5;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
}
|