We were bored last night at 3 AM and someone had the idea to make Demoman pipebombs force an RTD on the victim instead of hurting them. So I slapped toge
ther a plugin real fast to do it, and today I refined it to work for various other things. If there's another plugin like this, tell me, I didn't really check.
Overview
All this plugin does is link console commands to various weapons and projectiles. When someone is hit, the command is activated. It's made to work with whatever other plugin you want, whether you want special audio playing when someone is whacked by a kukrai, or want to force them to roll the dice when hit by a sentry rocket.
Requirements
Latest version of Dukehacks. Personally, I don't see how people survive without it. Makes things so much simpler.
Installation
- Copy TriggerCommands.smx to sourcemod/plugins
- Copy TriggerCommands.cfg to sourcemod/configs
- Edit TriggerCommands.cfg to your liking
CVARs
tcmd_enabled - Toggle plugin. 1=On, 0=Off (default: "1")
tcmd_debug - Toggle debug logging. 1=On, 0=Off (default: "1")
tcmd_allowmulti - Allow multiple triggers to activate at once. 1=On, 0=Off (default: "0")
Admin Commands
tcmd_reload - Reload plugin configuration
Notes
Not sure if it works on all games, I only test on TF2. But since it seems I haven't used any TF2-specific code, I'm assuming it'll work. If someone wishes to challenge me on that, feel free.