Adding all our changes under our main jupiter branch.
This commit is contained in:
@ -17,6 +17,8 @@ new offsCollision;
|
||||
new offsMoney;
|
||||
new offsFOV;
|
||||
new offsBuyZone;
|
||||
new offsColor;
|
||||
new offsRender;
|
||||
|
||||
new Handle:hGameConf = INVALID_HANDLE;
|
||||
new Handle:hRemoveAllItems = INVALID_HANDLE;
|
||||
@ -89,6 +91,16 @@ FindOffsets()
|
||||
{
|
||||
SetFailState("Couldn't find \"m_bInBuyZone\"!");
|
||||
}
|
||||
|
||||
offsColor = FindSendPropInfo("CAI_BaseNPC", "m_clrRender");
|
||||
if(offsColor == -1) {
|
||||
SetFailState("Couldn't find \"m_clrRender\"!");
|
||||
}
|
||||
|
||||
offsRender = FindSendPropInfo("CBaseAnimating", "m_nRenderMode");
|
||||
if(offsRender == -1) {
|
||||
SetFailState("Couldn't find \"m_nRenderMode\"!");
|
||||
}
|
||||
}
|
||||
|
||||
SetupGameData()
|
||||
@ -187,4 +199,11 @@ SetPlayerModel(client, const String:model[])
|
||||
{
|
||||
PrecacheModel(model);
|
||||
SetEntityModel(client, model);
|
||||
}
|
||||
}
|
||||
|
||||
SetPlayerAlpha(client, alpha)
|
||||
{
|
||||
SetEntData(client, offsColor + 3, alpha, 1, true);
|
||||
SetEntData(client, offsRender, 3, 1, true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user