desertions (09-23-2014),FanElmeneT (01-21-2015),monsterware (09-26-2014),pycnn (09-23-2014)
Credits
-killerra
-ko1n
Code has a small anti C+P measure.
Code:if (pThis->m_pBaseEngine->GetConfig()->GetCVar("antifalldamage_active")->GetBool()) { CBaseEntity *pLocalEntity = pThis->m_pBaseEngine->GetLocalPlayer(); if (pLocalEntity != NULL && pLocalEntity->GetMoveType() != MOVETYPE_NOCLIP && pLocalEntity->GetMoveType() != MOVETYPE_LADDER && !(pLocalEntity->GetFlags() & FL_ONGROUND) && !(pLocalEntity->GetFlags() & FL_PARTIALGROUND)) { CBaseUserCmd *pUserCmd = pThis->m_pHookHandler->GetUserCmd(sequence_number); if (pUserCmd != NULL) { float fFallDamage = (float)((float)(pLocalEntity->GetFallVelocity() -580.0) * 0.23809524); if (fFallDamage < 0.0f) { trace_t sTrace; CTraceFilterSkipTwoEntities traceFilter(pLocalEntity->GetEntity(), NULL); Vector vecAbsOrigin = pLocalEntity->GetAbsOrigin(); Vector vecPredictedAbsOrigin = pLocalEntity->Predict(); // account for next tick pThis->m_pBaseEngine->EngineTrace->TraceRay(vecAbsOrigin, vecPredictedAbsOrigin, 0x4600400B, (ITraceFilter *)&TraceFilter, &sTrace); if (sTrace.fraction != 1.0f) *(DWORD *)pUserCmd->forwardmove() = NAN_VALUE; } } } }
Last edited by Unbalanced; 09-23-2014 at 02:43 PM.
desertions (09-23-2014),FanElmeneT (01-21-2015),monsterware (09-26-2014),pycnn (09-23-2014)
How does this work exactly? sorry noobster here
Muh Tumblr (NSFW)
Click HERE to join the Night Owls if you stay up late on MPGH
Anime Recommendation (3/14/15) | Manga/Manhwa Recommendation (8/20/15)
^ I'll update one of these soon I swear ^
Member Since 8/05/2012
Editor 4/04/13 - 4/21/13
Middleman 7/14/13 - 11/4/13
Battlefield Minion 6/13/14-3/20/15
Steam Minion 7/16/14-3/20/15
Minion+ 10/1/14-3/20/15
M.A.T. Minion 10/19/14-3/20/15
ROTMG Minion 1/14/15-3/20/15
Donator Since 2/26/15 (Thanks @Cursed!)
Steam Minion 5/9/15 - 11/5/15
OSFPS Minion 9/15/15 - 11/5/15
wow everyone stop being douches
majority of people hate it when people don't know how to use or make use of the code and shit
if you aren't going to make a hack with this, you're probably in the wrong place. (you dont just execute it and whoo it works)
then again, you could google it using knowledge
It's not hard to google things lol nice code unbalanced
059 (10-11-2014),AtoZ (10-14-2014),xxfatfarmxx (10-06-2014)