StrataSource / Portal-2-Community-Edition

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

`SetRelationship` is broken #1516

Open MyGamepedia opened 10 months ago

MyGamepedia commented 10 months ago

Describe the bug

I'm not sure is it for only npc_enemyfinder or not, but in d3_c17_10a we have scene there the combine mortar shoot at the car, which demonstrates huge power of this gun. In P2CE this not happen, instead of this - the mortar shoot at player. It also should shoot at wall to destroy the building later, but this also not happen.

P2CE.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/d7dc176d-5561-47b3-8716-9df3620011eb

Half Life 2.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/25a37c01-62d3-4971-888f-a95d2fc0b35f

This is so because instead of ai_relationship this moments use input SetRelationship to force npc_enemyfinder (the eyes of the mortar) kill the bullseye that launch some scripts here.

bandicam 2023-08-28 13-02-34-398

This probably related not only to Half life 2 compatibility.

To Reproduce

  1. Open d3_c17_10a.
  2. Play until the scene with the car.
  3. The mortar do nothing with the car.

Operating System

Any.