Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SkinModifier #10

Open
necropotame opened this issue Dec 28, 2015 · 0 comments
Open

Add SkinModifier #10

necropotame opened this issue Dec 28, 2015 · 0 comments

Comments

@necropotame
Copy link
Member

Skin modifier is a way to customize the skin of a player. The definition of the skin modifier is stored in the mod file with this structure:

struct CModAPI_ModItem_SkinModifier
{
//Replace "Part" by each part of the skin
int m_PartFlag; // REPLACED | CUSTOMCOLOR | EXTERNALFILE
char* m_PartSkin; //Name of the skin file
int m_PartColor;
...
int m_HookStyle; //A line style ID
};

Then, if the a skin modifier is attached to a player (just an ID), the client change part of the skins that a has the flag REPLACED. The hook is also replaced by m_HookStyle if m_HookStyle >= 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant