WEAPON_ROCKETLAUNCHER: tweak the start position of the rocket a little (fluff)
This commit is contained in:
parent
f9798b48f9
commit
297d66e9f9
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue