Raised This Month: $12 Target: $400
 3% 

TeleportEntity not teleporting players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xm3kilo
Member
Join Date: Jan 2018
Old 12-30-2018 , 05:02   TeleportEntity not teleporting players
Reply With Quote #1

Hey guys,

I have a function that teleports a player, works perfectly, code is flawless. However..
There seems to be a big where if a player is stuck inside an object such as a normal brush, in a falling motion, TeleportEntity() does nothing and has no feedback.

Any ideas? Is this a known issue? I've tried setting the players velocity before teleporting to no avail.

Cheers
xm3kilo is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-30-2018 , 05:08   Re: TeleportEntity not teleporting players
Reply With Quote #2

What game? Show code.
Bacardi is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-30-2018 , 06:27   Re: TeleportEntity not teleporting players
Reply With Quote #3

CS:GO

Code:
TeleportEntity(target, pos, NULL_VECTOR, NULL_VECTOR);
Simple TeleportEntity(), works for everything except when the player gets stuck in something as they fall / tp there

Last edited by xm3kilo; 12-30-2018 at 06:27.
xm3kilo is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 12-30-2018 , 06:42   Re: TeleportEntity not teleporting players
Reply With Quote #4

Quote:
Originally Posted by xm3kilo View Post
CS:GO

Code:
TeleportEntity(target, pos, NULL_VECTOR, NULL_VECTOR);
Simple TeleportEntity(), works for everything except when the player gets stuck in something as they fall / tp there
You already told us that there's a problem with TeleportEntity so when you're asked to show the code, showing only TeleportEntity parameters does not help.
Show us the whole function where you're calling TeleportEntity and if there's any other functions which are calling that function.
Otherwise I don't think anyone can help you.
__________________
Rohanlogs is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-30-2018 , 06:43   Re: TeleportEntity not teleporting players
Reply With Quote #5

...this isn't code specific, it's engine / something else related.

All there is is a float vector of a location and the TeleportEntity.

Dunno how this is so hard to understand.
xm3kilo is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-30-2018 , 09:42   Re: TeleportEntity not teleporting players
Reply With Quote #6

Can you create a basic script that teleports players to a stuck position, then attempts to teleport them out later and post it? it seems to be hard to reproduce unless you have an exact instance you know it's bugging out on.

*Edit: for a specific map of course.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.

Last edited by backwards; 12-30-2018 at 09:47.
backwards is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-30-2018 , 10:02   Re: TeleportEntity not teleporting players
Reply With Quote #7

...maybe map have thick wall or invisble player clip etc.
Bacardi is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-30-2018 , 10:32   Re: TeleportEntity not teleporting players
Reply With Quote #8

Yeah, we can replicate it on multiple maps that do a specific thing, player walks into a teleport as they're moving / falling, and then gets teleported INTO the object (ever so slightly) and no amount of TeleportEntity will get them out.

It seems to me it's an issue with moving whilst teleporting.

The object they get stuck in is a normal brush.. But still, thickness shouldn't matter.. Should it? They just teleport regardless

it seems
xm3kilo is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-30-2018 , 10:53   Re: TeleportEntity not teleporting players
Reply With Quote #9

should be able to fix this by setting a velocity of (0,0,0) when teleporting the player
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-30-2018 , 21:16   Re: TeleportEntity not teleporting players
Reply With Quote #10

Quote:
Originally Posted by 1337norway View Post
should be able to fix this by setting a velocity of (0,0,0) when teleporting the player
Yeah tried that, but I think the game still thinks they're in their previous state. Wonder if there's a flag or something
xm3kilo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode