Source-Python-Dev-Team / Source.Python

This plugin aims to use boost::python and create an easily accessible wrapper around the Source Engine API for scripter use.
http://forums.sourcepython.com
GNU General Public License v3.0
163 stars 31 forks source link

CS:S - Teleport doesnt apply Vector #372

Closed Frag1337 closed 3 years ago

Frag1337 commented 3 years ago

Hello,

when using following snippet while being on a team/alive on the server:

from filters.players import PlayerIter
from mathlib import Vector

TELEPORT_ORIGIN = Vector(2500, -2500, -1000)
TELEPORT_ANGLE = Vector(90, 0, 0)
TELEPORT_VELOCITY = Vector(0, 0, 2500)

for player in PlayerIter():
    player.teleport(TELEPORT_ORIGIN, TELEPORT_ANGLE, TELEPORT_VELOCITY)

I always get teleported to the coordinates 0 0 0. The angle and velocity vector also doesnt do anything then 0 0 0. The snippet works as intended on windows srcds. (Teleports me to the right coordinate and applies angle + velocity)

sp info

IMPORTANT: Please copy the full output.
--------------------------------------------------------
Checksum      : 33d8aa51f81ad4cd2e156c8fc993b835
Date          : 2020-12-14 19:20:44.844946
OS            : Linux-5.4.0-58-generic-x86_64-with-debian-bullseye-sid
Game          : css
SP version    : 702
Github commit : 99ed4dca7b439f5fc4ade054355767b23af497df
Server plugins:
   00: Source.Python, (C) 2012-2020, Source.Python Team.
SP plugins:
   00: test
--------------------------------------------------------

Not sure if its helpful, but I've used this fix to make Source.Python work:

https://forums.sourcepython.com/viewtopic.php?p=13976#p13976 Method 2