WEAPON_ROCKETLAUNCHER: tweak the start position of the rocket a little (fluff)

This commit is contained in:
Marco Cawthorne 2023-04-30 11:25:12 -07:00
parent f9798b48f9
commit 297d66e9f9
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -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;