trigger_teleport: fix typo that picked the wrong angles.
This commit is contained in:
parent
4a11c91d7d
commit
2d3ea1ba20
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ trigger_teleport::Touch(entity eToucher)
|
|||
if (eTarget) {
|
||||
vector endpos = eTarget.origin + [0,0,16];
|
||||
float flSpeed = vlen(eToucher.velocity);
|
||||
makevectors(eToucher.angles);
|
||||
makevectors(eTarget.angles);
|
||||
eToucher.velocity = (v_forward * flSpeed);
|
||||
eToucher.angles = eTarget.angles;
|
||||
setorigin_safe(eToucher, endpos);
|
||||
|
|
Loading…
Reference in a new issue