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

[req] Reset movement speed after teleport


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mires
Junior Member
Join Date: Jul 2006
Old 09-14-2018 , 11:47   [req] Reset movement speed after teleport
Reply With Quote #1

Hi,

i am runnung a jump server (TF2).

Ppls flying a round trying to beat jumps and get teleported back to start if they fail.

Sometimes they have still speed in a direction and fly somwhere after a teleport.

Can someone make a plugin to reset players current speed after he get teleported if its above 400?

Example: If faster than 400 slow down to 200

A cvar for on / off would be great too, some maps uses teleports in jumps.
Mires is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 09-15-2018 , 16:42   Re: [req] Reset movement speed after teleport
Reply With Quote #2

You can just edit the plugin that teleports them and set the velocity parameter to view_as<float>({0.0, 0.0, 0.0}).

Like this:

PHP Code:
TeleportEntity(clientNULL_VECTORNULL_VECTORview_as<float>({0.00.00.0})); 
Or like this:

PHP Code:
float flVelocity[3] = {0.00.00.0};
TeleportEntity(clientNULL_VECTORNULL_VECTORflVelocity); 
This would make the player face the same direction and angles, and when they get teleported, they will simply fall to the ground (if teleported to a position in midair) or just not get pushed back or forward (if teleported to the ground).
__________________
AFK like JFK

Last edited by Crasher_3637; 09-15-2018 at 16:42.
Crasher_3637 is offline
Mires
Junior Member
Join Date: Jul 2006
Old 09-17-2018 , 10:06   Re: [req] Reset movement speed after teleport
Reply With Quote #3

its not a plugin.

Its a trigger_teleport with a info_teleport_destination.

Its already build on the maps.


So a plugin should set the movement speed to somethink about 200 for a little short time to slow down the player becouse he otherwise fly into a teleport again and get ported to the destination and fly again into the teleport, and again and again and again.

Would be nice to have a plugin to prevent this to happen.
Mires 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 01:31.


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