Door Trigger

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Door Trigger

Post by SirOffensivus »

Hi!

I'm kinda new to the HL2 I/O-System and i build a map to try some things out...

I've created a zombie, some weaps and a door....
I want the Zombie to make the door open when it dies...on the npc_zombie i've created a new output with OnDeath, Door01(thats the name of the door) Open 0.00....but when i kill the zombie, the door doesnt open

can someone help?

Greetz, SirOffensivus
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

Does the zombie spawn into the world on a npc_template_maker?
If so use the template_maker to give a AllSpawnedDead output. if not I dont see any reason why it shouldn't work. Have you checked you have the corret flags checked?
(edit: in object properties the tick boxes under flags tab). make sure the door gets unlocked before its told to open).
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

ah i know what the problem was:

The Moving direction was not correct

but i have another question how can i do the same but with 2 monsters...so that when both enemys are down, the door opens?

greetz
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post by Shana »

http://developer.valvesoftware.com/wiki/Math_counter
Maxvalue 2
onhitmax door open

and on the npcs
ondeath mathcountername add 1
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

nice!It works!

thx for your help guys!

If i need help again, ill post it in this thread

Greetz, SirOffensivus 8)
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

can someone tell me how to crate a button with a model (such as the combine-buttons)

In HL1 you could create a brush, tie it to a func_button and then give it a button texture, but i didnt find any button textures....

thx and greetz, SirOffensivus
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post by Neico »

well it works exactly as you just said and if you don't have button textures make your own or search for some :O
Image
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

SirOffensivus wrote:can someone tell me how to crate a button with a model (such as the combine-buttons)

In HL1 you could create a brush, tie it to a func_button and then give it a button texture, but i didnt find any button textures....

thx and greetz, SirOffensivus
What valve do is create a prop_dynamic and put an invisible button ent in front of it. When its pressed they call animation changes on the prop_dynamic.
Last edited by skidz on Fri Aug 22, 2008 11:48 pm, edited 1 time in total.
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

thx guys!
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

For an example check out the keypad and button prefabs Valve made.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

umm.. i got another question: how do i have to configure a env_sprite to show up in the game? ive tried almost all rendermodes...but it didnt show up....

can somebody help?
Blues
npc_combinegunship
npc_combinegunship
Posts: 740
Joined: Wed Feb 13, 2008 8:47 pm

Post by Blues »

Did you try World Space Glow?

Did you also put ".vmt" or ".spr" after the sprite name?
Hammer doesn't do it itself when you chose the sprite.
SirOffensivus
Vertex
Vertex
Posts: 7
Joined: Fri Aug 22, 2008 12:43 pm

Post by SirOffensivus »

thx...it was because the missing ".spr"
Post Reply