From 3b6b4e096faca3ffa805e8cab14954efe2216654 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Tue, 17 Dec 2019 18:34:56 -0600 Subject: [PATCH] Added custom model support to item_health/suitcharger --- halflife2.fgd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/halflife2.fgd b/halflife2.fgd index 0946500..5f26272 100644 --- a/halflife2.fgd +++ b/halflife2.fgd @@ -4165,10 +4165,12 @@ // model(studio) : "Model" : "models/items/item_item_crate.mdl" : "The model of this item_item_crate. Only works when this crate's appearance is set to use a custom model." //] -@PointClass base(Targetname, Angles, Parentname, RenderFields, BaseFadeProp) studio( "models/props_combine/health_charger001.mdl" ) = item_healthcharger : "Health Charger" +@PointClass base(Targetname, Parentname, Angles, RenderFields, Studiomodel, BaseFadeProp) studioprop() = item_healthcharger : "Health Charger" [ // dmdelay(integer) : "Deathmatch recharge delay" : 0 - _minlight(string) : "Minimum light level" + //_minlight(string) : "Minimum light level" + + model(studio) : "Model" : "models/props_combine/health_charger001.mdl" Charge(integer) : "Juice" : 0 : "Overrides the amount of suit power this charger contains. Use 0 for the default charge, which is usually the maximum juice. Use -1 if you want the charger to start empty." MaxCharge(integer) : "Max Juice" : 0 : "Overrides the maximum suit power this charger contains. Use 0 for the default charge, 75." @@ -4188,10 +4190,12 @@ output OnPlayerUse(void) : "Fired when the player +USEs this charger." ] -@PointClass base(Targetname, Angles, Parentname, RenderFields, BaseFadeProp) studio( "models/props_combine/suit_charger001.mdl" ) = item_suitcharger : "Battery recharger" +@PointClass base(Targetname, Parentname, Angles, RenderFields, Studiomodel, BaseFadeProp) studioprop() = item_suitcharger : "Battery recharger" [ // dmdelay(integer) : "Deathmatch recharge delay" : 0 - _minlight(string) : "Minimum light level" + //_minlight(string) : "Minimum light level" + + model(studio) : "Model" : "models/props_combine/suit_charger001.mdl" Charge(integer) : "Juice" : 0 : "Overrides the amount of suit power this charger contains. Use 0 for the maximum juice. (which is normally 75) Use -1 if you want the charger to start empty." MaxCharge(integer) : "Max Juice" : 0 : "Overrides the maximum suit power this charger contains. Use 0 for the default charge, which varies based on this entity's spawnflags. (Normal = 75, Citadel = 500, Kleiner = 25)"