Power, on - off + a trigger Created 18 years ago2005-10-08 07:22:45 UTC by Madcow Madcow

Created 18 years ago2005-10-08 07:22:45 UTC by Madcow Madcow

Posted 18 years ago2005-10-08 07:22:45 UTC Post #140259
I know that this has ben posted in the forum before, but I couldn't find the thread.
Ok, here is the problem.
I got a swich, a brush with a texture with a text saying "Power" and there is a little light under it wich doesn't glow and, an env_shake.
How do I do the following thing:

When I click the switch, the texture with the power light (off) will switch texture to the texture with power (on), on the same time, as an event happens, wich, in this case, is the env_shake.

So, the switch has to do 2 things.
change a texture and start an event.
The best thing would be if it started more than just the env_shake but if I figgure out how to start 2 things I bet that it is the same princip as to start 3, right?
(like, if I want a light to turn on while pressing the switch too)

Now, I find this imposseble to make, but I've seen that it is posseble.
It happened several times in the normal HL game, and so on.

So, please, help me!

Thanks!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 07:28:55 UTC Post #140261
um well i think the texture sould change to the on texturew it ussally does it with textures and use a multi manager to trigger the env_shake when you press the button or somthing like that

but i don't really know but anyways
Posted 18 years ago2005-10-08 07:30:47 UTC Post #140262
Posted 18 years ago2005-10-08 07:44:21 UTC Post #140263
Well, elon, I need, more like a tutorial..
I can't really understand your map.
I've never even used a multimanager, or a, trigger_changetarget.
But I have heard of them.
I only like, understand 50% of it. ^^

Thanks anyway, though
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 08:13:14 UTC Post #140269
So let me get this straight. What you want is this:

When you hit the button:
  • the texture changes from off to on.
  • The light changes color (red to green?)
  • actiavte an env_shake
Right?
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 08:17:24 UTC Post #140270
Make seventh post my tutorial! : It explains that. :tired:
Posted 18 years ago2005-10-08 08:20:15 UTC Post #140271
Not,, really.
Ok, I got the following things:

A brush with a switch texture (entity: func_button)
A brush with a texture of a power light, wich starts as the off version.
An env_shake
A light.

I want the following thing to happen:

When I press the func_button, the brush with the power off texture will change texture to power on
and the env_shake will start
and the light will turn on.
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 08:21:21 UTC Post #140272
Do you think I should post it in here,madcow? :tired:
Posted 18 years ago2005-10-08 08:22:42 UTC Post #140273
Umm,, could you like, upload in to a site and give me the link? :)
Site suggestions:
www.1asphost.com
www.freewebs.com <--- as we all know, crap!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 08:24:13 UTC Post #140274
I'll email it to you! :glad: BUT DON"T EVEN THINK OF STEALING IT! :furious:
Posted 18 years ago2005-10-08 08:25:57 UTC Post #140275
/me steals elons tutorial

Thanks elon!

(you can trust me,, :lol: )
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 08:30:21 UTC Post #140277
plop down a multimanager and click it's properties.

...looks like nuthin...
...Give it a name first...

click [Smart Edit] so that it is disabled.

...still looks like nuthin...

There should be two fields on the right where you can type stuff.
I believe there's a string field and a value field, then there's some add and delete buttons. Click the add button and another String and Value dialog will show up.

In the string field type your target, and the in the value field, type a number in seconds to delay the action of targetting.

i.e. something like this

targetname multi1 (name of entity)
redlight1 0 (fires immediately)
greenlight1 1 (after a 1 second delay, this fires)
button1 1 (this also fires after 1 second)
shake1 2 (then this after 2 seconds)

i dunno if this will work, but it's worth a shot. :
Rimrook RimrookSince 2003
Posted 18 years ago2005-10-08 08:33:14 UTC Post #140278
There is one thing I don't understand, I only add one "button" wich is target.
But with only one target field I can only trigger one target, right? :S
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 08:34:26 UTC Post #140279
Posted 18 years ago2005-10-08 08:40:14 UTC Post #140282
keep hitting add, i think.

if your lazy, you can target one thing with a button triggerer and give everything you want to happen the same name, it'll target everything with the name "poop" if you want it too.
Rimrook RimrookSince 2003
Posted 18 years ago2005-10-08 08:49:15 UTC Post #140284
A brush with a switch texture (entity: func_button)
A brush with a texture of a power light, wich starts as the off version.
Make these a func_wall and name them the same. When targetted, they will change texture.
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 09:05:52 UTC Post #140289
Rimrook: W00t!
I forgot that they did that! :D

