StrataSource / Portal-2-Community-Edition

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

Barnacles eat Portal NPCs #1414

Open vrad-exe opened 1 year ago

vrad-exe commented 1 year ago

Describe the bug

HL2 barnacles eat Portal NPCs, whereas they would be expected to ignore them like with other non-organic NPCs like HL2 turrets. This results in the NPC disappearing and the barnacle spitting out human bones.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/19228201/4ce269b6-ef13-4da3-a6cf-1eed1347061e

This applies to the following entities:

Issue Map

Any map with a barnacle, e.g. d1_canals_01a

To Reproduce

  1. Open d1_canals_01a
  2. Spawn any of the above entities
  3. Have the barnacle pick them up

Operating System

Tested on Windows 10

MyGamepedia commented 1 year ago

I add here some text from the closed issue. Barnacle not raises tongue if touch npc_personality_core, unlike npc_turret_floor.

TeamSpen210 commented 1 year ago

Checking the SDK code, barnacles just have a hardcoded check for npc_turret_floor, this probably requires adding a more sophisticated bit of logic.

vrad-exe commented 1 year ago

Weirdly they also ignored security cameras, I wonder if those have something else set that makes it not pick them up?

MyGamepedia commented 1 year ago

Weirdly they also ignored security cameras, I wonder if those have something else set that makes it not pick them up?

Everything wrong with cameras because of Valve hacks for it.

MyGamepedia commented 1 year ago

On my surprise monster boxes are fine work with barnacle.

MyGamepedia commented 1 year ago

Think that should be prevented to grab by barnacle also npc_dog, npc_antlionguard, npc_combine_camera (cause crash), npc_gman, npc_ichthyosaur, npc_advisor (cause crash).

MyGamepedia commented 1 year ago

Found that it's fine work if npc_barnacle like someone, but still not raises tongue. 20230626132824_1