StrataSource / Portal-2-Community-Edition

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

`prop_physics_multiplayer` does not cast shadows #1500

Open MyGamepedia opened 10 months ago

MyGamepedia commented 10 months ago

Describe the bug

prop_physics_multiplayer main difference from prop_physics_override and prop_physics is that it collides with everything but not with player, I use prop_physics_multiplayer for junk and small objects, so that they do not interfere with movement of players. However - I found that prop_physics_multiplayer don't cast shadows in Portal 2 and P2CE, unlike Portal/Half Life 2/Source SDK 2013, I even can't enable it with output EnableShadow. Maybe not really bug, but would be nice to return shadow for prop_physics_multiplayer. Portal.

Portal Screenshot 2023 08 13 - 15 45 31 55

P2CE.

Portal 2 Community Edition Screenshot 2023 08 13 - 15 21 26 74

Issue Map

Any technically, levels that use prop_physics_multiplayer.

To Reproduce

  1. Open any map where shadow_control don't use All Shadows Disabled 1.
  2. Enter in console ent_create prop_physics_multiplayer model "models/props/reflection_cube.mdl".
  3. Pay attention that created prop have no shadow.
  4. Try to enable shadow with ent_fire prop_physics_multiplayer enableshadow.
  5. Try to find shadow from created prop.

Operating System

Any.