StrataSource / Portal-2-Community-Edition

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

Flammable props can kill friendly to player NPCs #1520

Open MyGamepedia opened 10 months ago

MyGamepedia commented 10 months ago

Describe the bug

Some models are flammable, that means that they can be ignited with some damage, for example - oildrum001_explosive.mdl ignites after 2 pistol shots and explodes after that. This function create entityflame at models center, this entity damages everything that touches it. In Half Life 2 we can't kill friendly to player NPCs, this prevents scene breaks and softlocks, this is why barrel exploading by player not hit friendly to player NPCs. However - entityflame can. Thanks this we can kill Gman in d1_town_05, or softlocking, for example in d1_canals_05 by killing the woman, that open the gate that prevent to take airboat before she explain everything.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/d6660dcd-2aba-4cc1-ab2f-fe5b2bd05cbb

Half-Life 2 Screenshot 2023 08 29 - 16 25 23 64

Expected that entityflame will not damage friendly to player NPCs if was created by object that was ignited by player.

To Reproduce

  1. Open any map.
  2. Enter in console sv_cheats 1; give weapon_pistol; use weapon_pistol; ent_create npc_gman; prop_physics_create /props_c17/oildrum001_explosive.mdl.
  3. Place the barrel near Gman like in the video.
  4. Ignite it.
  5. Gman dies from cringe (no).

Operating System

Any.