Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Making Triggers And Entities With Volume!  (Read 3600 times)

0 Members and 1 Guest are viewing this topic.

Offline LaWlRuS WaLrUs

  • *
  • +1% chance to make useful post
  • LaWlRuS WaLrUs has no influence.
    • Steam
Making Triggers And Entities With Volume!
« on: May 14, 2010, 04: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 with a organge box around it.



You can set the MINS and MAXS on most Function entities and all triggers, Basicly anything that needs its volume set to work. MINS and MAXS bolth work on all entities but it will not always have an effect. You can also make triggers in any size the one i made was a perfect box you can make a rectangle or ect... Also if you are working with triggers you may have to set the solid type to 2 on them using the keyvalue SOLID and the value 2.
« Last Edit: November 10, 2010, 10:23:02 PM by LaWlRuS WaLrUs »

Offline Spasior

  • IKEA Meatballs Son!!!
  • *
  • *
  • +3% chance to make useful post
  • Spasior has no influence.
Re: Making Triggers And Entities With Volume!
« Reply #1 on: May 14, 2010, 04:58:14 PM »
Could you show us/me ( :P ) an example of this in a mapadd?
erutangiS

Offline LaWlRuS WaLrUs

  • *
  • +1% chance to make useful post
  • LaWlRuS WaLrUs has no influence.
    • Steam
Re: Making Triggers And Entities With Volume!
« Reply #2 on: May 14, 2010, 05:31:00 PM »
Could you show us/me ( :P ) 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, 09:15:41 AM by Spasior »

Offline Happy_Cat

  • *
  • +1% chance to make useful post
  • Happy_Cat has no influence.
Re: Making Triggers And Entities With Volume!
« Reply #3 on: May 14, 2010, 06: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.  :P

Offline Happy_Cat

  • *
  • +1% chance to make useful post
  • Happy_Cat has no influence.
Re: Making Triggers And Entities With Volume!
« Reply #4 on: May 14, 2010, 08: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, 08:33:55 PM by Happy_Cat »

Offline veteran_gamer

  • *
  • *
  • +5% chance to make useful post
  • veteran_gamer barely matters.veteran_gamer barely matters.
Re: Making Triggers And Entities With Volume!
« Reply #5 on: May 15, 2010, 12:22:14 AM »
Excellent thread and post!

Welcome my friend :]

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Making Triggers And Entities With Volume!
« Reply #6 on: May 15, 2010, 04:10:24 AM »
should we have a separate area for smod tutorial stuff?

Offline LaWlRuS WaLrUs

  • *
  • +1% chance to make useful post
  • LaWlRuS WaLrUs has no influence.
    • Steam
Re: Making Triggers And Entities With Volume!
« Reply #7 on: May 15, 2010, 04: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, 04:42:31 AM by LaWlRuS WaLrUs »

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Making Triggers And Entities With Volume!
« Reply #8 on: May 15, 2010, 09:51:51 PM »
ok all smod stuff can be posted here from now on!

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Making Triggers And Entities With Volume!
« Reply #9 on: July 28, 2010, 03:29:24 AM »
couldn't get it to work in smod 40.

Code: [Select]
"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"
}
}

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Making Triggers And Entities With Volume!
« Reply #10 on: August 08, 2010, 11:05:37 PM »
after further testing, its fair to say they may be broke in smod.

Offline LaWlRuS WaLrUs

  • *
  • +1% chance to make useful post
  • LaWlRuS WaLrUs has no influence.
    • Steam
Re: Making Triggers And Entities With Volume!
« Reply #11 on: April 27, 2012, 06:11:49 PM »
(Read 1006 times)   Woo!