trigger_gravity

Discussion in 'Mapping Questions & Discussion' started by tedrock, Apr 27, 2008.

  1. tedrock

    tedrock L2: Junior Member

    Messages:
    79
    Positive Ratings:
    8
    in my map i'm trying to make a cliff less compelling to jump off of. if you jump off you land in a playable area that is normally accessed via ramps.
    the cliff is as high as i really want it but the player doesn't receive enough damage by jumping to discourage them or give them a big enough disadvantage if they choose to do so. someone suggested using trigger_gravity which sort of solves my problem. it makes them fall faster and they take more damage and it doesn't effect the people on the ground... but how do i make it activate when someone passes through the trigger and then deactivate after leaving the trigger? right now after i hit the trigger my gravity is at 4 permanently. i'm not very good with triggers so any help would be much appreciated.

    if you have another suggestion besides using a gravity trigger i'd like to hear those too.
     
  2. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    14
    Make a trigger_gravity at the bottom that changes it back to 1
     
    • Thanks Thanks x 1
  3. tedrock

    tedrock L2: Junior Member

    Messages:
    79
    Positive Ratings:
    8
    well that's what me and DP worked out in chat already. but thank you for answering.
    What i actually did was put the gravity trigger at the top that set it to 4 (G4 trigger) and put a gravity trigger at the button that set it to 1 (G1 trigger) which starts disabled.
    on the G4 trigger i made it so on end touch it would enable the G1 trigger after a short delay so they get most of the full effect of the 4G fall but still be at 1G on impact or just before it.

    i also put another trigger on top of the G4 trigger that sets them back to 1 in case they get back up and will have to add some others around it and one at the spawn in case they die before hitting the G1 trigger a the bottom.
     
  4. DigitalReaper

    DigitalReaper L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    Doesnt that trigger change the gravity for everyone on the server? Try using a trigger_push to help the player on their way to the ground :)
     
  5. bob+M|M+

    bob+M|M+ L6: Sharp Member

    Messages:
    348
    Positive Ratings:
    185
    but that still doesn't solve the problem of someone unintentionally going into that field from below (for example someone being launched up from a rocket.)

    I'll give it a shot... what you could do is have a trigger_hurt or trigger_push in the falldown area ONLY be activated by a trigger_multiple whos children include an invisble floor func_button on the edge of a cliff and a trigger_proximity in the air that have to be activated within 1 second of each other.
     
    • Thanks Thanks x 1
  6. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    14
    Nope, only th people that enter that area, and then they keep that gravity until they enter a new trigger gravity, even if they die it won't reset gravity.

    What I suggest is making a wall of trig_grav at the edge of the cliff instead of a floor, that way you can still go up in that area and not worry about grvity change unless you pass through that specific area (which you would if you were to jump off)
     
    • Thanks Thanks x 1
  7. tedrock

    tedrock L2: Junior Member

    Messages:
    79
    Positive Ratings:
    8
    thanks for all of the replies but right now the method i'm using seems to be working fine. but i will consider the wall rather the floor. but even with the wall i'd have to put a trigger that returns there gravity back to 1 incase like a scout jumps over the edge and double jumps back. if i use the floor trigger about 1/4 the way down then no one will really be jumping back out of it and its still high enough that no one would be able to reach it unless they were a demo with an uber and used a bunch of stickies.

    and i won't use a trigger hurt because i want it to look like normal fall damage.

    the map i am using it for is on hold right now anyway. i got bored as usual.