From fb511402e8e92600ff79c39925fa6bcc6d621726 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 30 Jul 2022 13:01:25 -0500 Subject: [PATCH] Added custom model support for Barney and npc_hunter + idle patrol keyvalue for hunters --- halflife2.fgd | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/halflife2.fgd b/halflife2.fgd index 36ba860..b105911 100644 --- a/halflife2.fgd +++ b/halflife2.fgd @@ -1069,8 +1069,10 @@ input SetExpressionOverride(string) : "Set facial expression override" ] -@NPCClass base(TalkNPC, PlayerCompanion) studio("models/Barney.mdl") = npc_barney : "Barney" +@NPCClass base(TalkNPC, PlayerCompanion) studioprop() = npc_barney : "Barney" [ + model(studio) : "Model" : "models/barney.mdl" + additionalequipment(choices) : "Weapons" : "weapon_pistol" = [ "weapon_pistol" : "Pistol" @@ -1235,11 +1237,19 @@ ] -@NPCClass base(BaseNPC) studio("models/hunter.mdl") = npc_hunter : +@NPCClass base(BaseNPC) studio() = npc_hunter : "A smaller, faster, strider that can pursue the player into buildings." [ + model(studio) : "Model" : "models/hunter.mdl" : "The model of this npc_hunter." + FollowTarget(target_destination) : "Strider to Follow" : "" : "The name of the strider that this hunter should follow." + NoIdlePatrol(choices) : "Patrol while idle" : 0 = + [ + 0: "Yes" + 1: "No" + ] + // Inputs input FollowStrider(target_destination) : "Sets the name of the strider that this hunter should follow."