mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-02-21 03:21:50 +00:00
Fixing Homing Missile of RL
This commit is contained in:
parent
d4c238aecd
commit
3baa6a5e7e
1 changed files with 4 additions and 2 deletions
|
@ -676,7 +676,9 @@ void G_RunMissile( gentity_t *ent ) {
|
|||
else {
|
||||
VectorCopy( tr.endpos, ent->r.currentOrigin );
|
||||
}
|
||||
|
||||
if ( ent->s.weapon == WP_ROCKET_LAUNCHER ) {
|
||||
Missile_Smooth_H(ent,origin,&tr);
|
||||
}
|
||||
trap_LinkEntity( ent );
|
||||
|
||||
if ( tr.fraction != 1 ) {
|
||||
|
@ -1044,7 +1046,7 @@ void rocket_think( gentity_t *ent )
|
|||
VectorAdd(dir, dir2, dir);
|
||||
VectorNormalize(dir);
|
||||
VectorCopy( start, ent->s.pos.trBase );
|
||||
VectorScale( dir, 400, ent->s.pos.trDelta );
|
||||
VectorScale( dir, 650, ent->s.pos.trDelta );
|
||||
SnapVector( ent->s.pos.trDelta );
|
||||
VectorCopy (start, ent->r.currentOrigin);
|
||||
VectorCopy (dir, ent->r.currentAngles);
|
||||
|
|
Loading…
Reference in a new issue