Pre-Criminal Stunstick Damage? Created 16 years ago2008-04-24 08:32:27 UTC by KingDaniel KingDaniel

Created 16 years ago2008-04-24 08:32:27 UTC by KingDaniel KingDaniel

Posted 16 years ago2008-04-24 08:32:27 UTC Post #249136
Picture the scene: You?re wandering though City17 in your bright orange HEV suit. All is calm. You get a few weird looks from oppressed citizens and cops but you are mostly ignored. If you harass a metrocop, he smacks you a few times with his stunstick, just like the start of HL2. The problem is that because you?re already in your HEV suit (this is essential to the plot), it?s obvious the hits do no damage. How can I make it so each hit takes off about 10hp? It there a nice script file in the resources folder where I can change a number? Or do I need to learn coding??
Posted 16 years ago2008-04-24 11:27:40 UTC Post #249138
That's coding.
That doesn't mean there isn't a way to fake it tho.
Look through the info_player_start's outputs.
I know there is something there which has to do with being hit by a stunstick, just set that specific output and trigger it to hurt the player 10 hitpoints.

It should work, if you find it.
It's probably the same output used to knock the player down in the beginning of HL2, I've used it myself, but I can't remember if I did it with the HEV or without it.

The name of the output should be rather obvious, just take a look.
info_player_start.
Madcow MadcowSpy zappin my udder
Posted 16 years ago2008-04-26 07:01:40 UTC Post #249185
Great idea Madcow! Thanks!
Posted 16 years ago2008-04-28 08:58:18 UTC Post #249308
I got home, tried it and it worked perfectly ? it?s the ?OnStunnedPlayer? Metrocop output and I had it activate a giant trigger_hurt for .1 of a second.
Thanks again Madcow ? you saved future players from a tedious ?You-lost-your-suit-but-it?s-ok-here?s-a-new-one? scene ;-)
You must be logged in to post a response.