Talk:Item item crate

From Valve Developer Community
Revision as of 17:47, 31 December 2008 by Yar Kramer (talk | contribs) (NPCs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Something I've always wondered is how to make an item_item_crate spawn a custom dynamic amount. Let's say the player isn't allowed to have grenades yet, and only has the pistol, and you want the crates to provide only a fair amount of medkits and pistol ammo. I only see the crate being able to contain entity types, and not specific named entities. --Andreasen 13:09, 19 Mar 2006 (PST)

Like using item_dynamic_resupply? --Darthkillyou 13:02, 5 May 2008 (PDT)

Multiplayer

Anybody know how to get this working in multiplayer? When items are spawned, they cannot be picked up. Will do code changes if required. --Daedalus 01:33, 26 Jan 2007 (PST)

NPCs

Purely in the interest of Science (read: I just wanted to see what would happen), I placed a headcrab in an item-crate, and then smashed it against the floor with the gravity gun. It spawned a headcrab at the same angles as the box, which meant that it was at a weird angle, and was sort of stuck halfway through the floor when it walked and spun around like crazy when it leaped. So ... just a caveat for anyone who gets brilliant ideas. ;) —Yar Kramer 09:47, 31 Dec 2008 (PST)