Skip to content

Commit 0886f1f

Browse files
committed
Removed clothing model functions from CStaticFunctionDefinitions
1 parent 88e0484 commit 0886f1f

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,22 +2671,6 @@ bool CStaticFunctionDefinitions::GetClothesTypeName(unsigned char ucType, SStrin
26712671
return false;
26722672
}
26732673

2674-
bool CStaticFunctionDefinitions::AddClothingModel(const char* szTexture, const char* szModel, unsigned char ucType)
2675-
{
2676-
if (!CClientPlayerClothes::AddClothingModel(szTexture, szModel, ucType))
2677-
return false;
2678-
2679-
return true;
2680-
}
2681-
2682-
bool CStaticFunctionDefinitions::RemoveClothingModel(const char* szTexture, const char* szModel, unsigned char ucType)
2683-
{
2684-
if (!CClientPlayerClothes::RemoveClothingModel(szTexture, szModel, ucType))
2685-
return false;
2686-
2687-
return true;
2688-
}
2689-
26902674
CClientPed* CStaticFunctionDefinitions::CreatePed(CResource& Resource, unsigned long ulModel, const CVector& vecPosition, float fRotation)
26912675
{
26922676
// Valid model?

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ class CStaticFunctionDefinitions
195195
static bool GetClothesByTypeIndex(unsigned char ucType, unsigned char ucIndex, SString& strOutTexture, SString& strOutModel);
196196
static bool GetTypeIndexFromClothes(const char* szTexture, const char* szModel, unsigned char& ucTypeReturn, unsigned char& ucIndexReturn);
197197
static bool GetClothesTypeName(unsigned char ucType, SString& strOutName);
198-
static bool AddClothingModel(const char* szTexture, const char* szModel, unsigned char ucType);
199-
static bool RemoveClothingModel(const char* szTexture, const char* szModel, unsigned char ucType);
200198

201199
// Vehicle get funcs
202200
static CClientVehicle* CreateVehicle(CResource& Resource, unsigned short usModel, const CVector& vecPosition, const CVector& vecRotation,

Client/mods/deathmatch/logic/lua/CLuaFunctionDefs.BodyClothes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int CLuaFunctionDefs::AddClothingModel(lua_State* luaVM)
114114

115115
if (!argStream.HasErrors())
116116
{
117-
if (CStaticFunctionDefinitions::AddClothingModel(strTexture, strModel, ucType))
117+
if (CClientPlayerClothes::AddClothingModel(strTexture, strModel, ucType))
118118
{
119119
lua_pushboolean(luaVM, true);
120120
return 1;
@@ -136,7 +136,7 @@ int CLuaFunctionDefs::RemoveClothingModel(lua_State* luaVM)
136136

137137
if (!argStream.HasErrors())
138138
{
139-
if (CStaticFunctionDefinitions::RemoveClothingModel(strTexture, strModel, ucType))
139+
if (CClientPlayerClothes::RemoveClothingModel(strTexture, strModel, ucType))
140140
{
141141
lua_pushboolean(luaVM, true);
142142
return 1;

0 commit comments

Comments
 (0)