Environmental hazard idea

Discussion in 'Mapping Questions & Discussion' started by elmo, Jul 15, 2012.

  1. elmo

    elmo L1: Registered

    Messages:
    39
    Positive Ratings:
    1
    I was thinking of a cool environment hazard for a future map, and then figured I'd have no idea how to make it.

    It stems from sawmill where there are the saws that kill you when you walk into them, I wanted to make some electrical generators, but these ones haven't been covered up.

    uhoh

    so, I know I'd have to put a trigger_hurt for rediculous damage around them to kill whomever should stumble into them, but I'd like the kill animation to be the same one that you get from the grordborts weapons, how would I go about doing this?

    also, is there anyway of getting custom text in the kill feed, such as the fell to a clumsy death, so it said something along the lines of

    timelmo electrocuted themself

    enemy electrocuted timelmo

    that kinda thing.

    thanks in advance
     
  2. henke37

    aa henke37

    Messages:
    1,919
    Positive Ratings:
    449
    No, the killfeed does not allow for custom messages. You'd need to bribe a valve employee to add a new damage type for you.
     
  3. EArkham

    aa EArkham Necromancer

    Messages:
    1,577
    Positive Ratings:
    2,200
    HL2 can do this with a trigger_physics_trap but this entity is disabled in TF2.

    You could try it in TF2 by turning off the smart edit and putting in 67108864 into the dmg type. I don't know if this will work since it may be HL2 only or maybe even GMOD. Source for that number from this gamebanana tut.

    As Henke said, you can't do a custom death kill notice.
     
  4. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,114
    Actually, the damage type number for the Gnordbots Rocket Launcher is 2359360, which makes it a compisite of DMG_BLAST (1 << 6), DMG_RADIATION (1 << 18) and DMG_SLOWBURN (1 << 21)

    Doing some testing, and making every single weapon do this type of damage, does not actually give the correct kill effect when the player dies, it will still be the standard gibdeath, that being said I also tested your number, and it did not make players dissolve when shot, so I'm not quite sure what's up with that. -- Regardless, giving these numbers a try in Hammer is probably worth a shot.