Jump to content

[Knowledge] SourcePawn plugin Experiment


Recommended Posts

In this thread, I will post sourcepawn coding that I tried experiment.  This is much more like I make this for people who are interested in sourcepawn coding.
btw, I will update later if I got anything interesting.  

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Multiple Bodygroups Experiments

In source engine game, Player Model  can have multiple bodygroups and Texture skin. This advanatage allow us to have one model files with many various of cloth or texture without putting the same model files but just different appearance. For Example.
 

This is simple, and the function already include in sourcemod.inc
Here is the simple code to change bodygroups
 

public void ApplyBodyCloth(int client, int index)
{
	// change bodygroups
    SetEntProp(client, Prop_Send, "m_nBody", index);

	// change skin texture
	SetEntProp(client, Prop_Send, "m_nSkin", index);
}

the bodygroups only work with player model, meaning you still need to have multiple arms model in csgo to change it.

Ps. This two models is made by Toppi when RAZE still open. They are designed to experiment this bodygroup in the first place.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...