StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
150 stars 3 forks source link

Feature: Cvar that return old slime behavior #1382

Open MyGamepedia opened 1 year ago

MyGamepedia commented 1 year ago

Which component should be improved?

Gameplay

Describe your suggestion

In Portal 2 slime not allow for player to jump and slows down speed of player. In Half Life 2/Portal it's work like water. Thanks it in Portal you can safe you're life if was dropped in pool, but it's impossible in P2CE. Also it's hinders gameplay in Half Life 2 and episodes, because maps wasn't ever include Portal 2 mechanic version. This is why we should have cvar that can enable old slime behavior, for example sv_old_slime_behavior 1 or 0 (0 by default).

Portal.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/7458ac26-97cf-4047-8428-8cf8adc2142c

P2CE.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/2d59c5ba-c9a1-429b-ac5a-6ba08e38e828

Half Life 2: Episode 2.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/03897f15-6c36-4559-b18e-3604c4d21abc

P2CE.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/5ccb4714-5ff8-48ea-98e7-328ca4a02c3a

Hikkikira commented 1 year ago

Yes. I think we should call it sv_p2_slime_behavior instead, (default to 1) (0 = hl2/p1 behavior)

vrad-exe commented 1 year ago

What actually differentiates "slime" and "water" in the engine, is it the surfaceprop? If so this might be a result of changes to portal 2's surfaceprops file, not a code change

Hikkikira commented 1 year ago

hl2 water and p2 goo just behave like water. i'm pretty sure puzzlemaker goo does too, it just additionally pushes you around. it's only the hl2/p1 goo that drowns you (when it didn't in hl2/p1)

vrad-exe commented 1 year ago

Okay, I understand that, but what specifically about the hl2/p1 goo makes those be considered "slime" while the others are considered "water"?

MyGamepedia commented 1 year ago

Okay, I understand that, but what specifically about the hl2/p1 goo makes those be considered "slime" while the others are considered "water"?

$compileslime parameter.

vrad-exe commented 1 year ago

Why is that a thing...does slime behave any differently than water in HL2?

TeamSpen210 commented 1 year ago

It gives it CONTENTS_SLIME instead of CONTENTS_WATER. Primarily it makes it use green splash effects instead of the regular water ones. The $surfaceprop I think would change the behaviour? Not sure.