register_corona_hook.set_cb([](const auto& hook, unsigned int id, CEntity* attachTo, unsigned char red,
unsigned char green, unsigned char blue, unsigned char alpha,
const CVector& posn, float radius, float farClip,
eCoronaType coronaType, eCoronaFlareType flaretype,
bool enableReflection, bool checkObstacles, int _param_not_used,
float angle, bool longDistance, float nearClip,
unsigned char fadeState, loat fadeSpeed, bool onlyFromBelow,
bool reflectionDelay) {
if (fade_speed == 1.0f)
return hook.get_trampoline()(id, attachTo, red, green, blue, alpha, posn, radius, farClip, coronaType,
flaretype, enableReflection, checkObstacles, _param_not_used, angle,
longDistance, nearClip, fadeState, 15.0f, onlyFromBelow, reflectionDelay);
else
return hook.call_trampoline(id, attachTo, red, green, blue, alpha, posn, radius, farClip, coronaType,
flaretype, enableReflection, checkObstacles, _param_not_used, angle,
longDistance, nearClip, fadeState, fadeSpeed, onlyFromBelow, reflectionDelay);
});