TrinityCore/TrinityCore — Issue #3508: Fixing Fishing-bobber-angle
Author: Loginisalreadytaken
Created: 2011-10-14 22:53:47+00:00
State: open

Continuing from https://github.com/TrinityCore/TrinityCore/pull/2727 since that patch messed up more than it fixed.

Great, now it takes up to 15 times to hit a school.

You can compare this to the following:
Let's say a certain quest item should have a 50% drop chance and currently is at 99.999%. The solution is to lower this rate, so you change it to 0.001%. It's been lowered (success!), but still equally far from 50% as before. The difference is that now, it's nearly impossible to complete the quest.

Anyway, here's a suggestion:
angle = 35.0f * pow(sin(rand_norm() * 2.0f * M_PI), 3);

The average positive or negative sin value is around 0.25.. times 35 to get the angle.