MuzzleFlash: are you sure that the power texture will change from off to on if it's targeted?
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 09:08:31 UTC Post #140290
Did you read my tutorial? :
Posted 18 years ago2005-10-08 09:09:44 UTC Post #140292
I forgot to check my mail. :P
I'll have a look! :)

BTW, here is the power texture:
User posted image
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 09:13:23 UTC Post #140295
Posted 18 years ago2005-10-08 09:28:29 UTC Post #140298
A question:
Does this work?

I got a func_button, with the target "bang"
I got a env_shake with the name "bang"
I got a trigger_relay with the name "bang" and the target "boom" and the delay of 3 seconds
I got a env_explosion with the name "boom"

That should work, right?
first, the env_shake goes of, then, the thing explode, right?
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 09:36:02 UTC Post #140299
Create a func_button named btn1. Set target to mm1.

Create a multi-manager. Name it mm1.

Create a brush with the +AC.. switch texture. Tie the brush to a func_button entity. Name that button tex_btn. Set flags to Don't Move and Toggle.

Create the env_shake. Name it e_shake.

In the multi-manager properties, click Smartedit.

Click Add and set Name to tex_btn with value of seconds to change texture.

Click Add and set Name to e_shake with value of seconds to start shake.

Now when you trigger (use) btn1, it triggers the multi-manager which triggers the env_shake and tex_btn. The shake shakes and tex_btn changes texture.

EDIT - your way should work also, but you wanted to change the power texture. Using a multi-manager allows you to trigger up to 16 different things at different times.
Posted 18 years ago2005-10-08 10:27:03 UTC Post #140303
MuzzleFlash: are you sure that the power texture will change from off to on if it's targeted?
Yes, i did that many times. Just try it. :)

Are you on MSN?
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 13:05:31 UTC Post #140322
BJ: Well, i think the texture thing is figgured out now. :) Thanks anyway

Thanks for the help Muzzle!

I'll try now, I've been buzzy, but, I'll try now. :)

(please don't close the thread yet. :P )
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 15:04:56 UTC Post #140351
Ow ok, i just made a simple example map for you to check out, but never mind that. :)
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 15:11:16 UTC Post #140352
Thanks anyway Muzzle flash.. ;)
But, as I said, please don't close the thread yet (Looks at 7:th)
I don't want to start a new thread just because of a little problem, would just be a waist of peoples time.
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 16:36:32 UTC Post #140368
Ok, here is an odd problem.
Scince this is a minimod, I followed the tutorial for mods.
Now, when i activate the mod and press new game and choose skill, it just exits HL..
What the h...?
Always worked before.
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 16:46:34 UTC Post #140369
What did you write in the liblist.gam?
Posted 18 years ago2005-10-08 16:55:55 UTC Post #140372
The only thing I changed was game= "Half life" into Labz
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 17:01:40 UTC Post #140374
u need to change the startmap bit... change 'startmap' to your map
Archie ArchieGoodbye Moonmen
Posted 18 years ago2005-10-08 17:14:23 UTC Post #140375
Post in the whole liblist.gam and the name of your first map in the mod! :glad:
Posted 18 years ago2005-10-08 17:34:32 UTC Post #140380
Uhh,, never mind, the map didn't compile.. :S
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 17:45:56 UTC Post #140382
Also, you need to copy the Half-Life dlls to your own mod folder. That includes:

client/client.dll
dlls/hl.dll
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 17:47:38 UTC Post #140383
Oh,, well, that explains it all, cuz I tried with the map in the folder now and that didn't work ether.. :P

Thanks!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 17:50:49 UTC Post #140385
But are you insterested in my example map?
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-08 17:51:35 UTC Post #140386
yeah, I just, don't got time right now.
I'll look at it 2morrow. :)
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-10-08 17:55:30 UTC Post #140389
K, contact me through MSN, i added you. :)
The Mad Carrot The Mad CarrotMad Carrot
Posted 18 years ago2005-10-09 07:34:30 UTC Post #140450
Ok, thanks muzzle, I accepted you to my list. :)

An other problem came up.
The button can be pressed many times, but I only want it to work once.
Is that posseble? :S

Edit: never mind, I didn't see that thing in the properties
Madcow MadcowSpy zappin my udder
You must be logged in to post a response.