-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Gui.cpp, находим "else if (!GUI_KEY_DOWN(Settings::menu_key) && is_down)" и вставляем внутрь код:
потом нужен новый CreateMove щас будет
Нужно обновить директиву
файл SDK.h
заменить
на
потом заменяем код emit hook на
готова
Код:
static ConVar * cvar = Interfaces::GetConVar()->FindVar("cl_mouseenable");
cvar->SetValue(bIsGuiVisible);
Нужно обновить директиву
файл SDK.h
заменить
Код:
#define CLIENT_DLL "client.dll"
Код:
#define CLIENT_DLL "client_panorama.dll"
Код:
int WINAPI Hook_EmitSound1( IRecipientFilter& filter , int iEntIndex , int iChannel , const char *pSoundEntry , unsigned int nSoundEntryHash , const char *pSample ,
float flVolume , soundlevel_t iSoundlevel , int nSeed , int iFlags = 0 , int iPitch = PITCH_NORM ,
const Vector *pOrigin = NULL , const Vector *pDirection = NULL , CUtlVector< Vector >* pUtlVecOrigins = NULL , bool bUpdatePositions = true , float soundtime = 0.0f , int speakerentity = -1, int test = 0)
{
if (pSample && Client::g_pPlayers->GetPlayer(iEntIndex)->Team != Client::g_pPlayers->GetLocal()->Team)
{
Client::OnPlaySound(pOrigin, pSample);
}
SoundTable.UnHook();
int ret = Interfaces::Sound()->EmitSound1( filter , iEntIndex , iChannel , pSoundEntry , nSoundEntryHash , pSample ,
flVolume , iSoundlevel , nSeed , iFlags , iPitch ,
pOrigin , pDirection , pUtlVecOrigins , bUpdatePositions , soundtime , speakerentity, test);
SoundTable.ReHook();
return ret;
}
int WINAPI Hook_EmitSound2( IRecipientFilter& filter , int iEntIndex , int iChannel , const char *pSoundEntry , unsigned int nSoundEntryHash , const char *pSample ,
float flVolume , float flAttenuation , int nSeed , int iFlags = 0 , int iPitch = PITCH_NORM ,
const Vector *pOrigin = NULL , const Vector *pDirection = NULL , CUtlVector< Vector >* pUtlVecOrigins = NULL , bool bUpdatePositions = true , float soundtime = 0.0f , int speakerentity = -1, int test = 0)
{
if (pSample && Client::g_pPlayers->GetPlayer(iEntIndex)->Team != Client::g_pPlayers->GetLocal()->Team)
{
Client::OnPlaySound(pOrigin, pSample);
}
SoundTable.UnHook();
int ret = Interfaces::Sound()->EmitSound2( filter , iEntIndex , iChannel , pSoundEntry , nSoundEntryHash , pSample ,
flVolume , flAttenuation , nSeed , iFlags , iPitch ,
pOrigin , pDirection , pUtlVecOrigins , bUpdatePositions , soundtime , speakerentity, test);
SoundTable.ReHook();
return ret;
}
Последнее редактирование: