Pages: [1]
  Print  
Author Topic: Making Triggers And Entities With Volume!  (Read 435 times)
0 Members and 1 Guest are viewing this topic.
LaWlRuS WaLrUs

*

Offline Offline

Thank You
-Given: 0
-Receive: 3


WWW
« on: May 14, 2010, 01:46:17 PM »

The two keyvalues that you'll need to know is maxs and mins, MINS meaning Minimum Size and MAXS meaning Maximum Size.

"MAXS" is for the positive direction that you this point will move in relative to its origin. The numbers for this keyvalue can ONLY be positive or it will not work.

"MINS" is for the negative direction that your second point will move in. Values can only be negative.

A Trigger can only be seen with the console command "Picker" and it will draw the entity under your crosshair with 3 lines GREEN being X, RED being Y and BLUE Being Z Vector or Axis. Were the lines converge is the Point of the entity.



Here is an example of what a 128 x 128 box would look like.

maxs "64 64 64"
mins "-64 -64 -64"


Once you set the MINS and MAXS picker will now show the volume of the entity.



You can set the MINS and MAXS on most Function entities and all triggers, Basicly anything that needs its volume set to work. you can also make triggers in any size the one i made was a perfect box you can make a rectangle or ect...
« Last Edit: May 14, 2010, 01:52:25 PM by LaWlRuS WaLrUs » Logged
Spasior

*

*

Offline Offline

Thank You
-Given: 3
-Receive: 1


« Reply #1 on: May 14, 2010, 01:58:14 PM »

Could you show us/me ( Tongue ) an example of this in a mapadd?
Logged


Smiley Hes talking about a mp5k.
LaWlRuS WaLrUs

*

Offline Offline

Thank You
-Given: 0
-Receive: 3


WWW
« Reply #2 on: May 14, 2010, 02:31:00 PM »

Could you show us/me ( Tongue ) an example of this in a mapadd?

Well all you have to do is first go ingame get the origin you want than play around with the scale of the trigger, say to cover the inside of a door or tunnle or What ever. and you use it just like you would use any other keyvalue but heres an example:

"trigger_mutiple"
{
        "origin" "0 0 0" "angle" "0 0 0"
                 "keyvalues"
                 {
                          "mins" "-40 -40 -40"
                          "maxs" "40 40 40"
                          "spawnflags" "64"
                          "onstarttouch" "entityname,addoutput,keyvaluename value,1,-1"
                 }
}

For that trigger i just made up some random values
« Last Edit: June 22, 2010, 06:15:41 AM by Spasior, Reason: Change the name on the quote. » Logged
Happy_Cat
That Guy


*

Offline Offline

Thank You
-Given: 0
-Receive: 1


« Reply #3 on: May 14, 2010, 03:16:31 PM »

Well, crap, Bloop.  Wish I'd known about this eons ago; instant_trig's given me e-lip about using !activator so I've had to use workarounds to get the same effect.  If this extends to other brushes like func_tank, that would just make my day.  Thank you.

Nice li'l storm of posts you've got already.  Maybe it'll be a little less boring 'round here.  Tongue
Logged
Happy_Cat
That Guy


*

Offline Offline

Thank You
-Given: 0
-Receive: 1


« Reply #4 on: May 14, 2010, 05:32:07 PM »

Seems the edit button only lasts for a little while.

Did a test with func_tank and func_dustcloud, where neither seemed to work.  Bawww.
« Last Edit: May 14, 2010, 05:33:55 PM by Happy_Cat » Logged
veteran_gamer

*

*

Offline Offline

Thank You
-Given: 12
-Receive: 8


« Reply #5 on: May 14, 2010, 09:22:14 PM »

Excellent thread and post!

Welcome my friend :]
Logged
BIZ
8-Bit


*

*

Offline Offline

Thank You
-Given: 7
-Receive: 4


WWW
« Reply #6 on: May 15, 2010, 01:10:24 AM »

should we have a separate area for smod tutorial stuff?
Logged

this ain't motel 6, we don't keep the lights on for you homo tricks.
LaWlRuS WaLrUs

*

Offline Offline

Thank You
-Given: 0
-Receive: 3


WWW
« Reply #7 on: May 15, 2010, 01:40:21 AM »

should we have a separate area for smod tutorial stuff?

I think there should be a area were anyone can post anything smod related. i have found alot and know alot about the smod and the source engine, Thats why i keep posting in the gaming discussion area.
« Last Edit: May 15, 2010, 01:42:31 AM by LaWlRuS WaLrUs » Logged
BIZ
8-Bit


*

*

Offline Offline

Thank You
-Given: 7
-Receive: 4


WWW
« Reply #8 on: May 15, 2010, 06:51:51 PM »

ok all smod stuff can be posted here from now on!
Logged

this ain't motel 6, we don't keep the lights on for you homo tricks.
LaWlRuS WaLrUs

*

Offline Offline

Thank You
-Given: 0
-Receive: 3


WWW
« Reply #9 on: May 16, 2010, 06:46:23 AM »

Oh and when making a trigger it has to be set to "Solid 2" for it to work. i think this may apply for Function entities as well.
Logged
BIZ
8-Bit


*

*

Offline Offline

Thank You
-Given: 7
-Receive: 4


WWW
« Reply #10 on: July 28, 2010, 12:29:24 AM »

couldn't get it to work in smod 40.

Code:
"trigger_multiple" {
"origin" "-814 -42 468" "angle" "0 0 0"
"keyvalues" {
"targetname" "test12345"
"mins" "-40 -40 -40"
"maxs" "40 40 40"
"spawnflags" "64"
"solid" "2"
"onstarttouch" "test_cop_spawner,spawn,,0,1"
}
}
Logged

this ain't motel 6, we don't keep the lights on for you homo tricks.
BIZ
8-Bit


*

*

Offline Offline

Thank You
-Given: 7
-Receive: 4


WWW
« Reply #11 on: August 08, 2010, 08:05:37 PM »

after further testing, its fair to say they may be broke in smod.
Logged

this ain't motel 6, we don't keep the lights on for you homo tricks.
Pages: [1]
  Print  
 
Jump to: