trigger_push problem

Discussion in 'Mapping Questions & Discussion' started by Unregistered HyperCam 2, Mar 2, 2018.

  1. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    Hi everyone,
    so I have a trigger_push that changes its push direction dynamically and pushes a rocket (tf_projectile_rocket) in that direction.
    The problem is that after the rocket is pushed it cannot be pushed in the opposite direction, well technically it can be but then its velocity becomes 0, meaning once you've pushed the rocket in a certain direction you cannot stop its momentum.
    Also point_teleport and trigger_teleport do not kill momentum upon teleportation, neither does adding the Basevelocity 0 0 0 output, and trigger_apply_impulse does not work on rockets.
    I'd really appreciate any help or suggestions on how to solve this issue.
     
  2. XEnderFaceX

    XEnderFaceX L4: Comfortable Member

    Messages:
    173
    Positive Ratings:
    49
    maybe look into the flags tab, im not too invested into trigger_push
     
  3. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    I've tried, the flag that works at least for trigger_push is "Everything (not including physics debris)" but for apply_impulse and also the vphysics trigger I've tried every flag
     
  4. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    Ah also I've checked the flags as you've said and the Once Only flag actually kills the trigger...
     
  5. Rare Endangered Spycrab

    Rare Endangered Spycrab L2: Junior Member

    Messages:
    97
    Positive Ratings:
    30
    Try addoutput,velocity 0 0 0 (change the numbers). Its not the same thing as basevelocity
     
    • Thanks Thanks x 1
  6. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    Thanks! it actually sort of solved my problem, can't believe it was that simple lol/
    Edit: nvm it didn't ;-;
     
  7. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    Ah my bad it didn't.
     
  8. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    can you change the direction if the rocket recieves following input: addoutput - angles x y z ?
     
  9. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    110
    Positive Ratings:
    4
    I can't really do that because the push direction is set using logic_measure_movement so I can't use it in addoutput as a constant, unless you can use parameters with addoutput? I've tried and even looked at the source sdk code and it seems like that's not an option
    Edit: cause if you can use parameters I'm thinking point_anglesensor or something similar