Creating a bouncy surface

Discussion in 'Mapping Questions & Discussion' started by Di Gorgonzola, Mar 22, 2015.

  1. Di Gorgonzola

    Di Gorgonzola L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    284
    I'm currently trying to create some kind of bouncy surface, that flings players into the air upon stepping on it, and landing on it kinda creating a effect similar to a trampoline og the repulsion gel from Portal 2.
    On of the main goals is to ensure the players bouncing on the surface, maintain their lateral speed, like bunnyhopping.

    I have currently tried to achieve this, by using two 32 units high triggerbrushes overlapping each other. One of them is a trigger_apply_impulse (named bounce), with the "clients" flag checked and a impulseforce of about 75, while the other is a trigger_multiple, with "delay before reset" set to 0. The trigger_multiple has the output "OnTrigger --> bounce ---> ApplyImpulse".

    However, this doesn't seem to work at all. The players isn't flung into the air, unless they jump, and they ain't bouncing back up when hitting the triggers, which kinda ruins the effect of continuously bouncing off a surface.

    So I'm wondering if there is a better way of achieving this effect, since I have already wasted way to much time trying to fix these problems.
     
  2. Vel0city

    aa Vel0city func_fish

    Messages:
    1,901
    Positive Ratings:
    1,516
    I wonder if it's even enabled (or working for that matter) in TF2's engine version.

    Also, keep in mind that bouncy surfaces are a nightmare for the already not too great lag compensation model in the Source engine. It's like players riding on a movable object: it's twitchy, unpredictable and messes with the hitboxes so much players become almost impossible to hit with anything but rockets and grenades rendering 6/9 (Engineer is not included since lvl 3 sentry) classes practically useless.
     
  3. Izotope

    aa Izotope Never releases maps

    Messages:
    605
    Positive Ratings:
    562
    I have a Portal 2-themed TF2 map where I use the same thing for the gel. It should work.
     
  4. Crash

    aa Crash func_nerd

    Messages:
    3,132
    Positive Ratings:
    4,712
    Apply impulse definitely works in tf2, they just recently added it for the hammer smash mechanic on doomsday event.

    I use it to lift players off the ground on probed.
     
  5. Di Gorgonzola

    Di Gorgonzola L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    284
    I know for sure that trigger_apply_impulse works in tf2.
    However, whenever the impulseforce is about 75, the players aren't even lifted of the ground (unless they jump). It does fling players into the air when the force is about 600, but when they hit the trigger again, they do a little "twitch-jump" before they are launched into the air, instead of instantly bouncing of the surface (which would be ideal).


    Did your "gel" work out smoothly? Just curious to see if the effect I'm looking for is even possible.

    I will keep that in mind. It was going to be used for a more "fun" project, so fighting being absolutly horrendous is not that big of a deal.
     
  6. Izotope

    aa Izotope Never releases maps

    Messages:
    605
    Positive Ratings:
    562
    I would say so.
    Didn't use it on the floor, though.
    I'm using it on the walls to jump past a pit.
     
  7. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    935
    Positive Ratings:
    904
    Try giving the output a delay high enough that people hit the ground before flying up.
    I'm guessing that the downwards movement is almost as high as the upwards movement you are applying, which means they cancel each other out.
     
    • Thanks Thanks x 1
  8. ibex

    aa ibex

    Messages:
    253
    Positive Ratings:
    350
    I may be wrong, but when I played around with the apply_impulse it isn't a fire once entity. You turn it on and it applies the force continuously.