Shoot a bomb that track players location

Discussion in 'Mapping Questions & Discussion' started by Sirckel Brad, Apr 8, 2017.

  1. Sirckel Brad

    Sirckel Brad L1: Registered

    Messages:
    22
    Positive Ratings:
    1
    Hey.
    I'm trying to make a map about dodging a bomb which rains down at people.
    Is that even possible?
    I try to make it dodgable
    Is there anyway I can do this?
    Thanks.
     
  2. henke37

    aa henke37

    Messages:
    1,910
    Positive Ratings:
    446
    This would require custom entity code. Hammer can't do that. You'd need c++ code and that's not happening unless you work at Valve.
     
    • Respectfully Disagree Respectfully Disagree x 1
  3. Yrr

    aa Yrr An Actual Deer

    Messages:
    1,008
    Positive Ratings:
    1,949
    you could fake it by parenting a spawner i think but itd be pretty involved and youd need to have a good understanding of what you're doing
     
    • Agree Agree x 2
  4. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    Some entities output give back player's location, however you can't manipulate it in hammer, it's like hidden, but if you send another input to an entity under same output that use those coordinates to do something, then yeah maybe you can do something like that. However I don't know if such entity(that accepts/teleport things) exist, all I know is that some entities output give back coordinates of an entity/player. I discovered that while working on a new native for sourcemod https://github.com/alliedmodders/sourcemod/pull/587.
     
  5. Yrr

    aa Yrr An Actual Deer

    Messages:
    1,008
    Positive Ratings:
    1,949
    also first you really wanna figure out how to make a bomb that works, before you think about trying to make it go somewhere specific
     
  6. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    You could parent an named info_target to the player when they walk into a trigger. A light_dynamic can be setup to always point at the info_target. A tf_point_weapon_mimic can be parented to that light_dynamic so that it also points at the info_target the light is tracking.

    Any projectiles shot out by the tf_point_weapon_mimic wouldbe aimed at where the player was stood, not where they move to. But at the very least it would hurt players who remain stationary for too long.
     
    • Like Like x 1