dont reset cash to 16000 when buying an item
This commit is contained in:
parent
2d8d962400
commit
0d548fb60f
@ -166,6 +166,14 @@ static struct SrcdsPatch
|
|||||||
"xxxxxx",
|
"xxxxxx",
|
||||||
(unsigned char *)"\x90\x90\x90\x90\x90\x90",
|
(unsigned char *)"\x90\x90\x90\x90\x90\x90",
|
||||||
0, 0, 0, true
|
0, 0, 0, true
|
||||||
|
},
|
||||||
|
// 9: dont reset cash to 16000 when buying an item
|
||||||
|
{
|
||||||
|
"_ZN9CCSPlayer10AddAccountEibbPKc",
|
||||||
|
(unsigned char *)"\x3D\x80\x3E\x00\x00\x0F\x8F\xE8\x00\x00\x00",
|
||||||
|
"xxxxxxxxxxx",
|
||||||
|
(unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90",
|
||||||
|
0, 0, 0, false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -270,7 +278,7 @@ DETOUR_DECL_MEMBER2(DETOUR_PassesFilterImpl, bool, CBaseEntity*, pCaller, CBaseE
|
|||||||
{
|
{
|
||||||
datamap_t *pDataMap = gamehelpers->GetDataMap(pEntity);
|
datamap_t *pDataMap = gamehelpers->GetDataMap(pEntity);
|
||||||
sm_datatable_info_t info;
|
sm_datatable_info_t info;
|
||||||
|
|
||||||
// Both are CBaseEntity members, so the offsets will always be the same across different entity classes
|
// Both are CBaseEntity members, so the offsets will always be the same across different entity classes
|
||||||
gamehelpers->FindDataMapInfo(pDataMap, "m_ResponseContexts", &info);
|
gamehelpers->FindDataMapInfo(pDataMap, "m_ResponseContexts", &info);
|
||||||
m_ResponseContexts_offset = info.actual_offset;
|
m_ResponseContexts_offset = info.actual_offset;
|
||||||
@ -297,7 +305,7 @@ DETOUR_DECL_MEMBER2(DETOUR_PassesFilterImpl, bool, CBaseEntity*, pCaller, CBaseE
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CBaseFilter::PassesFilterImpl just returns true so no need to call it
|
// CBaseFilter::PassesFilterImpl just returns true so no need to call it
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user