View Single Post
Author Message
scorpius2k1
Senior Member
Join Date: Feb 2016
Old 05-06-2019 , 13:36   Push Entity In Opposite Direction
Reply With Quote #1

Using TeleportEntity, how can one go about pushing an entity in the opposite direction it was traveling while keeping it's current origin, angle, & velocity in mind? The "bounce back" should have the same effect as if you were to throw a barrel or another object against the wall or any other surface in the game.

PHP Code:
stock void PushEntityBack(int iEntity) {


Thanks in advance!
__________________
{__ PIRATES COVE __} ● HIGH-KILL Community | Stats ●
Half-Life 2: Deathmatch
66.151.244.149:27016 => CONNECT

Last edited by scorpius2k1; 05-06-2019 at 13:37.
scorpius2k1 is offline