[Snippet] Fix sniper right click shit
Hi :junglejane: simple sleep on the right click to stop it flashing on and off constantly, annoying ass shit, this is for 1 second, use 2,3,4 idc, it will help fix that problem.
Code:
void ZMyCharacter::OnGadget_Snifer()
{
ZMyCharaterStatusBitPacking & zStatus = m_statusFlags.Ref();
zStatus.m_bSniferMode = !zStatus.m_bSniferMode;
ZCombatInterface* ci=ZGetCombatInterface();
if (ci)
{
if (zStatus.m_bSniferMode)
{
ci->OnGadget(MWT_SNIFER);
ZGetGameInterface()->GetCamera()->m_fDist = 0.0f;
Sleep( 100 );
}
else
{
ci->OnGadgetOff();
ZGetGameInterface()->GetCamera()->m_fDist = 290.0f;
Sleep( 100 );
}
}
}
My way of fixing it, don't like? dont comment
:junglejane:
Re: [Snippet] Fix sniper right click shit
Re: [Snippet] Fix sniper right click shit
I would have expected a better fix for someone that work whit gunz since 2007, instead of using m_fDist take a look at g_fFOV for the zoom.
Re: [Snippet] Fix sniper right click shit
Re: [Snippet] Fix sniper right click shit
Hideasu they work the same way so what's ur point?
Re: [Snippet] Fix sniper right click shit
It's called a fucking scope.
Right?
Re: [Snippet] Fix sniper right click shit
May I ask why you have posted the fix here even before you fixed the sniper glitch in Evil Gunz?
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
Duluxe
May I ask why you have posted the fix here even before you fixed the sniper glitch in Evil Gunz?
it doesn't matter, some people had this same problem anyway
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
damn321
whre i put this codes?
Visual Studio
Quote:
Originally Posted by
Hideasu
I would have expected a better fix for someone that work whit gunz since 2007, instead of using m_fDist take a look at g_fFOV for the zoom.
what is the difference?
Re: [Snippet] Fix sniper right click shit
Duluxe I am making vast improvement to mine before updating
Re: [Snippet] Fix sniper right click shit
thanks alot :) that problem was really annyoing
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
Joe9099
Duluxe I am making vast improvement to mine before updating
Thank you :) I love sniping but cant in Evil Gamerz atm.
Re: [Snippet] Fix sniper right click shit
Sorry for a noob question, but which file of the source does this go in?
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
iOmegaAZ
Sorry for a noob question, but which file of the source does this go in?
ZMyCharacter.cpp
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
Wizkidje
ZMyCharacter.cpp
Thanks :D
Re: [Snippet] Fix sniper right click shit
Untested, but this should work without having FPS drops.
Code:
unsigned long g_dwLastSniperUpdate = 0;
void ZMyCharacter::OnGadget_Snifer()
{
ZMyCharaterStatusBitPacking & zStatus = m_statusFlags.Ref();
zStatus.m_bSniferMode = !zStatus.m_bSniferMode;
ZCombatInterface* ci=ZGetCombatInterface();
unsigned long dwTime = timeGetTime();
if (ci && (g_dwLastSniperUpdate == 0 || g_dwLastSniperUpdate <= (dwTime - 100)))
{
if (zStatus.m_bSniferMode)
{
ci->OnGadget(MWT_SNIFER);
ZGetGameInterface()->GetCamera()->m_fDist = 0.0f;
}
else
{
ci->OnGadgetOff();
ZGetGameInterface()->GetCamera()->m_fDist = 290.0f;
}
g_dwLastSniperUpdate = dwTime;
}
}
Re: [Snippet] Fix sniper right click shit
Re: [Snippet] Fix sniper right click shit
but that slowing the game else i will try delaying for the code
Re: [Snippet] Fix sniper right click shit
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
medotarek
but that slowing the game else i will try delaying for the code
Wizkids snippet does not slow your game.
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
Mr_Troy
Wizkids snippet does not slow your game.
Wizkids edit it but did you check it before? Because i checked it and this is not working good.
Re: [Snippet] Fix sniper right click shit
Quote:
Originally Posted by
Wizkidje
Untested, but this should work without having FPS drops.
Code:
unsigned long g_dwLastSniperUpdate = 0;
void ZMyCharacter::OnGadget_Snifer()
{
ZMyCharaterStatusBitPacking & zStatus = m_statusFlags.Ref();
zStatus.m_bSniferMode = !zStatus.m_bSniferMode;
ZCombatInterface* ci=ZGetCombatInterface();
unsigned long dwTime = timeGetTime();
if (ci && (g_dwLastSniperUpdate == 0 || g_dwLastSniperUpdate <= (dwTime - 100)))
{
if (zStatus.m_bSniferMode)
{
ci->OnGadget(MWT_SNIFER);
ZGetGameInterface()->GetCamera()->m_fDist = 0.0f;
}
else
{
ci->OnGadgetOff();
ZGetGameInterface()->GetCamera()->m_fDist = 290.0f;
}
g_dwLastSniperUpdate = dwTime;
}
}
this solve not correct, but idea better than Sleep.
This correct solve (tested)
Code:
unsigned long g_dwLastSniperUpdate = 0;
void ZMyCharacter::OnGadget_Snifer()
{
unsigned long dwTime = timeGetTime();
if (g_dwLastSniperUpdate == 0 || g_dwLastSniperUpdate <= (dwTime - 200))
{
ZMyCharaterStatusBitPacking & zStatus = m_statusFlags.Ref();
zStatus.m_bSniferMode = !zStatus.m_bSniferMode;
ZCombatInterface* ci=ZGetCombatInterface();
if (ci)
{
if (zStatus.m_bSniferMode)
{
ci->OnGadget(MWT_SNIFER);
}
else
{
ci->OnGadgetOff();
}
}
g_dwLastSniperUpdate = dwTime;
}
}