Raised This Month: $12 Target: $400
 3% 

[TF2] Fire Wrench


Post New Thread Reply   
 
Thread Tools Display Modes
Author
psychonic

BAFFLED
Join Date: May 2008
Plugin ID:
1231
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Wrench hits cause victim to catch on fire
    Old 10-18-2009 , 13:01   [TF2] Fire Wrench
    Reply With Quote #1

    Quick plugin written by request for Javed in #sourcemod

    Wrench hits cause victim to catch on fire.

    Plugin requires the TF2 Posthook for OnTakeDamage extension (and will not compile on the forums for that reason)
    Attached Files
    File Type: sp Get Plugin or Get Source (firewrench.sp - 613 views - 900 Bytes)
    File Type: smx firewrench.smx (2.2 KB, 758 views)
    psychonic is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-18-2009 , 13:48   Re: [TF2] Fire Wrench
    Reply With Quote #2

    You don't need that extension, just hook player_hurt.
    noodleboy347 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 10-18-2009 , 14:26   Re: [TF2] Fire Wrench
    Reply With Quote #3

    Quote:
    Originally Posted by noodleboy347 View Post
    You don't need that extension, just hook player_hurt.
    The player_hurt event does not give the inflictor, and you cannot just look at the weapon in hand when player_hurt fires, otherwise sentry bullets/rockets would give the same effect if you had your wrench out.
    psychonic is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-18-2009 , 15:38   Re: [TF2] Fire Wrench
    Reply With Quote #4

    Cool!
    As a big time offensive engi player this is getting added to my server
    __________________
    DarthNinja is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 10-18-2009 , 17:23   Re: [TF2] Fire Wrench
    Reply With Quote #5

    This will definitely end up being a part of someone's RPG plugin, fire on melee
    Chris-_- is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-20-2009 , 21:46   Re: [TF2] Fire Wrench
    Reply With Quote #6

    Bug:
    Once set on fire the player will not go out unless they extinguish themselves (healthpack, resupply locker, water.)
    __________________
    DarthNinja is offline
    TheSpyHunter
    Senior Member
    Join Date: Jul 2009
    Old 10-27-2009 , 15:24   Re: [TF2] Fire Wrench
    Reply With Quote #7

    Any way to make this freezebomb a player?
    __________________
    TheSpyHunter is offline
    eee
    Member
    Join Date: Aug 2009
    Old 10-27-2009 , 15:44   Re: [TF2] Fire Wrench
    Reply With Quote #8

    Quote:
    Originally Posted by TheSpyHunter View Post
    Any way to make this freezebomb a player?
    of course, replace
    Code:
    TF2_IgnitePlayer(victim, attacker);
    with
    WHATEVER OTHER FUNCTION YOU WANT

    k
    __________________

    Last edited by eee; 10-27-2009 at 16:02.
    eee is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 10-27-2009 , 15:48   Re: [TF2] Fire Wrench
    Reply With Quote #9

    Edit: i was too slow, but DO NOT use the above without altering it. It is not safe to pass a victim's name as it could contain semicolons used to concatenate commands (ie. name "myname;rcon_password pwned"). If using a server command, pass the user id prefixed with #.

    Quote:
    Originally Posted by TheSpyHunter View Post
    Any way to make this freezebomb a player?
    smx attached again because the sp will not compile on the site because of the include.

    Default duration for the freeze is 5 seconds. I was too lazy to make a convar for it but you can change the define on the very first line. Most of the freeze stuff is from sm's funcommands.
    Attached Files
    File Type: sp Get Plugin or Get Source (icewrench.sp - 379 views - 3.2 KB)
    File Type: smx icewrench.smx (5.6 KB, 382 views)

    Last edited by psychonic; 10-27-2009 at 15:50.
    psychonic is offline
    eee
    Member
    Join Date: Aug 2009
    Old 10-27-2009 , 15:51   Re: [TF2] Fire Wrench
    Reply With Quote #10

    Quote:
    Originally Posted by psychonic View Post
    Edit: i was too slow, but DO NOT use the above without altering it. It is not safe to pass a victim's name as it could contain semicolons used to concatenate commands (ie. name "myname;rcon_password pwned"). If using a server command, pass the user id prefixed with #.



    smx attached again because the sp will not compile on the site because of the include.

    Default duration for the freeze is 5 seconds. I was too lazy to make a convar for it but you can change the define on the very first line. Most of the freeze stuff is from sm's funcommands.
    or you could pull all of the ice code out if you don't want a constant spam of TOGGLED FREEZEBOMB ON x , as this does
    __________________
    eee 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 21:19.


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