Jump to content

Player Model Textures


tommysticks

Recommended Posts

Anyone know if we can access player model textures through Lua?

 

I was able to access weapon textures through it, pretty sure I can change them in-game but haven't tried it yet. I just don't know how to access player textures.

 

I am able to access the weapon texture through this line:

pWorTe = player:getPrimaryHandItem():getWorldTexture();

This returns the following for example:

media/inventory/world/WItem_Fork.png

 

This leads me to believe I could change that in-game as long as a new texture was loaded. Haven't tested this yet, but I will today.

 

Still would like some advice on how to access player model texture.
 

Link to comment
Share on other sites

Anyone know if we can access player model textures through Lua?

I was able to access weapon textures through it, pretty sure I can change them in-game but haven't tried it yet. I just don't know how to access player textures.

I am able to access the weapon texture through this line:

pWorTe = player:getPrimaryHandItem():getWorldTexture();
This returns the following for example:

media/inventory/world/WItem_Fork.png

This leads me to believe I could change that in-game as long as a new texture was loaded. Haven't tested this yet, but I will today.

Still would like some advice on how to access player model texture.

I don't know if you still need help with this, but the way player models/textures are handled is a bit janky, so I don't think its possible as of now. Your best bet is to bother Jab to include support for it in his ModelLoader.

Link to comment
Share on other sites

Decompiled stuff:
 

  C:\Users\EG\Desktop\zombie\characters\IsoGameCharacter.java (1 hit)
Line 201:     public ModelInstance getModel()
 
There is also a setModel() function. Didn't notice it earlier.
 
It's also in the updated Javadoc Kirrus and I put up (which I now can't find . . . ).
Link to comment
Share on other sites

 

Decompiled stuff:

 

  C:\Users\EG\Desktop\zombie\characters\IsoGameCharacter.java (1 hit)
Line 201:     public ModelInstance getModel()
 
There is also a setModel() function. Didn't notice it earlier.
 
It's also in the updated Javadoc Kirrus and I put up (which I now can't find . . . ).

 

Found it here. Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...