Raised This Month: $32 Target: $400
 8% 

Trigger Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chase
Junior Member
Join Date: Oct 2009
Location: California
Plugin ID:
1248
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Activates commands associated to various weapons
    Old 10-23-2009 , 20:00   Trigger Commands
    Reply With Quote #1

    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 together 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.




    Attached Files
    File Type: smx TriggerCommands.smx (5.9 KB, 512 views)
    File Type: sp Get Plugin or Get Source (TriggerCommands.sp - 534 views - 6.9 KB)
    File Type: cfg TriggerCommands.cfg (1.1 KB, 787 views)
    __________________

    Last edited by Chase; 11-22-2009 at 04:47. Reason: Changed category
    Chase is offline
    Send a message via MSN to Chase
    Chase
    Junior Member
    Join Date: Oct 2009
    Location: California
    Old 10-23-2009 , 20:01   Re: Trigger Commands
    Reply With Quote #2

    Also, can someone delete the other thread please. I didn't expect it to actually submit, and I don't see a delete button. Sorry about that.
    __________________
    Chase is offline
    Send a message via MSN to Chase
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-23-2009 , 20:24   Re: Trigger Commands
    Reply With Quote #3

    Ooooh, this is incredibly useful!
    noodleboy347 is offline
    ballz
    Member
    Join Date: Dec 2008
    Old 11-10-2009 , 16:03   Re: Trigger Commands
    Reply With Quote #4

    Humm, How would i go about using this for sounds bites on a hit.? Say my pipe smacks a dude on the face and i want a sound clip to play. How would one go about that. I am a complete nub and don't know anything about coding..
    __________________
    ballz is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-21-2009 , 02:33   Re: Trigger Commands
    Reply With Quote #5

    Please fill out description fields properly. This is not a "Fun Stuff" plugin, etc.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    Chase
    Junior Member
    Join Date: Oct 2009
    Location: California
    Old 11-22-2009 , 04:50   Re: Trigger Commands
    Reply With Quote #6

    Adjusted. However, I don't see why "Fun Stuff" wouldn't be suitable.

    As for the sound thing, I'm not sure entirely on how to do that, I know you'd probably have to preload it before you can use it, and all that. I'll look into it when I get a chance.
    __________________
    Chase is offline
    Send a message via MSN to Chase
    ballz
    Member
    Join Date: Dec 2008
    Old 11-22-2009 , 09:03   Re: Trigger Commands
    Reply With Quote #7

    Ok thx.
    __________________
    ballz is offline
    nonick
    BANNED
    Join Date: Jul 2008
    Old 01-27-2010 , 06:36   Re: Trigger Commands
    Reply With Quote #8

    Can anyone remake this one for SDKHooks ??
    nonick is offline
    nonick
    BANNED
    Join Date: Jul 2008
    Old 01-30-2010 , 07:59   Re: Trigger Commands
    Reply With Quote #9

    Anyone?? pls ;]
    nonick is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:39.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode