Environmental hazard idea

elmo

L1: Registered
Jul 1, 2012
39
7
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
 

henke37

aa
Sep 23, 2011
2,075
515
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.
 

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,774
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.
 

Geit

💜 I probably broke it 💜
aa
May 28, 2009
598
1,161
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.

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.