SirTyler / BetterTeleporter

Better Teleporters for Lethal Company
5 stars 5 forks source link

[Bug] when teleporting with heavy objects speed boost #2

Open mattieFM opened 9 months ago

mattieFM commented 9 months ago

Description:

If a player is carrying very heavy items when they teleport back, when they drop the one item they are carrying then they will get a massive speed boost, that will last until they teleport again while not carrying anything heavy

Reproduction steps

1: Launch Lethal Company as a squad of any size with a teleporter and 3 steel plates and a reactor core / any other two handed large heavy item. 2: pick up 3 of the steel plates 3: target yourself on the teleporter 4: press the tp button then quickly pick up the reactor core/heavy big item 5: (you should tp) 6: step off the tp (if you drop the item while on the tp you will die of fall dmg) 7: drop the item you are holding 8: observe speed buff

mattieFM commented 9 months ago

image At a guess it is caused by these 3 lines where you set the previous last speed to <0,0> even though it might not be?

mattieFM commented 9 months ago

If you would like to, assign the issue to me and then Ill send you a PR later this week

SirTyler commented 9 months ago

Not totally sure what this issue is, as I was unable to reproduce it. Also sounds like it is occurring from the use of a normal teleporter which the mod doesn't interact with currently.

mattieFM commented 9 months ago

Hmmmm.... Ill get a video of it happening and see if I can reproduce on another computer after finals week. If you could leave this open till then <3

mattieFM commented 9 months ago

(like 15-16th)

SirTyler commented 8 months ago

Still not sure what this issue is, or if maybe the weight not being properly set (fixed in Update 1.2.2) was causing it.