Knife not changing
Hi,
Working on a knife changer right now, but the model of the knife stays the default knife only the picture & text changes.
Current offsets & code:
Working on a knife changer right now, but the model of the knife stays the default knife only the picture & text changes.
Current offsets & code:
Code:
int m_hActiveWeapon = 0x2EE8;
int m_hMyWeapons = 0x2DE8;
int m_iItemDefinitionIndex = 0x2F88;
int m_iAccountID = 0x2FA8;
int m_OriginalOwnerXuidLow = 0x3160;
int m_OriginalOwnerXuidHigh = 0x3164;
int m_iItemIDLow = 0x2FA4;
int m_iItemIDHigh = 0x2FA0;
int m_nFallbackPaintKit = 0x3168;
int m_nFallbackSeed = 0x316C;
int m_flFallbackWear = 0x3170;
int m_nFallbackStatTrak = 0x3174;
int m_iEntityQuality = 0x2F8C;
int m_szCustomName = 0x301C;
int m_iViewModelIndex = 0x31D0;
int m_iWorldModelIndex = 0x31D4;
int nModelIndex = 0x254;
if (CurrentWeaponId == 42 || CurrentWeaponId == 59)
{
WriteMem(CurrentWeaponEntity + m_iItemDefinitionIndex, BitConverter.GetBytes(507));
WriteMem(CurrentWeaponEntity + m_iViewModelIndex, BitConverter.GetBytes(326));
WriteMem(LocalP + m_iWorldModelIndex, BitConverter.GetBytes(327));
WriteMem(CurrentWeaponEntity + m_iItemIDHigh, BitConverter.GetBytes(-1));
WriteMem(CurrentWeaponEntity + m_nFallbackStatTrak, BitConverter.GetBytes(6262));
WriteMem(CurrentWeaponEntity + m_nFallbackPaintKit, BitConverter.GetBytes(38));
WriteFloat(CurrentWeaponEntity + m_flFallbackWear, 0.000001f);
}
