Raised This Month: $32 Target: $400
 8% 

[TF2] TeleportEntity not smooth in OnGameFrame


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 08-22-2014 , 15:25   [TF2] TeleportEntity not smooth in OnGameFrame
Reply With Quote #1

Basically the title says it all, but shouldn't OnGameFrame be called on every frame and thus be smooth?

Cheers
__________________
floube is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-22-2014 , 16:24   Re: [TF2] TeleportEntity not smooth in OnGameFrame
Reply With Quote #2

No, because the entity's location, as it appears to clients, is limited to how fast the client is receiving information about the entity. It's smooth for the server, but not for the client. I think.

If you need smooth motion, you should try parenting the entity to another entity, if possible. In TF2, however, you cannot parent things to players, apparently.
__________________

Last edited by ddhoward; 08-22-2014 at 16:24.
ddhoward is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 08-23-2014 , 05:41   Re: [TF2] TeleportEntity not smooth in OnGameFrame
Reply With Quote #3

If you use a physics prop and teleport velocity, it will look very smooth, but will have a slight delay depending on how much force you apply... The inertia of the object, damping, etc..
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply


Thread Tools
Display Modes

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 17:06.


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