Jump to content

Recommended Posts

Posted

The weapons shoots fine but the projectile is invisible. Also, is it possible to scale up the size of an item (weapon) the player is holding, and if so, how?

 

Entity Code:

 

  Reveal hidden contents

 

Render Code:

 

  Reveal hidden contents

 

Main Class Code:

 

  Reveal hidden contents

 

Client Proxy Code:

 

  Reveal hidden contents

 

Posted
  On 4/20/2014 at 12:44 AM, coolboy4531 said:

I don't know but don't you have to run your proxy's RenderInformation() in your PreInit? (might be wrong)

Oh, that's already there, just forgot to include it.

Posted
  On 4/20/2014 at 1:20 AM, coolboy4531 said:

Can I see your entire main class - as of now?

It's very extensive, but everything related to the projectile can be found here:

 

public class darkCaves {
@EventHandler
public void PreInit(FMLPreInitializationEvent event){
	EntityRegistry.registerModEntity(EntityDischargeShot.class, "DischargeShot", 200, this, 120, 3, true );

	proxy.RenderInformation();
}
}

Posted
  On 4/20/2014 at 2:53 AM, coolAlias said:

private float scale; // default value is zero...

// uh oh...
GL11.glScalef(scale * 0.5F, scale * 0.5F, scale * 0.5F);

 

You need to initialize your variable.

Fixed it, thanks a bunch!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.