Author Topic: trigger_push  (Read 4969 times)

Mwa

  • Posts: 117
  • Turrets: +0/-0
    • http://www.mwaness.com
trigger_push
« on: August 28, 2006, 12:52:28 am »
Is trigger_push disabled on trem? I'm trying to make a cannon/walkway system, but I cannot get trigger_push to work.
I've got it set up correctly. :/
awr.

vcxzet

  • Guest
trigger_push
« Reply #1 on: August 28, 2006, 01:17:11 am »
I am also in
here is my test map
(+jumppads on q3 maps dont work if you import the map to trem-even if I make the correct adjustments-)
Code: [Select]
// entity 0
{
"classname" "worldspawn"
// brush 0
{
( 144 136 200 ) ( 144 -168 200 ) ( -64 136 200 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( 136 128 0 ) ( -72 128 0 ) ( 136 128 -8 ) common/caulk 48 16 0 0.5 0.5 0 0 0
( 192 144 0 ) ( 192 144 -8 ) ( 192 -160 0 ) common/caulk 48 16 0 0.5 0.5 0 0 0
( -72 -192 -8 ) ( -72 -192 0 ) ( 136 -192 -8 ) common/caulk 48 16 0 0.5 0.5 0 0 0
( -128 -152 -8 ) ( -128 152 -8 ) ( -128 -152 0 ) common/caulk 32 16 0 0.5 0.5 0 0 0
( -64 136 192 ) ( 144 -168 192 ) ( 144 136 192 ) arachnid2/sky 32 0 0 0.5 0.5 0 0 0
}
// brush 1
{
( 144 144 192 ) ( 144 -160 192 ) ( -64 144 192 ) common/caulk 32 16 0 0.5 0.5 0 0 0
( 136 136 -8 ) ( -72 136 -8 ) ( 136 136 -16 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( 192 152 -8 ) ( 192 152 -16 ) ( 192 -152 -8 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( -64 -160 -64 ) ( 144 -160 -64 ) ( -64 144 -64 ) common/caulk 32 16 0 0.5 0.5 0 0 0
( -128 -144 -16 ) ( -128 160 -16 ) ( -128 -144 -8 ) common/caulk 16 0 0 0.5 0.5 0 0 0
( 136 128 -16 ) ( -72 128 -8 ) ( 136 128 -8 ) arachnid2/001metal 48 0 0 0.5 0.5 0 0 0
}
// brush 2
{
( 152 136 192 ) ( 152 -168 192 ) ( -56 136 192 ) common/caulk 16 0 0 0.5 0.5 0 0 0
( 144 128 -8 ) ( -64 128 -8 ) ( 144 128 -16 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( 200 144 -8 ) ( 200 144 -16 ) ( 200 -160 -8 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( -56 -168 -64 ) ( 152 -168 -64 ) ( -56 136 -64 ) common/caulk 16 0 0 0.5 0.5 0 0 0
( -64 -192 -16 ) ( -64 -192 -8 ) ( 144 -192 -16 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( 192 -160 -8 ) ( 192 144 -16 ) ( 192 144 -8 ) arachnid2/001metal 48 0 0 0.5 0.5 0 0 0
}
// brush 3
{
( 136 128 -16 ) ( -72 128 -16 ) ( 136 128 -24 ) common/caulk 48 48 0 0.5 0.5 0 0 0
( 192 144 -16 ) ( 192 144 -24 ) ( 192 -160 -16 ) common/caulk 48 48 0 0.5 0.5 0 0 0
( -64 -168 -72 ) ( 144 -168 -72 ) ( -64 136 -72 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( -72 -192 -24 ) ( -72 -192 -16 ) ( 136 -192 -24 ) common/caulk 48 48 0 0.5 0.5 0 0 0
( -128 -152 -24 ) ( -128 152 -24 ) ( -128 -152 -16 ) common/caulk 32 48 0 0.5 0.5 0 0 0
( -64 136 -64 ) ( 144 -168 -64 ) ( -64 -168 -64 ) arachnid2/001metal 32 0 0 0.5 0.5 0 0 0
}
// brush 4
{
( 144 128 192 ) ( 144 -176 192 ) ( -64 128 192 ) common/caulk 32 48 0 0.5 0.5 0 0 0
( 192 136 -8 ) ( 192 136 -16 ) ( 192 -168 -8 ) common/caulk 0 0 0 0.5 0.5 0 0 0
( -64 -176 -64 ) ( 144 -176 -64 ) ( -64 128 -64 ) common/caulk 32 48 0 0.5 0.5 0 0 0
( -72 -200 -16 ) ( -72 -200 -8 ) ( 136 -200 -16 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( -128 -160 -16 ) ( -128 144 -16 ) ( -128 -160 -8 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( 136 -192 -16 ) ( -72 -192 -8 ) ( -72 -192 -16 ) arachnid2/001metal 48 0 0 0.5 0.5 0 0 0
}
// brush 5
{
( 136 136 192 ) ( 136 -168 192 ) ( -72 136 192 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( 128 128 -8 ) ( -80 128 -8 ) ( 128 128 -16 ) common/caulk 0 0 0 0.5 0.5 0 0 0
( -72 -168 -64 ) ( 136 -168 -64 ) ( -72 136 -64 ) common/caulk 48 0 0 0.5 0.5 0 0 0
( -80 -192 -16 ) ( -80 -192 -8 ) ( 128 -192 -16 ) common/caulk 0 0 0 0.5 0.5 0 0 0
( -136 -152 -16 ) ( -136 152 -16 ) ( -136 -152 -8 ) common/caulk 32 0 0 0.5 0.5 0 0 0
( -128 -152 -8 ) ( -128 152 -16 ) ( -128 -152 -16 ) arachnid2/001metal 32 0 0 0.5 0.5 0 0 0
}
// brush 6
{
( 64 0 -56 ) ( 64 -64 -56 ) ( 0 0 -56 ) arachnid2/barrel_rst_sign 0 0 0 0.5 0.5 0 0 0
( 64 0 -56 ) ( 0 0 -56 ) ( 64 0 -64 ) arachnid2/barrel_rst_sign 0 208 0 0.5 0.5 0 0 0
( 64 0 -56 ) ( 64 0 -64 ) ( 64 -64 -56 ) arachnid2/barrel_rst_sign 0 208 0 0.5 0.5 0 0 0
( 0 -64 -64 ) ( 64 -64 -64 ) ( 0 0 -64 ) common/caulk 0 0 0 0.5 0.5 0 0 0
( 0 -64 -64 ) ( 0 -64 -56 ) ( 64 -64 -64 ) arachnid2/barrel_rst_sign 0 208 0 0.5 0.5 0 0 0
( 0 -64 -64 ) ( 0 0 -64 ) ( 0 -64 -56 ) arachnid2/barrel_rst_sign 0 208 0 0.5 0.5 0 0 0
}
}
// entity 1
{
"classname" "team_alien_spawn"
"origin" "-88 -32 -40"
}
// entity 2
{
"classname" "team_human_spawn"
"origin" "-72 48 -40"
}
// entity 3
{
"classname" "info_alien_intermission"
"origin" "128 96 -40"
}
// entity 4
{
"classname" "info_human_intermission"
"origin" "160 40 -40"
}
// entity 5
{
"classname" "info_player_intermission"
"origin" "160 -8 -40"
}
// entity 6
{
"classname" "trigger_push"
"target" "jump1"
// brush 0
{
( 64 0 -48 ) ( 64 -64 -48 ) ( 0 0 -48 ) common/trigger 0 0 0 0.5 0.5 0 0 0
( 64 8 -48 ) ( 0 8 -48 ) ( 64 8 -56 ) common/trigger 0 32 0 0.5 0.5 0 0 0
( 72 0 -48 ) ( 72 0 -56 ) ( 72 -64 -48 ) common/trigger 0 32 0 0.5 0.5 0 0 0
( 0 -64 -64 ) ( 64 -64 -64 ) ( 0 0 -64 ) common/trigger 0 0 0 0.5 0.5 0 0 0
( 0 -72 -56 ) ( 0 -72 -48 ) ( 64 -72 -56 ) common/trigger 0 32 0 0.5 0.5 0 0 0
( -8 -64 -56 ) ( -8 0 -56 ) ( -8 -64 -48 ) common/trigger 0 32 0 0.5 0.5 0 0 0
}
}
// entity 7
{
"classname" "target_position"
"origin" "32 -32 0"
"targetname" "jump1"
}

Survivor

  • Posts: 1660
  • Turrets: +164/-159
trigger_push
« Reply #2 on: August 28, 2006, 01:20:04 am »
Heh, was browsing through the source earlier today and indeed read somewhere about it being disabled. Don't know where exactly though.
I’m busy. I’ll ignore you later.

vcxzet

  • Guest
trigger_push
« Reply #3 on: August 28, 2006, 01:37:00 am »
here from the original q3 code
Code: [Select]
void trigger_push_touch (gentity_t *self, gentity_t *other, trace_t *trace ) {

if ( !other->client ) {
return;
}

BG_TouchJumpPad( &other->client->ps, &self->s );//this line is missing in g_trigger.c in trem
}

edit:
BG_TouchJumpPad is in bg_misc.c in q3 source and it is removed from trem source(???)
Code: [Select]
VectorCopy( jumppad->origin2, ps->velocity ); we need this to jump :(

DIGI_Byte

  • Posts: 508
  • Turrets: +5/-1
trigger_push
« Reply #4 on: August 28, 2006, 01:46:14 am »
i want a player too be thrown ontop a large brush

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
trigger_push
« Reply #5 on: August 28, 2006, 08:56:23 am »
I want to do that to certain people as well... ;)

Danny
url=http://www.tremulous.info][/url]


LinuxManMikeC

  • Posts: 125
  • Turrets: +0/-0
trigger_push
« Reply #6 on: January 19, 2007, 03:43:18 am »
I was trying to use trigger_push as well just now.  Was driving me mad as to why it wasn't working.  However, there is an alternative that does work.  There is a target_push entity available.  Apparently this is calculated server side as opposed to trigger_push (client side I think, from what I read).  They probably did it as a cheat preventative.  Anyway, target_push works as follows:
1 - Make a target_position for the endpoint of the push
2 - Make a target_push near where you want to start (doesn't have to be exact, this will be all relative from what I can tell)
3 - Target the position entity with the push entity
4 - Make a trigger_multiple (or whatever) where you want the jumppad/launchpad/etc...
5 - Target the push with the trigger
6 - Compile

The line from the push to the end position isn't the exact line that will be taken, it just indicates the angle and distance of the push.  The push will actually begin at the player's position when the trigger is fired and follow a path relative to the line between the push and the end position.

If my instructions make no sense at all it's because I suck at explaining things sometimes. :P
b]Embrace your inner penguin 8)
GtkRadiant Wiki (under construction)[/b]