mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
explosive yeeter
This commit is contained in:
parent
d271382265
commit
09d11d49da
@ -8,6 +8,11 @@
|
||||
* Configs can be edited ingame via `/ntmclient set <name> <value>` or in the file and then `/ntmclient reload`
|
||||
* Available configs include geiger counter HUD position, info system position and orientation, custom main menu splash texts, ore dict display and custom nuke item info
|
||||
* Check the config file or `/ntmclient list` for a full list of values, the name should make them self-explanatory!
|
||||
* Liquid lead
|
||||
* A valid coolant for both PWRs and ICFs
|
||||
* Has an immense heat transfer speed bonus, allowing ICFs to be cooled even when using higher tier pellets
|
||||
* Cools quite effectively in PWRs, but has a negative neutron modifier and a small penalty of how much heat ends up usable
|
||||
* Overall a cheap and very good coolant, just not as efficient as sodium
|
||||
|
||||
## Changed
|
||||
* Updated russian and chinese localization
|
||||
|
||||
@ -21,6 +21,7 @@ public class EntityBulletBaseMK4 extends EntityThrowableInterp {
|
||||
//used for rendering tracers
|
||||
public double velocity;
|
||||
public double prevVelocity;
|
||||
public double accel;
|
||||
public float damage;
|
||||
public int ricochets = 0;
|
||||
|
||||
@ -166,6 +167,8 @@ public class EntityBulletBaseMK4 extends EntityThrowableInterp {
|
||||
if(mop.typeOfHit == mop.typeOfHit.ENTITY) {
|
||||
Entity entity = mop.entityHit;
|
||||
|
||||
if(entity == this.thrower && this.ticksExisted < this.selfDamageDelay()) return;
|
||||
|
||||
if(entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0) {
|
||||
return;
|
||||
}
|
||||
@ -200,7 +203,7 @@ public class EntityBulletBaseMK4 extends EntityThrowableInterp {
|
||||
|
||||
@Override protected double headingForceMult() { return 1D; }
|
||||
@Override public double getGravityVelocity() { return this.config.gravity; }
|
||||
@Override protected double motionMult() { return this.config.velocity; }
|
||||
@Override protected double motionMult() { return this.config.velocity + this.accel; }
|
||||
@Override protected float getAirDrag() { return 1F; }
|
||||
@Override protected float getWaterDrag() { return 1F; }
|
||||
|
||||
|
||||
@ -618,8 +618,8 @@ public class Fluids {
|
||||
|
||||
SODIUM.addTraits(new FT_Heatable().setEff(HeatingType.PWR, 2.5D).setEff(HeatingType.ICF, 3D).addStep(400, 1, SODIUM_HOT, 1));
|
||||
SODIUM_HOT.addTraits(new FT_Coolable(SODIUM, 1, 1, 400).setEff(CoolingType.HEATEXCHANGER, 1.0D));
|
||||
LEAD.addTraits(new FT_Heatable().setEff(HeatingType.PWR, 5D).setEff(HeatingType.ICF, 10D).addStep(600, 1, LEAD_HOT, 1), new FT_PWRModerator(0.5D));
|
||||
LEAD_HOT.addTraits(new FT_Coolable(LEAD, 1, 1, 400).setEff(CoolingType.HEATEXCHANGER, 1.0D));
|
||||
LEAD.addTraits(new FT_Heatable().setEff(HeatingType.PWR, 3.5D).setEff(HeatingType.ICF, 10D).addStep(600, 1, LEAD_HOT, 1), new FT_PWRModerator(0.5D));
|
||||
LEAD_HOT.addTraits(new FT_Coolable(LEAD, 1, 1, 510 /* -15% is not a huge nerf but it will piss off the PWRmaxxers hard, lead should not be the end-all-be-all, especially given the cost */).setEff(CoolingType.HEATEXCHANGER, 1.0D));
|
||||
|
||||
THORIUM_SALT.addTraits(new FT_Heatable().setEff(HeatingType.PWR, 1.0D).addStep(400, 1, THORIUM_SALT_HOT, 1), new FT_PWRModerator(2.5D));
|
||||
THORIUM_SALT_HOT.addTraits(new FT_Coolable(THORIUM_SALT_DEPLETED, 1, 1, 400).setEff(CoolingType.HEATEXCHANGER, 1.0D));
|
||||
|
||||
@ -1526,7 +1526,6 @@ public class ModItems {
|
||||
|
||||
public static Item gun_rpg;
|
||||
public static Item gun_karl;
|
||||
public static Item gun_panzerschreck;
|
||||
public static Item gun_quadro;
|
||||
public static Item gun_hk69;
|
||||
public static Item gun_stinger;
|
||||
@ -1635,6 +1634,7 @@ public class ModItems {
|
||||
public static Item gun_lag;
|
||||
public static Item gun_uzi;
|
||||
public static Item gun_spas12;
|
||||
public static Item gun_panzerschreck;
|
||||
|
||||
public static Item ammo_standard;
|
||||
|
||||
@ -6948,7 +6948,6 @@ public class ModItems {
|
||||
GameRegistry.registerItem(gun_b93, gun_b93.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_rpg, gun_rpg.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_karl, gun_karl.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_panzerschreck, gun_panzerschreck.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_quadro, gun_quadro.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_hk69, gun_hk69.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_stinger, gun_stinger.getUnlocalizedName());
|
||||
@ -7023,6 +7022,7 @@ public class ModItems {
|
||||
GameRegistry.registerItem(gun_lag, gun_lag.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_uzi, gun_uzi.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_spas12, gun_spas12.getUnlocalizedName());
|
||||
GameRegistry.registerItem(gun_panzerschreck, gun_panzerschreck.getUnlocalizedName());
|
||||
|
||||
GameRegistry.registerItem(ammo_standard, ammo_standard.getUnlocalizedName());
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ public class GunFactory {
|
||||
XFactory762mm.init();
|
||||
XFactory22lr.init();
|
||||
XFactoryFlamer.init();
|
||||
XFactoryRocket.init();
|
||||
|
||||
/// PROXY BULLSHIT ///
|
||||
MainRegistry.proxy.registerGunCfg();
|
||||
@ -68,6 +69,7 @@ public class GunFactory {
|
||||
G12_BP, G12_BP_MAGNUM, G12_BP_SLUG, G12,
|
||||
R762_SP, R762_FMJ, R762_JHP, R762_AP, R762_DU,
|
||||
G40_FLARE, G40,
|
||||
ROCKET_HE,
|
||||
FLAME_DIESEL,
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ import static com.hbm.items.weapon.sedna.factory.XFactory40mm.*;
|
||||
import static com.hbm.items.weapon.sedna.factory.XFactory44.*;
|
||||
import static com.hbm.items.weapon.sedna.factory.XFactory762mm.*;
|
||||
import static com.hbm.items.weapon.sedna.factory.XFactory9mm.*;
|
||||
import static com.hbm.items.weapon.sedna.factory.XFactoryRocket.*;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.weapon.sedna.ItemGunBaseNT;
|
||||
@ -36,6 +37,7 @@ public class GunFactoryClient {
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_lag, new ItemRenderLAG());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_uzi, new ItemRenderUzi());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_spas12, new ItemRenderSPAS12());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_panzerschreck, new ItemRenderPanzerschreck());
|
||||
//PROJECTILES
|
||||
ammo_debug.setRenderer(LegoClient.RENDER_STANDARD_BULLET);
|
||||
ammo_debug_buckshot.setRenderer(LegoClient.RENDER_STANDARD_BULLET);
|
||||
@ -68,6 +70,7 @@ public class GunFactoryClient {
|
||||
p22_ap.setRenderer(LegoClient.RENDER_AP_BULLET);
|
||||
g40_flare.setRenderer(LegoClient.RENDER_FLARE);
|
||||
g40.setRenderer(LegoClient.RENDER_GRENADE);
|
||||
rocket_rpzb_he.setRenderer(LegoClient.RENDER_RPZB);
|
||||
//HUDS
|
||||
((ItemGunBaseNT) ModItems.gun_debug) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
((ItemGunBaseNT) ModItems.gun_pepperbox) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
@ -85,6 +88,7 @@ public class GunFactoryClient {
|
||||
((ItemGunBaseNT) ModItems.gun_lag) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
((ItemGunBaseNT) ModItems.gun_uzi) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
((ItemGunBaseNT) ModItems.gun_spas12) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
((ItemGunBaseNT) ModItems.gun_panzerschreck) .getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
|
||||
((ItemGunBaseNT) ModItems.gun_light_revolver_dani).getConfig(null, 0).hud(LegoClient.HUD_COMPONENT_DURABILITY_MIRROR, LegoClient.HUD_COMPONENT_AMMO_MIRROR);
|
||||
((ItemGunBaseNT) ModItems.gun_light_revolver_dani).getConfig(null, 1).hud(LegoClient.HUD_COMPONENT_DURABILITY, LegoClient.HUD_COMPONENT_AMMO);
|
||||
|
||||
@ -198,9 +198,10 @@ public class Lego {
|
||||
return 1F - (percent - 0.75F) * 2F;
|
||||
}
|
||||
|
||||
public static void standardExplode(EntityBulletBaseMK4 bullet, MovingObjectPosition mop, float range) {
|
||||
public static void standardExplode(EntityBulletBaseMK4 bullet, MovingObjectPosition mop, float range) { standardExplode(bullet, mop, range, 1F); }
|
||||
public static void standardExplode(EntityBulletBaseMK4 bullet, MovingObjectPosition mop, float range, float damageMod) {
|
||||
ExplosionVNT vnt = new ExplosionVNT(bullet.worldObj, mop.hitVec.xCoord, mop.hitVec.yCoord, mop.hitVec.zCoord, range);
|
||||
vnt.setEntityProcessor(new EntityProcessorCrossSmooth(1, bullet.damage));
|
||||
vnt.setEntityProcessor(new EntityProcessorCrossSmooth(1, bullet.damage * damageMod));
|
||||
vnt.setPlayerProcessor(new PlayerProcessorStandard());
|
||||
vnt.setSFX(new ExplosionEffectWeapon(10, 2.5F, 1F));
|
||||
vnt.explode();
|
||||
|
||||
@ -151,13 +151,28 @@ public class LegoClient {
|
||||
};
|
||||
|
||||
public static BiConsumer<EntityBulletBaseMK4, Float> RENDER_GRENADE = (bullet, interp) -> {
|
||||
|
||||
GL11.glScalef(0.25F, 0.25F, 0.25F);
|
||||
GL11.glRotated(90, 0, 0, 1);
|
||||
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(ResourceManager.grenade_tex);
|
||||
ResourceManager.projectiles.renderPart("Grenade");
|
||||
GL11.glShadeModel(GL11.GL_FLAT);
|
||||
};
|
||||
|
||||
public static BiConsumer<EntityBulletBaseMK4, Float> RENDER_RPZB = (bullet, interp) -> {
|
||||
|
||||
GL11.glPushMatrix();
|
||||
GL11.glScalef(0.125F, 0.125F, 0.125F);
|
||||
GL11.glRotated(90, 0, -1, 0);
|
||||
GL11.glTranslatef(0, 0, 3.5F);
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(ResourceManager.panzerschreck_tex);
|
||||
ResourceManager.panzerschreck.renderPart("Rocket");
|
||||
GL11.glShadeModel(GL11.GL_FLAT);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
GL11.glTranslatef(0.375F, 0, 0);
|
||||
double length = bullet.prevVelocity + (bullet.velocity - bullet.prevVelocity) * interp;
|
||||
if(length > 0) renderBulletStandard(Tessellator.instance, 0x808080, 0xFFF2A7, length * 2, true);
|
||||
};
|
||||
}
|
||||
|
||||
@ -0,0 +1,52 @@
|
||||
package com.hbm.items.weapon.sedna.factory;
|
||||
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
import com.hbm.entity.projectile.EntityBulletBaseMK4;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.weapon.sedna.BulletConfig;
|
||||
import com.hbm.items.weapon.sedna.Crosshair;
|
||||
import com.hbm.items.weapon.sedna.GunConfig;
|
||||
import com.hbm.items.weapon.sedna.ItemGunBaseNT;
|
||||
import com.hbm.items.weapon.sedna.Receiver;
|
||||
import com.hbm.items.weapon.sedna.factory.GunFactory.EnumAmmo;
|
||||
import com.hbm.items.weapon.sedna.mags.MagazineSingleReload;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.render.anim.BusAnimation;
|
||||
import com.hbm.render.anim.HbmAnimations.AnimType;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
|
||||
public class XFactoryRocket {
|
||||
|
||||
public static BulletConfig rocket_rpzb_he;
|
||||
|
||||
public static BiConsumer<EntityBulletBaseMK4, MovingObjectPosition> LAMBDA_STANDARD_EXPLODE = (bullet, mop) -> {
|
||||
if(mop.typeOfHit == mop.typeOfHit.ENTITY && bullet.ticksExisted < 3) return;
|
||||
Lego.standardExplode(bullet, mop, 5F); bullet.setDead();
|
||||
};
|
||||
|
||||
public static void init() {
|
||||
|
||||
rocket_rpzb_he = new BulletConfig().setItem(EnumAmmo.ROCKET_HE).setOnImpact(LAMBDA_STANDARD_EXPLODE).setLife(300).setSelfDamageDelay(10).setVel(0F).setGrav(0D).setOnUpdate((bullet) -> {
|
||||
if(bullet.accel < 7) bullet.accel += 0.4D;
|
||||
});
|
||||
|
||||
ModItems.gun_panzerschreck = new ItemGunBaseNT(new GunConfig()
|
||||
.dura(300).draw(7).inspect(39).crosshair(Crosshair.L_CIRCUMFLEX)
|
||||
.rec(new Receiver(0)
|
||||
.dmg(15F).delay(20).reload(28).jam(33).sound("hbm:weapon.hkShoot", 1.0F, 1.0F)
|
||||
.mag(new MagazineSingleReload(0, 1).addConfigs(rocket_rpzb_he))
|
||||
.offset(1, -0.0625 * 1.5, -0.1875D)
|
||||
.canFire(Lego.LAMBDA_STANDARD_CAN_FIRE).fire(Lego.LAMBDA_STANDARD_FIRE).recoil(Lego.LAMBDA_STANDARD_RECOIL))
|
||||
.setupStandardConfiguration()
|
||||
.anim(LAMBDA_PANZERSCHRECK_ANIMS).orchestra(Orchestras.ORCHESTRA_FLAREGUN)
|
||||
).setUnlocalizedName("gun_panzerschreck").setTextureName(RefStrings.MODID + ":gun_darter");
|
||||
}
|
||||
|
||||
@SuppressWarnings("incomplete-switch") public static BiFunction<ItemStack, AnimType, BusAnimation> LAMBDA_PANZERSCHRECK_ANIMS = (stack, type) -> {
|
||||
return null;
|
||||
};
|
||||
}
|
||||
@ -529,7 +529,6 @@ public class ClientProxy extends ServerProxy {
|
||||
//guns
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_rpg, new ItemRenderRpg());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_karl, new ItemRenderRpg());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_panzerschreck, new ItemRenderRpg());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_stinger, new ItemRenderStinger());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_skystinger, new ItemRenderStinger());
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.gun_revolver, new ItemRenderWeaponFFColt(ResourceManager.ff_gun_bright, ResourceManager.ff_iron, ResourceManager.ff_wood));
|
||||
|
||||
@ -861,6 +861,7 @@ public class ResourceManager {
|
||||
public static final IModelCustom flamethrower = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/weapons/flamethrower.obj")).asVBO();
|
||||
public static final IModelCustom mike_hawk = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/weapons/mike_hawk.obj")).asVBO();
|
||||
public static final IModelCustom uzi = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/weapons/uzi.obj")).asVBO();
|
||||
public static final IModelCustom panzerschreck = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/weapons/panzerschreck.obj")).asVBO();
|
||||
|
||||
public static final HashMap<String, BusAnimation> python_anim = AnimationLoader.load(new ResourceLocation(RefStrings.MODID, "models/weapons/animations/python.json"));
|
||||
public static final HashMap<String, BusAnimation> cursed_anim = AnimationLoader.load(new ResourceLocation(RefStrings.MODID, "models/weapons/animations/cursed.json"));
|
||||
@ -987,6 +988,7 @@ public class ResourceManager {
|
||||
public static final ResourceLocation flamethrower_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/flamethrower.png");
|
||||
public static final ResourceLocation mike_hawk_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/lag.png");
|
||||
public static final ResourceLocation uzi_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/uzi.png");
|
||||
public static final ResourceLocation panzerschreck_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/panzerschreck.png");
|
||||
|
||||
public static final ResourceLocation lance_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/lance.png");
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import org.lwjgl.opengl.GL11;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.render.model.ModelGustav;
|
||||
import com.hbm.render.model.ModelPanzerschreck;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@ -15,11 +14,9 @@ import net.minecraftforge.client.IItemRenderer;
|
||||
public class ItemRenderRpg implements IItemRenderer {
|
||||
|
||||
protected ModelGustav swordModel;
|
||||
protected ModelPanzerschreck panz;
|
||||
|
||||
public ItemRenderRpg() {
|
||||
swordModel = new ModelGustav();
|
||||
panz = new ModelPanzerschreck();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -47,8 +44,6 @@ public class ItemRenderRpg implements IItemRenderer {
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelGustav.png"));
|
||||
if(item.getItem() == ModItems.gun_karl)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelGustavYellow.png"));
|
||||
if(item.getItem() == ModItems.gun_panzerschreck)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelPanzerschreck.png"));
|
||||
|
||||
GL11.glRotatef(-135.0F, 0.0F, 0.0F, 1.0F);
|
||||
GL11.glScalef(0.5F, 0.5F, 0.5F);
|
||||
@ -73,8 +68,6 @@ public class ItemRenderRpg implements IItemRenderer {
|
||||
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
if(item.getItem() == ModItems.gun_karl)
|
||||
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
if(item.getItem() == ModItems.gun_panzerschreck)
|
||||
panz.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
GL11.glPopMatrix();
|
||||
break;
|
||||
case EQUIPPED:
|
||||
@ -84,8 +77,6 @@ public class ItemRenderRpg implements IItemRenderer {
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelGustav.png"));
|
||||
if(item.getItem() == ModItems.gun_karl)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelGustavYellow.png"));
|
||||
if(item.getItem() == ModItems.gun_panzerschreck)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID +":textures/models/ModelPanzerschreck.png"));
|
||||
|
||||
GL11.glRotatef(-200.0F, 0.0F, 0.0F, 1.0F);
|
||||
GL11.glRotatef(75.0F, 0.0F, 1.0F, 0.0F);
|
||||
@ -103,8 +94,6 @@ public class ItemRenderRpg implements IItemRenderer {
|
||||
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
if(item.getItem() == ModItems.gun_karl)
|
||||
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
if(item.getItem() == ModItems.gun_panzerschreck)
|
||||
panz.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
|
||||
GL11.glPopMatrix();
|
||||
default: break;
|
||||
}
|
||||
|
||||
@ -0,0 +1,79 @@
|
||||
package com.hbm.render.item.weapon.sedna;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.items.weapon.sedna.ItemGunBaseNT;
|
||||
import com.hbm.main.ResourceManager;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemRenderPanzerschreck extends ItemRenderWeaponBase {
|
||||
|
||||
@Override
|
||||
protected float getTurnMagnitude(ItemStack stack) { return ItemGunBaseNT.getIsAiming(stack) ? 2.5F : -0.25F; }
|
||||
|
||||
@Override
|
||||
public void setupFirstPerson(ItemStack stack) {
|
||||
GL11.glTranslated(0, 0, 0.875);
|
||||
|
||||
float offset = 0.8F;
|
||||
standardAimingTransform(stack,
|
||||
-2.75F * offset, -2F * offset, 2.5F * offset,
|
||||
-0.9375, -9.25 / 8D, 0.25);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFirstPerson(ItemStack stack) {
|
||||
|
||||
ItemGunBaseNT gun = (ItemGunBaseNT) stack.getItem();
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.panzerschreck_tex);
|
||||
double scale = 1.25D;
|
||||
GL11.glScaled(scale, scale, scale);
|
||||
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
|
||||
ResourceManager.panzerschreck.renderPart("Tube");
|
||||
ResourceManager.panzerschreck.renderPart("Shield");
|
||||
|
||||
GL11.glShadeModel(GL11.GL_FLAT);
|
||||
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslated(0, 0, 6.5);
|
||||
GL11.glRotated(90, 0, 1, 0);
|
||||
GL11.glRotated(90 * gun.shotRand, 1, 0, 0);
|
||||
GL11.glScaled(0.75, 0.75, 0.75);
|
||||
this.renderMuzzleFlash(gun.lastShot[0], 75, 5);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupThirdPerson(ItemStack stack) {
|
||||
super.setupThirdPerson(stack);
|
||||
double scale = 3D;
|
||||
GL11.glScaled(scale, scale, scale);
|
||||
GL11.glTranslated(0, 0.5, 1);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupInv(ItemStack stack) {
|
||||
super.setupInv(stack);
|
||||
double scale = 1.5D;
|
||||
GL11.glScaled(scale, scale, scale);
|
||||
GL11.glRotated(25, 1, 0, 0);
|
||||
GL11.glRotated(45, 0, 1, 0);
|
||||
GL11.glTranslated(-0.5, 0.5, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderOther(ItemStack stack, ItemRenderType type) {
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.panzerschreck_tex);
|
||||
ResourceManager.panzerschreck.renderPart("Tube");
|
||||
ResourceManager.panzerschreck.renderPart("Shield");
|
||||
GL11.glShadeModel(GL11.GL_FLAT);
|
||||
}
|
||||
}
|
||||
@ -1,187 +0,0 @@
|
||||
// Date: 20.02.2019 22:40:59
|
||||
// Template version 1.1
|
||||
// Java generated by Techne
|
||||
// Keep in mind that you still need to fill in some blanks
|
||||
// - ZeuX
|
||||
|
||||
package com.hbm.render.model;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelPanzerschreck extends ModelBase {
|
||||
// fields
|
||||
ModelRenderer Shape1;
|
||||
ModelRenderer Shape2;
|
||||
ModelRenderer Shape3;
|
||||
ModelRenderer Shape4;
|
||||
ModelRenderer Shape5;
|
||||
ModelRenderer Shape6;
|
||||
ModelRenderer Shape7;
|
||||
ModelRenderer Shape8;
|
||||
ModelRenderer Shape9;
|
||||
ModelRenderer Shape10;
|
||||
ModelRenderer Shape11;
|
||||
ModelRenderer Shape12;
|
||||
ModelRenderer Shape13;
|
||||
ModelRenderer Shape14;
|
||||
ModelRenderer Shape15;
|
||||
ModelRenderer Shape16;
|
||||
ModelRenderer Shape17;
|
||||
ModelRenderer Shape18;
|
||||
|
||||
public ModelPanzerschreck() {
|
||||
textureWidth = 128;
|
||||
textureHeight = 32;
|
||||
|
||||
Shape1 = new ModelRenderer(this, 0, 0);
|
||||
Shape1.addBox(0F, 0F, 0F, 40, 2, 3);
|
||||
Shape1.setRotationPoint(-20F, 0F, -1.5F);
|
||||
Shape1.setTextureSize(128, 32);
|
||||
Shape1.mirror = true;
|
||||
setRotation(Shape1, 0F, 0F, 0F);
|
||||
Shape2 = new ModelRenderer(this, 0, 5);
|
||||
Shape2.addBox(0F, 0F, 0F, 40, 3, 2);
|
||||
Shape2.setRotationPoint(-20F, -0.5F, -1F);
|
||||
Shape2.setTextureSize(128, 32);
|
||||
Shape2.mirror = true;
|
||||
setRotation(Shape2, 0F, 0F, 0F);
|
||||
Shape3 = new ModelRenderer(this, 0, 10);
|
||||
Shape3.addBox(0F, 0F, 0F, 2, 3, 1);
|
||||
Shape3.setRotationPoint(-7.5F, 2.5F, -0.5F);
|
||||
Shape3.setTextureSize(128, 32);
|
||||
Shape3.mirror = true;
|
||||
setRotation(Shape3, 0F, 0F, 0F);
|
||||
Shape4 = new ModelRenderer(this, 6, 10);
|
||||
Shape4.addBox(0F, 0F, 0F, 6, 1, 1);
|
||||
Shape4.setRotationPoint(-7.5F, 5.5F, -0.5F);
|
||||
Shape4.setTextureSize(128, 32);
|
||||
Shape4.mirror = true;
|
||||
setRotation(Shape4, 0F, 0F, 0F);
|
||||
Shape5 = new ModelRenderer(this, 0, 14);
|
||||
Shape5.addBox(0F, 0F, 0F, 2, 3, 1);
|
||||
Shape5.setRotationPoint(-1.5F, 2.5F, -0.5F);
|
||||
Shape5.setTextureSize(128, 32);
|
||||
Shape5.mirror = true;
|
||||
setRotation(Shape5, 0F, 0F, 0F);
|
||||
Shape6 = new ModelRenderer(this, 6, 12);
|
||||
Shape6.addBox(0F, 0F, 0F, 1, 3, 1);
|
||||
Shape6.setRotationPoint(0.5F, 2.5F, -0.5F);
|
||||
Shape6.setTextureSize(128, 32);
|
||||
Shape6.mirror = true;
|
||||
setRotation(Shape6, 0F, 0F, 0F);
|
||||
Shape7 = new ModelRenderer(this, 10, 12);
|
||||
Shape7.addBox(-1F, 0F, 0F, 1, 2, 1);
|
||||
Shape7.setRotationPoint(-2F, 2.5F, -0.5F);
|
||||
Shape7.setTextureSize(128, 32);
|
||||
Shape7.mirror = true;
|
||||
setRotation(Shape7, 0F, 0F, 0.3490659F);
|
||||
Shape8 = new ModelRenderer(this, 0, 18);
|
||||
Shape8.addBox(0F, 0F, 0F, 1, 4, 4);
|
||||
Shape8.setRotationPoint(22F, -1F, -2F);
|
||||
Shape8.setTextureSize(128, 32);
|
||||
Shape8.mirror = true;
|
||||
setRotation(Shape8, 0F, 0F, 0F);
|
||||
Shape9 = new ModelRenderer(this, 20, 10);
|
||||
Shape9.addBox(-3F, 0F, 0F, 3, 1, 1);
|
||||
Shape9.setRotationPoint(22F, -1F, -0.5F);
|
||||
Shape9.setTextureSize(128, 32);
|
||||
Shape9.mirror = true;
|
||||
setRotation(Shape9, 0F, 0F, -0.2617994F);
|
||||
Shape10 = new ModelRenderer(this, 14, 12);
|
||||
Shape10.addBox(-3F, 0F, 0F, 3, 1, 1);
|
||||
Shape10.setRotationPoint(22F, 0.5F, -2F);
|
||||
Shape10.setTextureSize(128, 32);
|
||||
Shape10.mirror = true;
|
||||
setRotation(Shape10, 0F, 0.2617994F, 0F);
|
||||
Shape11 = new ModelRenderer(this, 14, 14);
|
||||
Shape11.addBox(-3F, 0F, -1F, 3, 1, 1);
|
||||
Shape11.setRotationPoint(22F, 0.5F, 2F);
|
||||
Shape11.setTextureSize(128, 32);
|
||||
Shape11.mirror = true;
|
||||
setRotation(Shape11, 0F, -0.2617994F, 0F);
|
||||
Shape12 = new ModelRenderer(this, 28, 10);
|
||||
Shape12.addBox(-3F, -1F, 0F, 3, 1, 1);
|
||||
Shape12.setRotationPoint(22F, 3F, -0.5F);
|
||||
Shape12.setTextureSize(128, 32);
|
||||
Shape12.mirror = true;
|
||||
setRotation(Shape12, 0F, 0F, 0.2617994F);
|
||||
Shape13 = new ModelRenderer(this, 22, 12);
|
||||
Shape13.addBox(0F, 0F, 0F, 1, 1, 3);
|
||||
Shape13.setRotationPoint(-20F, -1.5F, -1.5F);
|
||||
Shape13.setTextureSize(128, 32);
|
||||
Shape13.mirror = true;
|
||||
setRotation(Shape13, 0F, 0F, 0F);
|
||||
Shape14 = new ModelRenderer(this, 30, 12);
|
||||
Shape14.addBox(0F, 0F, 0F, 1, 1, 3);
|
||||
Shape14.setRotationPoint(-20F, -2.5F, -1.5F);
|
||||
Shape14.setTextureSize(128, 32);
|
||||
Shape14.mirror = true;
|
||||
setRotation(Shape14, 0F, 0F, 0F);
|
||||
Shape15 = new ModelRenderer(this, 36, 10);
|
||||
Shape15.addBox(0F, 0F, 0F, 3, 1, 1);
|
||||
Shape15.setRotationPoint(15F, -1F, -2F);
|
||||
Shape15.setTextureSize(128, 32);
|
||||
Shape15.mirror = true;
|
||||
setRotation(Shape15, 0F, 0F, 0F);
|
||||
Shape16 = new ModelRenderer(this, 108, 10);
|
||||
Shape16.addBox(0F, 0F, 0F, 0, 12, 10);
|
||||
Shape16.setRotationPoint(-10F, -5F, -8.5F);
|
||||
Shape16.setTextureSize(128, 32);
|
||||
Shape16.mirror = true;
|
||||
setRotation(Shape16, 0F, 0F, 0F);
|
||||
Shape17 = new ModelRenderer(this, 38, 12);
|
||||
Shape17.addBox(0F, 0F, 0F, 1, 3, 1);
|
||||
Shape17.setRotationPoint(3.5F, 2.5F, -0.5F);
|
||||
Shape17.setTextureSize(128, 32);
|
||||
Shape17.mirror = true;
|
||||
setRotation(Shape17, 0F, 0F, -0.4363323F);
|
||||
Shape18 = new ModelRenderer(this, 10, 15);
|
||||
Shape18.addBox(0F, 0F, 0F, 1, 3, 1);
|
||||
Shape18.setRotationPoint(5F, 2.5F, -0.5F);
|
||||
Shape18.setTextureSize(128, 32);
|
||||
Shape18.mirror = true;
|
||||
setRotation(Shape18, 0F, 0F, 0F);
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
GL11.glDisable(GL11.GL_CULL_FACE);
|
||||
Shape1.render(f5);
|
||||
Shape2.render(f5);
|
||||
Shape3.render(f5);
|
||||
Shape4.render(f5);
|
||||
Shape5.render(f5);
|
||||
Shape6.render(f5);
|
||||
Shape7.render(f5);
|
||||
Shape8.render(f5);
|
||||
Shape9.render(f5);
|
||||
Shape10.render(f5);
|
||||
Shape11.render(f5);
|
||||
Shape12.render(f5);
|
||||
Shape13.render(f5);
|
||||
Shape14.render(f5);
|
||||
Shape15.render(f5);
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
Shape16.render(f5);
|
||||
GL11.glDisable(GL11.GL_CULL_FACE);
|
||||
Shape17.render(f5);
|
||||
Shape18.render(f5);
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,133 +0,0 @@
|
||||
// Date: 20.07.2015 22:06:51
|
||||
// Template version 1.1
|
||||
// Java generated by Techne
|
||||
// Keep in mind that you still need to fill in some blanks
|
||||
// - ZeuX
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package com.hbm.render.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelRPG extends ModelBase
|
||||
{
|
||||
//fields
|
||||
ModelRenderer Shape1;
|
||||
ModelRenderer Shape2;
|
||||
ModelRenderer Shape3;
|
||||
ModelRenderer Shape4;
|
||||
ModelRenderer Shape5;
|
||||
ModelRenderer Shape6;
|
||||
ModelRenderer Shape7;
|
||||
ModelRenderer Shape8;
|
||||
ModelRenderer Shape9;
|
||||
|
||||
public ModelRPG()
|
||||
{
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
Shape1 = new ModelRenderer(this, 0, 27);
|
||||
Shape1.addBox(0F, 0F, 0F, 1, 4, 1);
|
||||
Shape1.setRotationPoint(0F, -1F, 0F);
|
||||
Shape1.setTextureSize(64, 32);
|
||||
Shape1.mirror = true;
|
||||
setRotation(Shape1, 0F, 0F, 0F);
|
||||
Shape2 = new ModelRenderer(this, 0, 24);
|
||||
Shape2.addBox(0F, 0F, 0F, 1, 2, 1);
|
||||
Shape2.setRotationPoint(3F, 0F, 0F);
|
||||
Shape2.setTextureSize(64, 32);
|
||||
Shape2.mirror = true;
|
||||
setRotation(Shape2, 0F, 0F, 0F);
|
||||
Shape3 = new ModelRenderer(this, 0, 18);
|
||||
Shape3.addBox(0F, 0F, 0F, 8, 2, 2);
|
||||
Shape3.setRotationPoint(2F, -2F, -0.5F);
|
||||
Shape3.setTextureSize(64, 32);
|
||||
Shape3.mirror = true;
|
||||
setRotation(Shape3, 0F, 0F, 0F);
|
||||
Shape4 = new ModelRenderer(this, 0, 16);
|
||||
Shape4.addBox(0F, 0F, 0F, 4, 1, 1);
|
||||
Shape4.setRotationPoint(10F, -1.5F, 0F);
|
||||
Shape4.setTextureSize(64, 32);
|
||||
Shape4.mirror = true;
|
||||
setRotation(Shape4, 0F, 0F, 0F);
|
||||
Shape5 = new ModelRenderer(this, 0, 12);
|
||||
Shape5.addBox(0F, 0F, 0F, 3, 2, 2);
|
||||
Shape5.setRotationPoint(14F, -2F, -0.5F);
|
||||
Shape5.setTextureSize(64, 32);
|
||||
Shape5.mirror = true;
|
||||
setRotation(Shape5, 0F, 0F, 0F);
|
||||
Shape6 = new ModelRenderer(this, 4, 30);
|
||||
Shape6.addBox(0F, 0F, 0F, 4, 1, 1);
|
||||
Shape6.setRotationPoint(-2F, -1.5F, 0F);
|
||||
Shape6.setTextureSize(64, 32);
|
||||
Shape6.mirror = true;
|
||||
setRotation(Shape6, 0F, 0F, 0F);
|
||||
Shape7 = new ModelRenderer(this, 30, 0);
|
||||
Shape7.addBox(0F, 0F, 0F, 1, 2, 2);
|
||||
Shape7.setRotationPoint(-3F, -2F, -0.5F);
|
||||
Shape7.setTextureSize(64, 32);
|
||||
Shape7.mirror = true;
|
||||
setRotation(Shape7, 0F, 0F, 0F);
|
||||
Shape8 = new ModelRenderer(this, 13, 0);
|
||||
Shape8.addBox(0F, 0F, 0F, 5, 1, 1);
|
||||
Shape8.setRotationPoint(-8F, -1.5F, 0F);
|
||||
Shape8.setTextureSize(64, 32);
|
||||
Shape8.mirror = true;
|
||||
setRotation(Shape8, 0F, 0F, 0F);
|
||||
Shape9 = new ModelRenderer(this, 0, 0);
|
||||
Shape9.addBox(0F, 0F, 0F, 3, 2, 2);
|
||||
Shape9.setRotationPoint(-6.5F, -2F, -0.5F);
|
||||
Shape9.setTextureSize(64, 32);
|
||||
Shape9.mirror = true;
|
||||
setRotation(Shape9, 0F, 0F, 0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
Shape1.render(f5);
|
||||
Shape2.render(f5);
|
||||
Shape3.render(f5);
|
||||
Shape4.render(f5);
|
||||
Shape5.render(f5);
|
||||
Shape6.render(f5);
|
||||
Shape7.render(f5);
|
||||
Shape8.render(f5);
|
||||
Shape9.render(f5);
|
||||
}
|
||||
|
||||
public void renderModel(float f) {
|
||||
Shape1.render(f);
|
||||
Shape2.render(f);
|
||||
Shape3.render(f);
|
||||
Shape4.render(f);
|
||||
Shape5.render(f);
|
||||
Shape6.render(f);
|
||||
Shape7.render(f);
|
||||
Shape8.render(f);
|
||||
Shape9.render(f);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
||||
{
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,293 +0,0 @@
|
||||
// Date: 12.07.2016 17:01:02
|
||||
// Template version 1.1
|
||||
// Java generated by Techne
|
||||
// Keep in mind that you still need to fill in some blanks
|
||||
// - ZeuX
|
||||
|
||||
package com.hbm.render.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelXVL1456 extends ModelBase {
|
||||
// fields
|
||||
ModelRenderer CoilFront;
|
||||
ModelRenderer Panel1;
|
||||
ModelRenderer Panel2;
|
||||
ModelRenderer Panel3;
|
||||
ModelRenderer CoilBack;
|
||||
ModelRenderer SpinPivot;
|
||||
ModelRenderer Barrel;
|
||||
ModelRenderer CoilBarrel;
|
||||
ModelRenderer PipeBarrel;
|
||||
ModelRenderer PipeHolder;
|
||||
ModelRenderer Rail1;
|
||||
ModelRenderer Rail2;
|
||||
ModelRenderer Rail3;
|
||||
ModelRenderer Rail4;
|
||||
ModelRenderer Rail5;
|
||||
ModelRenderer Rail6;
|
||||
ModelRenderer TankHolder;
|
||||
ModelRenderer HandleBase;
|
||||
ModelRenderer HandleShaft;
|
||||
ModelRenderer HanldeGrip;
|
||||
ModelRenderer SpinC1;
|
||||
ModelRenderer SpinC2;
|
||||
ModelRenderer SpinC3;
|
||||
ModelRenderer SpinP1;
|
||||
ModelRenderer SpinP2;
|
||||
ModelRenderer SpinP3;
|
||||
ModelRenderer Battery1;
|
||||
ModelRenderer Battery2;
|
||||
ModelRenderer StockBase;
|
||||
ModelRenderer StockTrigger;
|
||||
ModelRenderer Shape1;
|
||||
int i = 0;
|
||||
|
||||
public ModelXVL1456() {
|
||||
textureWidth = 128;
|
||||
textureHeight = 64;
|
||||
|
||||
CoilFront = new ModelRenderer(this, 0, 0);
|
||||
CoilFront.addBox(0F, 0F, 0F, 4, 10, 10);
|
||||
CoilFront.setRotationPoint(0F, 0F, 0F);
|
||||
CoilFront.setTextureSize(128, 64);
|
||||
CoilFront.mirror = true;
|
||||
setRotation(CoilFront, 0F, 0F, 0F);
|
||||
Panel1 = new ModelRenderer(this, 0, 40);
|
||||
Panel1.addBox(0F, 0F, 0F, 5, 11, 3);
|
||||
Panel1.setRotationPoint(4F, -1F, 3.5F);
|
||||
Panel1.setTextureSize(128, 64);
|
||||
Panel1.mirror = true;
|
||||
setRotation(Panel1, 0F, 0F, 0F);
|
||||
Panel2 = new ModelRenderer(this, 0, 54);
|
||||
Panel2.addBox(0F, 0F, 0F, 5, 3, 3);
|
||||
Panel2.setRotationPoint(9F, -1F, 3.5F);
|
||||
Panel2.setTextureSize(128, 64);
|
||||
Panel2.mirror = true;
|
||||
setRotation(Panel2, 0F, 0F, 0F);
|
||||
Panel3 = new ModelRenderer(this, 16, 40);
|
||||
Panel3.addBox(0F, 0F, 0F, 3, 11, 3);
|
||||
Panel3.setRotationPoint(14F, -1F, 3.5F);
|
||||
Panel3.setTextureSize(128, 64);
|
||||
Panel3.mirror = true;
|
||||
setRotation(Panel3, 0F, 0F, 0F);
|
||||
CoilBack = new ModelRenderer(this, 0, 20);
|
||||
CoilBack.addBox(0F, 0F, 0F, 4, 10, 10);
|
||||
CoilBack.setRotationPoint(17F, 0F, 0F);
|
||||
CoilBack.setTextureSize(128, 64);
|
||||
CoilBack.mirror = true;
|
||||
setRotation(CoilBack, 0F, 0F, 0F);
|
||||
SpinPivot = new ModelRenderer(this, 66, 42);
|
||||
SpinPivot.addBox(0F, 0F, 0F, 5, 1, 1);
|
||||
SpinPivot.setRotationPoint(9F, 5.5F, 4.5F);
|
||||
SpinPivot.setTextureSize(128, 64);
|
||||
SpinPivot.mirror = true;
|
||||
setRotation(SpinPivot, 0F, 0F, 0F);
|
||||
Barrel = new ModelRenderer(this, 64, 0);
|
||||
Barrel.addBox(0F, 0F, 0F, 28, 1, 1);
|
||||
Barrel.setRotationPoint(-28F, 4.5F, 4.5F);
|
||||
Barrel.setTextureSize(128, 64);
|
||||
Barrel.mirror = true;
|
||||
setRotation(Barrel, 0F, 0F, 0F);
|
||||
CoilBarrel = new ModelRenderer(this, 28, 4);
|
||||
CoilBarrel.addBox(0F, 0F, 0F, 9, 7, 7);
|
||||
CoilBarrel.setRotationPoint(-19F, 1.5F, 1.5F);
|
||||
CoilBarrel.setTextureSize(128, 64);
|
||||
CoilBarrel.mirror = true;
|
||||
setRotation(CoilBarrel, 0F, 0F, 0F);
|
||||
PipeBarrel = new ModelRenderer(this, 28, 0);
|
||||
PipeBarrel.addBox(0F, 0F, 0F, 16, 2, 2);
|
||||
PipeBarrel.setRotationPoint(-13F, 6F, -0.4666667F);
|
||||
PipeBarrel.setTextureSize(128, 64);
|
||||
PipeBarrel.mirror = true;
|
||||
setRotation(PipeBarrel, 0F, 0F, 0F);
|
||||
PipeHolder = new ModelRenderer(this, 42, 37);
|
||||
PipeHolder.addBox(0F, 0F, 0F, 3, 4, 1);
|
||||
PipeHolder.setRotationPoint(0.5F, 5F, -1F);
|
||||
PipeHolder.setTextureSize(128, 64);
|
||||
PipeHolder.mirror = true;
|
||||
setRotation(PipeHolder, 0F, 0F, 0F);
|
||||
Rail1 = new ModelRenderer(this, 28, 27);
|
||||
Rail1.addBox(0F, 0F, 0F, 1, 5, 1);
|
||||
Rail1.setRotationPoint(5F, -2F, 2.5F);
|
||||
Rail1.setTextureSize(128, 64);
|
||||
Rail1.mirror = true;
|
||||
setRotation(Rail1, 0F, 0F, 0F);
|
||||
Rail2 = new ModelRenderer(this, 32, 27);
|
||||
Rail2.addBox(0F, 0F, 0F, 1, 5, 1);
|
||||
Rail2.setRotationPoint(5F, -2F, 6.5F);
|
||||
Rail2.setTextureSize(128, 64);
|
||||
Rail2.mirror = true;
|
||||
setRotation(Rail2, 0F, 0F, 0F);
|
||||
Rail3 = new ModelRenderer(this, 28, 23);
|
||||
Rail3.addBox(0F, 0F, 0F, 18, 1, 1);
|
||||
Rail3.setRotationPoint(-12F, -3F, 2.5F);
|
||||
Rail3.setTextureSize(128, 64);
|
||||
Rail3.mirror = true;
|
||||
setRotation(Rail3, 0F, 0F, 0F);
|
||||
Rail4 = new ModelRenderer(this, 28, 25);
|
||||
Rail4.addBox(0F, 0F, 0F, 18, 1, 1);
|
||||
Rail4.setRotationPoint(-12F, -3F, 6.5F);
|
||||
Rail4.setTextureSize(128, 64);
|
||||
Rail4.mirror = true;
|
||||
setRotation(Rail4, 0F, 0F, 0F);
|
||||
Rail5 = new ModelRenderer(this, 28, 18);
|
||||
Rail5.addBox(0F, 0F, 0F, 1, 4, 1);
|
||||
Rail5.setRotationPoint(-12F, -2F, 2.5F);
|
||||
Rail5.setTextureSize(128, 64);
|
||||
Rail5.mirror = true;
|
||||
setRotation(Rail5, 0F, 0F, 0F);
|
||||
Rail6 = new ModelRenderer(this, 32, 18);
|
||||
Rail6.addBox(0F, 0F, 0F, 1, 4, 1);
|
||||
Rail6.setRotationPoint(-12F, -2F, 6.5F);
|
||||
Rail6.setTextureSize(128, 64);
|
||||
Rail6.mirror = true;
|
||||
setRotation(Rail6, 0F, 0F, 0F);
|
||||
TankHolder = new ModelRenderer(this, 42, 27);
|
||||
TankHolder.addBox(0F, 0F, 0F, 4, 2, 1);
|
||||
TankHolder.setRotationPoint(4.5F, 4F, 2.5F);
|
||||
TankHolder.setTextureSize(128, 64);
|
||||
TankHolder.mirror = true;
|
||||
setRotation(TankHolder, 0F, 0F, 0F);
|
||||
HandleBase = new ModelRenderer(this, 28, 33);
|
||||
HandleBase.addBox(0F, 0F, 0F, 6, 1, 1);
|
||||
HandleBase.setRotationPoint(9F, -2F, 4.5F);
|
||||
HandleBase.setTextureSize(128, 64);
|
||||
HandleBase.mirror = true;
|
||||
setRotation(HandleBase, 0F, 0F, 0F);
|
||||
HandleShaft = new ModelRenderer(this, 28, 35);
|
||||
HandleShaft.addBox(0F, 0F, 0F, 1, 3, 1);
|
||||
HandleShaft.setRotationPoint(8F, -4F, 4.5F);
|
||||
HandleShaft.setTextureSize(128, 64);
|
||||
HandleShaft.mirror = true;
|
||||
setRotation(HandleShaft, 0F, 0F, 0F);
|
||||
HanldeGrip = new ModelRenderer(this, 28, 39);
|
||||
HanldeGrip.addBox(0F, 0F, 0F, 5, 2, 2);
|
||||
HanldeGrip.setRotationPoint(9F, -5F, 4F);
|
||||
HanldeGrip.setTextureSize(128, 64);
|
||||
HanldeGrip.mirror = true;
|
||||
setRotation(HanldeGrip, 0F, 0F, 0F);
|
||||
SpinC1 = new ModelRenderer(this, 66, 21);
|
||||
SpinC1.addBox(0F, -3.5F, -2F, 4, 3, 4);
|
||||
SpinC1.setRotationPoint(9.5F, 6F, 5F);
|
||||
SpinC1.setTextureSize(128, 64);
|
||||
SpinC1.mirror = true;
|
||||
setRotation(SpinC1, 0F, 0F, 0F);
|
||||
SpinC2 = new ModelRenderer(this, 66, 28);
|
||||
SpinC2.addBox(0F, -3.5F, -2F, 4, 3, 4);
|
||||
SpinC2.setRotationPoint(9.5F, 6F, 5F);
|
||||
SpinC2.setTextureSize(128, 64);
|
||||
SpinC2.mirror = true;
|
||||
setRotation(SpinC2, 2.094395F, 0F, 0F);
|
||||
SpinC3 = new ModelRenderer(this, 66, 35);
|
||||
SpinC3.addBox(0F, -3.5F, -2F, 4, 3, 4);
|
||||
SpinC3.setRotationPoint(9.5F, 6F, 5F);
|
||||
SpinC3.setTextureSize(128, 64);
|
||||
SpinC3.mirror = true;
|
||||
setRotation(SpinC3, -2.094395F, 0F, 0F);
|
||||
SpinP1 = new ModelRenderer(this, 82, 21);
|
||||
SpinP1.addBox(0F, -3F, -1.5F, 3, 2, 3);
|
||||
SpinP1.setRotationPoint(10F, 6F, 5F);
|
||||
SpinP1.setTextureSize(128, 64);
|
||||
SpinP1.mirror = true;
|
||||
setRotation(SpinP1, 1.047198F, 0F, 0F);
|
||||
SpinP2 = new ModelRenderer(this, 82, 26);
|
||||
SpinP2.addBox(0F, -3F, -1.5F, 3, 2, 3);
|
||||
SpinP2.setRotationPoint(10F, 6F, 5F);
|
||||
SpinP2.setTextureSize(128, 64);
|
||||
SpinP2.mirror = true;
|
||||
setRotation(SpinP2, 3.141593F, 0F, 0F);
|
||||
SpinP3 = new ModelRenderer(this, 82, 31);
|
||||
SpinP3.addBox(0F, -3F, -1.5F, 3, 2, 3);
|
||||
SpinP3.setRotationPoint(10F, 6F, 5F);
|
||||
SpinP3.setTextureSize(128, 64);
|
||||
SpinP3.mirror = true;
|
||||
setRotation(SpinP3, -1.047198F, 0F, 0F);
|
||||
Battery1 = new ModelRenderer(this, 64, 2);
|
||||
Battery1.addBox(0F, 0F, 0F, 1, 1, 3);
|
||||
Battery1.setRotationPoint(17.8F, -1F, 3.5F);
|
||||
Battery1.setTextureSize(128, 64);
|
||||
Battery1.mirror = true;
|
||||
setRotation(Battery1, 0F, 0F, 0F);
|
||||
Battery2 = new ModelRenderer(this, 72, 2);
|
||||
Battery2.addBox(0F, 0F, 0F, 1, 1, 3);
|
||||
Battery2.setRotationPoint(19.3F, -1F, 3.5F);
|
||||
Battery2.setTextureSize(128, 64);
|
||||
Battery2.mirror = true;
|
||||
setRotation(Battery2, 0F, 0F, 0F);
|
||||
StockBase = new ModelRenderer(this, 60, 12);
|
||||
StockBase.addBox(0F, 0F, 0F, 12, 6, 3);
|
||||
StockBase.setRotationPoint(22F, 7F, 3.5F);
|
||||
StockBase.setTextureSize(128, 64);
|
||||
StockBase.mirror = true;
|
||||
setRotation(StockBase, 0F, 0F, 0F);
|
||||
StockTrigger = new ModelRenderer(this, 60, 6);
|
||||
StockTrigger.addBox(-3.5F, -1.5F, 0F, 5, 4, 2);
|
||||
StockTrigger.setRotationPoint(22F, 10F, 4F);
|
||||
StockTrigger.setTextureSize(128, 64);
|
||||
StockTrigger.mirror = true;
|
||||
setRotation(StockTrigger, 0F, 0F, 0.7853982F);
|
||||
Shape1 = new ModelRenderer(this, 42, 30);
|
||||
Shape1.addBox(0F, -1F, -1F, 2, 5, 2);
|
||||
Shape1.setRotationPoint(5.5F, 6F, 2.5F);
|
||||
Shape1.setTextureSize(128, 64);
|
||||
Shape1.mirror = true;
|
||||
setRotation(Shape1, -0.7853982F, 0F, 0F);
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5, float rot) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
CoilFront.render(f5);
|
||||
Panel1.render(f5);
|
||||
Panel2.render(f5);
|
||||
Panel3.render(f5);
|
||||
CoilBack.render(f5);
|
||||
SpinPivot.render(f5);
|
||||
Barrel.render(f5);
|
||||
CoilBarrel.render(f5);
|
||||
PipeBarrel.render(f5);
|
||||
PipeHolder.render(f5);
|
||||
Rail1.render(f5);
|
||||
Rail2.render(f5);
|
||||
Rail3.render(f5);
|
||||
Rail4.render(f5);
|
||||
Rail5.render(f5);
|
||||
Rail6.render(f5);
|
||||
TankHolder.render(f5);
|
||||
HandleBase.render(f5);
|
||||
HandleShaft.render(f5);
|
||||
HanldeGrip.render(f5);
|
||||
SpinC1.rotateAngleX += rot;
|
||||
SpinC2.rotateAngleX += rot;
|
||||
SpinC3.rotateAngleX += rot;
|
||||
SpinP1.rotateAngleX += rot;
|
||||
SpinP2.rotateAngleX += rot;
|
||||
SpinP3.rotateAngleX += rot;
|
||||
SpinC1.render(f5);
|
||||
SpinC2.render(f5);
|
||||
SpinC3.render(f5);
|
||||
SpinP1.render(f5);
|
||||
SpinP2.render(f5);
|
||||
SpinP3.render(f5);
|
||||
Battery1.render(f5);
|
||||
Battery2.render(f5);
|
||||
StockBase.render(f5);
|
||||
StockTrigger.render(f5);
|
||||
Shape1.render(f5);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 363 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
x
Reference in New Issue
Block a user