-
Автор темы
- #1
Итак нам потребуется класс SSpecialMovesPersistents:
CClimbClassExtension:
Структурки:
Использование:
C++:
struct SSpecialMovesPersistents
{
char pad_0x0008[0x8];
std::unique_ptr<CClimbClassExtension, std::default_delete<CClimbClassExtension> > climbPersistent;
};
class CSpecialMovesRegistry
{
public:
char pad_0x0008[0x8];
std::auto_ptr<SSpecialMovesPersistents> m_persistents;
};
class CGame
{
public:
CSpecialMovesRegistry* GetSpecialMovesRegistry() { return *(CSpecialMovesRegistry**)((uint64_t)this + 0x278); }
};
C++:
class CClimbClassExtension
{
public:
char pad_0x0008[0x8];
SClimbParams m_params;
};
C++:
struct SClimbAnim
{
CryStringT inputId;
float length;
float duration;
float offsetFromTop;
float playbackMult;
CryStringT animName;
};
struct SClimbParams
{
char pad_0x0010[0x10];
float minHelperHeight;
float maxHelperHeight;
float detectZoneLength;
float nearZoneLength;
float lowerAnimStartDist;
float verticalVelocity;
SAnimSelection animSelection;
SClimbAnim animations[4];
};
C++:
if (CSpecialMovesRegistry* pRegistry = pGame->GetSpecialMovesRegistry())
{
pRegistry->m_persistents->climbPersistent->m_params.maxHelperHeight = 20.f;
pRegistry->m_persistents->climbPersistent->m_params.animations->duration = 0.01f;
}
Пожалуйста, авторизуйтесь для просмотра ссылки.