CS:S BigPolishAutostrafer

Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
Код:
static float CircleYaw = 0.f, OldYaw = 0.f;
void BigPolishAutostrafer(CUserCmd* pCmd, BasePlayer* LocalPlayer)
{
   if (LocalPlayer->m_Movetype != MOVETYPE_WALK) return;

   auto Velocity = LocalPlayer->m_vecVelocity();
   Velocity.z = 0;

   static bool Switch = false;

   float SwitchFloat = (Switch) ? 1.f : -1.f;
   Switch = !Switch;

   static bool in_strafing = false;

   if ((GetAsyncKeyState('V') & 0x8000) && g_Cvars.Miscellaneous.CircleStrafe)
   {
     float tmp = GetDegreeFromVelocity(Velocity.Length2D());
     CircleYaw = g_Stuff.GuwopNormalize(CircleYaw + tmp);

     float v14 = GetVelocityYawStep(Velocity, tmp);
     float tickrate = 1 / g_pGlobals->interval_per_tick;

     if (v14 != 0.f) CircleYaw += ((g_pGlobals->interval_per_tick * tickrate) * v14) * v14;

     g_Stuff.viewangles_old.y = g_Stuff.GuwopNormalize(CircleYaw);
     pCmd->sidemove = -450.f;
     return;
   }

   if (LocalPlayer->m_fFlags() & FL_ONGROUND) return;

   if (pCmd->forwardmove > 0.f) pCmd->forwardmove = 0.f;

   auto StrafeAngle = RAD2DEG(atan(15.f / Velocity.Length2D()));

   if (StrafeAngle > 90.f) StrafeAngle = 90.f;
   else if (StrafeAngle < 0.f) StrafeAngle = 0.f;

   auto YawDelta = g_Stuff.GuwopNormalize(g_Stuff.viewangles_old.y - OldYaw);
   OldYaw = g_Stuff.viewangles_old.y;

   if (YawDelta > 0.f) pCmd->sidemove = 450.0f;
   else if (YawDelta < 0.f) pCmd->sidemove = 450.f;

   auto AbsYawDelta = abs(YawDelta);

   if (AbsYawDelta <= StrafeAngle || AbsYawDelta >= 30.f)
   {
     QAngle VelocityAngles;
     VectorAngles(Velocity, VelocityAngles);

     auto VelocityAngleYawDelta = g_Stuff.GuwopNormalize(g_Stuff.viewangles_old.y - VelocityAngles.y);
     auto VelocityDegree = 15.f;

     if (VelocityAngleYawDelta <= VelocityDegree || Velocity.Length2D() <= 15.f)
     {
       if (-(VelocityDegree) <= VelocityAngleYawDelta || Velocity.Length2D() <= 15.f)
       {
         g_Stuff.viewangles_old.y += (StrafeAngle * SwitchFloat);
         pCmd->sidemove = 450.f * SwitchFloat;
       }
       else
       {
         g_Stuff.viewangles_old.y = VelocityAngles.y - VelocityDegree;
         pCmd->sidemove = 450.f;
       }
     }
     else
     {
       g_Stuff.viewangles_old.y = VelocityAngles.y + VelocityDegree;
       pCmd->sidemove = -450.f;
     }
   }

   pCmd->buttons &= ~(IN_MOVELEFT | IN_MOVERIGHT | IN_FORWARD | IN_BACK);

   if (pCmd->sidemove <= 0.f) pCmd->buttons |= IN_MOVELEFT;
   else pCmd->buttons |= IN_MOVERIGHT;

   if (pCmd->forwardmove <= 0.f) pCmd->buttons |= IN_BACK;
   else pCmd->buttons |= IN_FORWARD;
}
gift from gopnix wrong autostrafer that supposed to be perfect

for perfect u need reverse gamemovement have fun :-)
 
Забаненный
Статус
Оффлайн
Регистрация
14 Мар 2018
Сообщения
8
Реакции[?]
0
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Cool
 
              ru p2cs > all                      
Разработчик
Статус
Оффлайн
Регистрация
19 Авг 2016
Сообщения
1,579
Реакции[?]
1,963
Поинты[?]
133K
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
traitcore nice brain, reversing opensource game
i sended this to trait xD he said you need think what said

