Facepunch / garrysmod-issues

Garry's Mod issue tracker
147 stars 56 forks source link

Hammer: Duplicated output names in UI #5268

Closed TIMONz1535 closed 2 years ago

TIMONz1535 commented 2 years ago

Details

halflife2.fgd has duplicated class inheritances. Because of this, the outputs is displayed duplicated. It seems that for the engine, the last declared output overwrites all the previous ones with the same name. Maybe I'm wrong. The Half-Life 2 Hammer editor has same issue.

@BaseClass base(BaseNPC ) = RappelNPC
@BaseClass base(BaseNPC, RappelNPC) = BaseCombine
@NPCClass base(BaseNPC,RappelNPC) studio("models/Police.mdl") = npc_metropolice : "MetroPolice"

изображение

@BaseClass base(BaseNPC) = TalkNPC
@BaseClass base(BaseNPC) = PlayerCompanion
@NPCClass base(BaseNPC,Parentname, TalkNPC, PlayerCompanion ) studio() = npc_citizen : "Citizen"
@NPCClass base(TalkNPC, BaseNPC, PlayerCompanion) studio("models/Barney.mdl") = npc_barney : "Barney"
@NPCClass base(BaseNPC, TalkNPC, PlayerCompanion) studio() = npc_vortigaunt : "Vortigaunt"
@NPCClass base(TalkNPC,Parentname, PlayerCompanion) studio() = npc_alyx : "Alyx"

изображение

Steps to reproduce

Create an npc_vortigaunt in Hammer and check its thrice-declared outputs.

robotboy655 commented 2 years ago

Should be fixed on dev beta and in the next game update.