From 211aa5e911d1d92d1e7f25a998bc12d1902afe00 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Tue, 17 Dec 2019 10:37:34 -0600 Subject: [PATCH] Made item_ammo_crate use the empty model and support skin changing --- halflife2.fgd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/halflife2.fgd b/halflife2.fgd index ed56b04..653746e 100644 --- a/halflife2.fgd +++ b/halflife2.fgd @@ -4091,7 +4091,7 @@ ] ] -@PointClass base(Targetname, Parentname, Angles, BaseFadeProp) studio("models/items/ammocrate_rockets.mdl") = item_ammo_crate : "Ammo Crate" +@PointClass base(Targetname, Parentname, Angles, RenderFields, BaseFadeProp) studio("models/items/ammocrate_empty.mdl") = item_ammo_crate : "Ammo Crate" [ AmmoType(choices) : "Ammo Type" : 0 = [ @@ -4108,11 +4108,15 @@ 10 : "S.L.A.M." 11 : "Empty" ] + + skin(integer) : "Skin" : 0 : "The ''Empty'' ammo crate can use multiple skins based on other crates. Changing the skin might be reflected in the viewport, but it will only apply to the empty ammo crate." // Inputs input Kill(void) : "Remove the ammo crate" output OnUsed(void) : "Fires when +used by the player." output OnAmmoTaken(void) : "Fires the instant ammo is taken from this crate." + + input Skin(integer) : "Changes the model skin to the specified number." ] @PointClass base(BasePropPhysics, Targetname, Angles, DamageFilter, BaseFadeProp) studioprop() = item_item_crate : "Item Crate" // studio("models/items/item_item_crate.mdl")