Reverse velocity of player
PHP Code:
|
Re: Reverse velocity of player
Figure it out urself from here, its from a grenade from one of my plugins.
PHP Code:
|
Re: Reverse velocity of player
You need to calculate the reversed vector between a point(the pusher?) and player's origin, and you've got yourself the push velocity.
|
Re: Reverse velocity of player
There are way too many plugins that do that...
Look for knockback grenade for example... Btw, 0 x 2.0 = 0... |
Re: Reverse velocity of player
You shall consider that If a player turns on 180 degrees and You apply this command then he will be pushed in the other side.
For example if you make a ability for Warcraft mode to push all players away from you then if he turns with the face back from you then he will be pushed to you and players can use this vulberability to trick plugin. |
Re: Reverse velocity of player
Quote:
|
Re: Reverse velocity of player
Quote:
Yes, i meant this in case he will try use the other method. |
All times are GMT -4. The time now is 15:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.