shavitush / bhoptimer

A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
https://timer.shav.it
GNU General Public License v3.0
230 stars 94 forks source link

Styles+End zone #219

Closed WhyFaust closed 8 years ago

WhyFaust commented 8 years ago

If to change style on a end zone, then to be set up a new record over time 0.0.

Technoblazed commented 8 years ago

That only happens if you have no start zone.

WhyFaust commented 8 years ago

The lie, zone of start costs. But all the same so occurs.

WhyFaust commented 8 years ago

And, when you write !r, is just nullified the timer and on republic doesn't throw, + so it is possible to bag at a record.

shavitush commented 8 years ago

Honestly, I don't understand what you write.. If possible - get someone to write English for you or use your native language and I'll ask Russian friends to translate it for me :/

Technoblazed commented 8 years ago

Are you using google translate by any chance?

WhyFaust commented 8 years ago

xD http://www.translate.ru/

Ну вот по-русски: Когда меняешь стиль на зоне финиша,то ставится новый рекорд с временем 0.0. А ещё,когда пишешь !r, то просто обнуляется таймер,а на респ не кидает, + так багать можно рекорд.

shavitush commented 8 years ago

now it makes more sense lol, I'll check it

shavitush commented 8 years ago

cant replicate https://www.youtube.com/watch?v=3HuRJ5Ym_U0&feature=youtu.be

WhyFaust commented 8 years ago

https://www.youtube.com/watch?v=Hxs-nhcP9Uc&feature=youtu.be

shavitush commented 8 years ago

any errors?

WhyFaust commented 8 years ago

L 09/11/2016 - 14:34:43: [SM] Exception reported: Divide by zero L 09/11/2016 - 14:34:43: [SM] Blaming: shavit-core.smx() L 09/11/2016 - 14:34:43: [SM] Call stack trace: L 09/11/2016 - 14:34:43: [SM] [1] Line 1342, shavit-core.sp::OnPlayerRunCmd() ???

shavitush commented 8 years ago

Considering this is line 1342, I think something is wrong with the version on your computer..

float fSpeed_New = (SquareRoot(Pow(fSpeed[0], 2.0) + Pow(fSpeed[1], 2.0)));

if(fSpeed_New > 0.0)
{
    float fScale = view_as<float>(gA_StyleSettings[gBS_Style[client]][fVelocityLimit]) / fSpeed_New; // <<<< this line

    PrintToChat(client, "%.02f / %.02f = %.02f", gA_StyleSettings[gBS_Style[client]][fVelocityLimit], fSpeed_New, gA_StyleSettings[gBS_Style[client]][fVelocityLimit] / fSpeed_New);

    if(fScale < 1.0)
    {
        ScaleVector(fSpeed, fScale);
        TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, fSpeed);
    }
}
WhyFaust commented 8 years ago

1341:

        float fSpeed_New = SquareRoot(Pow(fSpeed[0], 2.0) + Pow(fSpeed[1], 2.0));
        float fScale = gA_StyleSettings[gBS_Style[client]][fVelocityLimit] / fSpeed_New;

        if(fScale < 1.0)
        {
            ScaleVector(fSpeed, fScale);

            TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, fSpeed);
        }
shavitush commented 8 years ago

I'm not sure if you noticed, but the code you have is old

Technoblazed commented 8 years ago

Download the latest code, update your requirements, and recompile.

Technoblazed commented 8 years ago

@shavitush , interested in Updater support after beta?

shavitush commented 8 years ago

not really, i want everything to be opt-in

WhyFaust commented 8 years ago

latest code))) https://www.youtube.com/watch?v=H0xf0gEH9lY&feature=youtu.be

shavitush commented 8 years ago

Can anyone else check if it also happens to them? I can't replicate..

Technoblazed commented 8 years ago

Didn't happen for me

WhyFaust commented 8 years ago

an what that in a config at me, or because of my bhop?

Nickelony commented 8 years ago

Didn't happen to me either.