Hello guys, i need some help with this mod i'm making, cause i'm stuck at this rocket part. I made a rocket laucher (obviously, rocket needs a launcher), and i need some help on the rendering. i'm still working on the model, but i want it to be something around this
// Date: 29/08/2012 15:42:07
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package net.minecraft.src;
public class ModelModel extends ModelBase
{
//fields
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape3;
public ModelModel()
{
textureWidth = 32;
textureHeight = 32;
Shape1 = new ModelRenderer(this, 0, 0);
Shape1.addBox(0F, 0F, 0F, 9, 4, 4);
Shape1.setRotationPoint(-1F, 0F, 0F);
Shape1.setTextureSize(64, 32);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 0, 8);
Shape2.addBox(0F, 0F, 0F, 2, 9, 0);
Shape2.setRotationPoint(-3F, -1F, -1F);
Shape2.setTextureSize(64, 32);
Shape2.mirror = true;
setRotation(Shape2, 0.7853982F, 0F, 0F);
Shape3 = new ModelRenderer(this, 0, 8);
Shape3.addBox(0F, 0F, 0F, 2, 9, 0);
Shape3.setRotationPoint(-3F, -1F, 5F);
Shape3.setTextureSize(64, 32);
Shape3.mirror = true;
setRotation(Shape3, -0.7853982F, 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);
Shape1.render(f5);
Shape2.render(f5);
Shape3.render(f5);
}
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)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5);
}
}
and the other thing i need help with is that in this mod there are a bunch of weapons (i mean to make a pvp like mod), so i need to make a way to reload weapons, and make them have a shooting cooldown. i had the idea of making the item get the durability (and the durability being the amount of ammo u got), and when u press R, it gets the max durability, takes the amount u have left and subtracts it one from the other, than takes from your backpack the amount u got, up to the max cap (being still able to reload without enough bullets for a full rechard), but i need some help with it, cause i got no idea on how to do that, i can make it waste ammo when you shoot, but it shoots way too fast, and a rocket launcher that u had, for example, 10 bullets you could just kill everyone. Any help is apreciated, ty very much
Projectile Render with Diferent Models + Shooting cooldown