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 GunGaussFactory { public static GunConfiguration getXVLConfig() { GunConfiguration config = new GunConfiguration(); config.rateOfFire = 4; config.roundsPerCycle = 1; config.gunMode = GunConfiguration.MODE_NORMAL; config.firingMode = GunConfiguration.FIRE_AUTO; config.hasReloadAnim = false; config.hasFiringAnim = false; config.hasSpinup = false; config.hasSpindown = false; config.reloadDuration = 20; config.firingDuration = 0; config.ammoCap = 0; config.reloadType = GunConfiguration.RELOAD_NONE; config.allowsInfinity = true; config.crosshair = Crosshair.L_RAD; config.durability = 6000; config.firingSound = "hbm:weapon.tauShoot"; config.name = "XVL1456 Tau Cannon"; config.manufacturer = "Black Mesa Research Facility"; config.config = new ArrayList(); config.config.add(BulletConfigSyncingUtil.SPECIAL_GAUSS); return config; } public static GunConfiguration getChargedConfig() { GunConfiguration config = new GunConfiguration(); config.rateOfFire = 10; config.roundsPerCycle = 1; config.gunMode = GunConfiguration.MODE_NORMAL; config.firingMode = GunConfiguration.FIRE_AUTO; config.reloadDuration = 20; config.firingDuration = 0; config.ammoCap = 30; config.reloadType = GunConfiguration.RELOAD_FULL; config.allowsInfinity = true; config.crosshair = Crosshair.L_ARROWS; return config; } public static BulletConfiguration getGaussConfig() { BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig(); bullet.ammo = ModItems.gun_xvl1456_ammo; bullet.dmgMin = 6; bullet.dmgMax = 9; bullet.trail = 1; bullet.vPFX = "fireworksSpark"; bullet.LBRC = 80; bullet.HBRC = 5; return bullet; } public static BulletConfiguration getAltConfig() { BulletConfiguration bullet = getGaussConfig(); bullet.vPFX = "reddust"; return bullet; } }