Author Topic: How to make a cannon/catapult ?  (Read 3373 times)

DSL

  • Posts: 23
  • Turrets: +0/-6
How to make a cannon/catapult ?
« on: January 10, 2009, 11:45:24 am »
I tryed several times using the trigger_push but it was just not working!        And I wanna make a catapult but I can't.  :'(   Can anyone help me please?   ???

nubcake

  • Posts: 529
  • Turrets: +49/-85
Re: How to make a cannon/catapult ?
« Reply #1 on: January 10, 2009, 12:00:31 pm »
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

DSL

  • Posts: 23
  • Turrets: +0/-6
Re: How to make a cannon/catapult ?
« Reply #2 on: January 10, 2009, 12:37:50 pm »
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

Yey it worked! xD    Thank you!  :D

CreatureofHell

  • Posts: 2422
  • Turrets: +430/-126
    • Tremtopia
Re: How to make a cannon/catapult ?
« Reply #3 on: January 10, 2009, 01:49:55 pm »
don't forget to search next time before posting  ;)
{NoS}StalKer
Quote
<Timbo> posting on the trem forums rarely results in anything good