AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [req] Reset movement speed after teleport (https://forums.alliedmods.net/showthread.php?t=310674)

Mires 09-14-2018 11:47

[req] Reset movement speed after teleport
 
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.

Psyk0tik 09-15-2018 16:42

Re: [req] Reset movement speed after teleport
 
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).

Mires 09-17-2018 10:06

Re: [req] Reset movement speed after teleport
 
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.


All times are GMT -4. The time now is 07:23.

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