fix for controlled killstreaks

This commit is contained in:
Diavolo 2022-08-06 00:00:58 +02:00
parent 00a944cf5b
commit d7290e18f0
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -177,7 +177,8 @@ namespace Components
{ {
auto* result = Game::Weapon_RocketLauncher_Fire(ent, weaponIndex, spread, wp, gunVel, lockParms, magicBullet); auto* result = Game::Weapon_RocketLauncher_Fire(ent, weaponIndex, spread, wp, gunVel, lockParms, magicBullet);
if (ent->client != nullptr && BGRocketJump.get<bool>()) if (ent->client != nullptr && BGRocketJump.get<bool>() &&
wp->weapDef->inventoryType != Game::WEAPINVENTORY_EXCLUSIVE)
{ {
const auto scale = Movement::BGRocketJumpScale.get<float>(); const auto scale = Movement::BGRocketJumpScale.get<float>();
ent->client->ps.velocity[0] += (0.0f - wp->forward[0]) * scale; ent->client->ps.velocity[0] += (0.0f - wp->forward[0]) * scale;