Hey,
Ive been working on locked doors and keycards, and i really want to put a keycard i have made inside a crate. I am using a item_item_crate not a prop. Any ideas how i can do this. Im very new to mapping in HL2 so this could very well be a stupid question but i have search through a few forums to sort this out myself but no luck.
1
Re: crates
Posted by Crono on Fri May 19th at 8:14pm 2006
Posted by Crono on Fri May 19th at 8:14pm 2006
I imagine you put an output on the crate (I believe those are the ones that smash to pieces right?) in the output it'd be something like "OnBreak" Spawn keycard. I'm not sure how you spawn custom items though. Perhaps it'd need to be more complex. If it doesn't work with a custom item, see if you can get that technique to work with ammo or something.
In the most complex of situations, you might just want to make a keycard object and add it to the weapon class or something. (I'm sure there's a way you can do it)
In the most complex of situations, you might just want to make a keycard object and add it to the weapon class or something. (I'm sure there's a way you can do it)
Blame it on Microsoft, God does.
Re: crates
Posted by hutchy212 on Fri May 19th at 10:13pm 2006
Posted by hutchy212 on Fri May 19th at 10:13pm 2006
Thats what i thought, i created an output but i dont understand how to get how to spawn the keycard.
Re: crates
Posted by Crono on Sat May 20th at 3:13am 2006
Posted by Crono on Sat May 20th at 3:13am 2006
You say "Spawn" then spawn the item. ... how you make the item in hammer is up to you. It could be a physics object tied with a trigger for "on touch" execute some event. I imagine you need another entity managing all the doors. To map if you have the keycard or not. You would set that value in the entity to "true" for whatever keycard and the door checks that label. The bare specifics I'm unsure of, but I believe you'd use a logic entity.
You might want to do some research on that, I don't really have time to work with it and give you a definate answer, however. I'm sure there's some tutorials floating around that have something similar that you can modify.
I should note my entity names are not exact.
Here's some tutorials:
Math Trigger
Respawning Props
Logic Case
Look at those to get yourself started. You should be able to do it with that information.
You might want to do some research on that, I don't really have time to work with it and give you a definate answer, however. I'm sure there's some tutorials floating around that have something similar that you can modify.
I should note my entity names are not exact.
Here's some tutorials:
Math Trigger
Respawning Props
Logic Case
Look at those to get yourself started. You should be able to do it with that information.
Blame it on Microsoft, God does.
Re: crates
Posted by hutchy212 on Sat May 20th at 3:49pm 2006
Posted by hutchy212 on Sat May 20th at 3:49pm 2006
Cheers for you help,
Cant figure it out so dont think im going to bother, ive done all the keycards and doors and stuff. I just fancied hidding some of the cards in crates.
Got bigger problems to sort out now.
Cant figure it out so dont think im going to bother, ive done all the keycards and doors and stuff. I just fancied hidding some of the cards in crates.
Got bigger problems to sort out now.
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.0089 seconds.

Snarkpit v6.1.0 created this page in 0.0089 seconds.