this game not "open-source" and source sdk2007 leaked is not full xDD nice trashtalk

and u saying information but don't provide any proof because u not sure and want look smart :P and u hope i will don't ask any questions about this

and learn english ur understanding of words wrong

"nice brain"
 
              ru p2cs > all                      
Разработчик
Статус
Оффлайн
Регистрация
19 Авг 2016
Сообщения
1,579
Реакции[?]
1,963
Поинты[?]
133K
and learn english ur understanding of words wrong
i sended this to trait xD he said you need think what said
you are traitc0re, nice english btw

this game not "open-source" and source sdk2007 leaked is not full xDD nice trashtalk
ye but theres full css sources (not only css but whatever)

and u saying information but don't provide any proof because u not sure and want look smart :P and u hope i will don't ask any questions about this
cuz everyone who can code knows it?
 
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
you are traitc0re, nice english btw


ye but theres full css sources (not only css but whatever)


cuz everyone who can code knows it?
im not traitc0re and im italian but he is my friend

"cuz everyone who can code knows it?" u confrim this game not open-source "ye" and now say everyone knows this open-source xD

and for css v34 this not full but u pasting from hack sources so u never see this xD if u want send me message when trait come online i will ask him for proof this not full
 
              ru p2cs > all                      
Разработчик
Статус
Оффлайн
Регистрация
19 Авг 2016
Сообщения
1,579
Реакции[?]
1,963
Поинты[?]
133K
im not traitc0re and im italian but he is my friend

"cuz everyone who can code knows it?" u confrim this game not open-source "ye" and now say everyone knows this open-source xD

and for css v34 this not full but u pasting from hack sources so u never see this xD if u want send me message when trait come online i will ask him for proof this not full
you should learn english to understand me.
 
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
you should learn english to understand me.
traitcore nice brain, reversing opensource game
u say that css v34 is open-source



u agree this not open-source and saying there is on somewhere css v34 sources without proof again xD (i guess u talk about hl2sdk2005 or ssdk2007) i say to u this not same as css v34 sources (note u talk about full game sources not sdk) and i can proof this and u say i don't understand u xD nice trashtalk
 
              ru p2cs > all                      
Разработчик
Статус
Оффлайн
Регистрация
19 Авг 2016
Сообщения
1,579
Реакции[?]
1,963
Поинты[?]
133K
u say that css v34 is open-source



u agree this not open-source and saying there is on somewhere css v34 sources without proof again xD (i guess u talk about hl2sdk2005 or ssdk2007) i say to u this not same as css v34 sources (note u talk about full game sources not sdk) and i can proof this and u say i don't understand u xD nice trashtalk
i sait "ye" with sarcasm ni66a, theres full css sources (orangebox but anyway) and many structs/classes is same and its enough to get everything u need.

why u need to reverse gamemovement then?

seems that some1 gave u spoonfeed but u don't really understand anything
 
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
i sait "ye" with sarcasm ni66a, theres full css sources (orangebox but anyway) and many structs/classes is same and its enough to get everything u need.

why u need to reverse gamemovement then?

seems that some1 gave u spoonfeed but u don't really understand anything
steam css gamemovement is different

and this code for css v34 not steam css

and if you reversing u sure that ur code is 100% perfect sdk could have differences

btw nice english "theres full css sources"

and about what spoonfed u talking if i was saying only that sdk is different xD
 
              ru p2cs > all                      
Разработчик
Статус
Оффлайн
Регистрация
19 Авг 2016
Сообщения
1,579
Реакции[?]
1,963
Поинты[?]
133K
steam css gamemovement is different

and this code for css v34 not steam css

and if you reversing u sure that ur code is 100% perfect sdk could have differences

btw nice english "theres full css sources"

and about what spoonfed u talking if i was saying only that sdk is different xD
oh my fucking god, where did you see that im saying about STEAM CSS???
please delete ur profile from this forum. u're too bad for it
 
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2018
Сообщения
25
Реакции[?]
12
Поинты[?]
0
Сверху Снизу