From 297d66e9f983b685df834995c38129445205fa08 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sun, 30 Apr 2023 11:25:12 -0700 Subject: [PATCH] WEAPON_ROCKETLAUNCHER: tweak the start position of the rocket a little (fluff) --- src/shared/w_rocketlauncher.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/w_rocketlauncher.qc b/src/shared/w_rocketlauncher.qc index 78644c4..d397e3b 100644 --- a/src/shared/w_rocketlauncher.qc +++ b/src/shared/w_rocketlauncher.qc @@ -126,11 +126,12 @@ w_rocketlauncher_primary(player pl) Weapons_MakeVectors(pl); entity rocket = spawn(); setmodel(rocket, "models/rocket.mdl"); - setorigin(rocket, Weapons_GetCameraPos(pl) + (v_forward * 16)); + setorigin(rocket, Weapons_GetCameraPos(pl) + (v_forward * 16) + (v_up * -5)); rocket.owner = pl; rocket.movetype = MOVETYPE_FLYMISSILE; rocket.solid = SOLID_BBOX; rocket.velocity = (pl.WaterLevel() >= WATERLEVEL_SUBMERGED) ? (v_forward * 100): (v_forward * 1000); + rocket.velocity += (v_up * -5); rocket.angles = vectoangles(rocket.velocity); rocket.avelocity[2] = 10; rocket.touch = Rocket_Touch;