Page 1 of 2

trigger angle?

Posted: Mon Sep 26, 2005 3:24 am
by ViPER
is it possible to angle a trigger?

trigger_multiple

Posted: Mon Sep 26, 2005 11:26 am
by tltrude
This is for Trigger_multiple:

"angle" if set, the trigger will only fire when someone is facing the direction of the angle.

"cone" the cone in which a directed trigger can be triggered (default 60 degrees)

Posted: Mon Sep 26, 2005 3:29 pm
by lizardkid
if you mean can a trigger be odd shapes, then yes; a trigger can be any shape or size. if you want it to only fire when someone is facing a certain way, then do what Tom just said.

Posted: Mon Sep 26, 2005 3:46 pm
by jv_map
A trigger can have a box shape only :wink:

Posted: Mon Sep 26, 2005 4:18 pm
by ViPER
i tried to angle the box shape at a 45 (via script) and it didn't seem to work.

Posted: Mon Sep 26, 2005 7:08 pm
by Green Beret
jv_map wrote:A trigger can have a box shape only :wink:

Posted: Mon Sep 26, 2005 10:43 pm
by ViPER
lol a box shape can sit on a 45 - its still a box

Posted: Mon Sep 26, 2005 11:10 pm
by lizardkid
jv_map wrote:A trigger can have a box shape only :wink:
wha? i've put odd angles on triggers and they always work... they have to be big enough to be touched/contain the player but it's always worked...

Posted: Mon Sep 26, 2005 11:51 pm
by Green Beret
Well thats some cool info, Ittl come in handy for sure :P

Posted: Tue Sep 27, 2005 2:12 am
by ViPER
so Lizardkid, you did the odd shapes in radiant or script? if scripted can u show me a sample of that?

Posted: Tue Sep 27, 2005 2:42 am
by lizardkid
i've only tried scripting geometry once, and it was a mess. these were Radiant brushes with angles like...

Code: Select all

|\
|  \
|    \
|      \
|       |
|       |
|       |
__________

Posted: Tue Sep 27, 2005 6:06 am
by jv_map
They work, but they work like they have a box shape :wink:

Code: Select all

|\
|  \  x
|    \
|      \
|       |
|       |
|       |
__________
An ent at x would still trigger your trigger, even though it seems outside the brush.

And I meant world-axes aligned box shape :) , so no sneaky rotatin :P

connon

Posted: Tue Sep 27, 2005 8:46 am
by tltrude
Jv-map is right. Even with my player cannon, the push trigger will send you flying when you are standing outside of the barrel. Players fly at an angle because the trigger targets a script_origin, not because the trigger is angled.

Posted: Tue Sep 27, 2005 3:28 pm
by lizardkid
jv_map wrote:They work, but they work like they have a box shape :wink:

Code: Select all

|\
|  \  x
|    \
|      \
|       |
|       |
|       |
__________
An ent at x would still trigger your trigger, even though it seems outside the brush.

And I meant world-axes aligned box shape :) , so no sneaky rotatin :P
oooh i see now, lol i thought you meant the compiler would just remove it or something, because it wasnt a box.

Posted: Tue Sep 27, 2005 4:00 pm
by ViPER
hmmmm LOL, So can this be scripted [] on a 45 degree Y axis somehow?