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.util.RenderScreenOverlay.Crosshair; public class Gun4GaugeFactory { private static GunConfiguration getShotgunConfig() { GunConfiguration config = new GunConfiguration(); config.rateOfFire = 15; 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 = 10; config.firingDuration = 0; config.ammoCap = 4; config.reloadType = GunConfiguration.RELOAD_SINGLE; config.allowsInfinity = true; config.hasSights = true; config.crosshair = Crosshair.L_CIRCLE; config.reloadSound = GunConfiguration.RSOUND_SHOTGUN; return config; } public static GunConfiguration getKS23Config() { GunConfiguration config = getShotgunConfig(); config.durability = 3000; config.reloadSound = GunConfiguration.RSOUND_SHOTGUN; config.firingSound = "hbm:weapon.revolverShootAlt"; config.firingPitch = 0.65F; config.name = "KS-23"; config.manufacturer = "Tulsky Oruzheiny Zavod"; config.config = new ArrayList(); config.config.add(BulletConfigSyncingUtil.G4_NORMAL); config.config.add(BulletConfigSyncingUtil.G4_SLUG); config.config.add(BulletConfigSyncingUtil.G4_EXPLOSIVE); return config; } public static BulletConfiguration get4GaugeConfig() { BulletConfiguration bullet = BulletConfigFactory.standardBuckshotConfig(); bullet.ammo = ModItems.ammo_4gauge; bullet.dmgMin = 3; bullet.dmgMax = 6; bullet.bulletsMin *= 2; bullet.bulletsMax *= 2; return bullet; } public static BulletConfiguration get4GaugeSlugConfig() { BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig(); bullet.ammo = ModItems.ammo_4gauge_slug; bullet.dmgMin = 15; bullet.dmgMax = 20; bullet.wear = 7; bullet.style = BulletConfiguration.STYLE_NORMAL; return bullet; } public static BulletConfiguration get4GaugeExplosiveConfig() { BulletConfiguration bullet = BulletConfigFactory.standardGrenadeConfig(); bullet.ammo = ModItems.ammo_4gauge_explosive; bullet.velocity *= 2; bullet.gravity *= 2; bullet.dmgMin = 10; bullet.dmgMax = 15; bullet.wear = 25; bullet.trail = 1; return bullet; } }