trigger_teleport: fix typo that picked the wrong angles.

This commit is contained in:
Marco Cawthorne 2023-04-16 11:55:11 -07:00
parent 4a11c91d7d
commit 2d3ea1ba20
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 1 additions and 1 deletions

View File

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