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

[TF2] damage modifier


Post New Thread Reply   
 
Thread Tools Display Modes
Author
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Plugin ID:
564
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    multiplies all damage by a convar (reduce or increase damage done
    Unapprover:
    Reason for Unapproving:
    Uses DukeHacks, outdated.
    Old 10-03-2008 , 15:22   [TF2] damage modifier
    Reply With Quote #1

    Damage Modifer for TF2
    multiplies all damage by a convar (reduce or increase damage done)


    Requirements:
    Requires the Dukehacks extension version 0.0.1.3 or greater.

    Convars:

    sm_dmg_mult 0.5

    Sets the multiplication factor to apply to damage. Set to 0.0 for server-wide god mode. Set to 2.0 to double all damage, set to 0.5 to halve all damage, etc.


    Notes:
    This plugin was created as a quick example of how to use the dukehacks extension. If anyone wants to expand on it (add multipler for each class, individual multiplers based on XP, turn server-wide godmode on at round end so losing team is not slaughtered, etc.) please feel free to improve/modify and release your version.

    Download:
    Requires the Dukehacks extension version 0.0.1.3 or greater.
    Attached Files
    File Type: sp Get Plugin or Get Source (dhtraceattack.sp - 887 views - 1.4 KB)
    File Type: smx dhtraceattack.smx (1.7 KB, 934 views)
    __________________
    "Good grammar is essential, Robin."
    - Batman

    Last edited by L. Duke; 10-05-2008 at 10:23.
    L. Duke is offline
    Starman2098
    Junior Member
    Join Date: Jul 2008
    Old 10-05-2008 , 07:23   Re: [TF2] damage modifier
    Reply With Quote #2

    It seems that any plugin that requires the dukehacks extention will not compile on the website, is this because the site doesnt support it? Am i going to have to compile this with the compiler built in with sourcemod? This is what happens when i try, im pretty new to all this. Any help would be greatly appreciated.

    C:\Users\Sean\Desktop\sourcemod2\scripting>co mpile.exe c:\users\sean\desktop\dht
    raceattack.sp
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team


    //// dhtraceattack.sp
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\functions.inc(355) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\logging.inc(137) : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\dbi.inc(584) : error 093:
    expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\sorting.inc(101) : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\sorting.inc(166) : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(111) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(131) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(152) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(165) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(173) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\textparse.inc(194) : error
    093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\console.inc(314) : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\console.inc(33 : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\console.inc(442) : error 0
    93: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\usermessages.inc(127) : er
    ror 093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\usermessages.inc(134) : er
    ror 093: expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\menus.inc(152) : error 093
    : expected tag name identifier
    // C:\Users\Sean\Desktop\sourcemod2\scripting\in clude\menus.inc(516) : error 093
    : expected tag name identifier
    //
    // 18 Errors.
    //
    // Compilation Time: 0.16 sec
    // ----------------------------------------

    Press enter to exit ...

    Last edited by Starman2098; 10-05-2008 at 08:05.
    Starman2098 is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 10-05-2008 , 08:43   Re: [TF2] damage modifier
    Reply With Quote #3

    Because Dukehacks is a 3rd party extension, its include is not built in to the web compiler.

    So you'll either have to wait for LDuke to post a compiled version or do it yourself.


    To do it yourself, download the latest package of SourceMod and extract the scripting folder.

    Then download Dukehacks.

    Put the dukehacks.inc in the Includes folder inside the Scripting folder.

    put .sp from the first post in the scripting folder.

    Then just drag the .sp onto compile.exe and it will do it for you.

    The .smx will be in the compiled folder after it finishes.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    L. Duke
    Veteran Member
    Join Date: Apr 2005
    Location: Walla Walla
    Old 10-05-2008 , 10:23   Re: [TF2] damage modifier
    Reply With Quote #4

    I added the smx file to the first post. (Sorry I forgot the first time.)
    __________________
    "Good grammar is essential, Robin."
    - Batman
    L. Duke is offline
    teddyruxpin
    Overseer of lost packets
    Join Date: Feb 2008
    Old 10-10-2008 , 10:41   Re: [TF2] damage modifier
    Reply With Quote #5

    LDuke,

    This plugin kicks ass. I found a very nice little hidden feature if you use this plugin a different way that leads to hilarity on the servers. For the first time ever lets say I had a health of 9,000,000,000 during a match.

    I will explain more on IRC ;).

    -Teddy
    __________________
    Black Tusk Labs Home of Turbo TF2 and Turbo L4D:
    http://blacktusklabs.com/ - Mah blog and stuff

    My Crappy Plugins: SuperBuilds, Parent Buildables,
    L4D Player Info
    teddyruxpin is offline
    ratty
    SourceMod Donor
    Join Date: Jan 2006
    Old 10-15-2008 , 22:33   Re: [TF2] damage modifier
    Reply With Quote #6

    If anyone else compiles this with a too old version of SM 1.1 (I had 1.1.0-r2271 build.), with dukehacks 0.0.1.7, you'll get the error:

    dhtraceattack.sp(25) : error 017: undefined symbol "HK_TraceAttack"

    I didn't get the compile error with dukehacks 0.0.1.5 though.

    I was going to delete this post, then figured I should leave it as a warning to anyone else that had the same problem, just upgrade SM.

    Last edited by ratty; 10-15-2008 at 23:36.
    ratty is offline
    ratty
    SourceMod Donor
    Join Date: Jan 2006
    Old 10-15-2008 , 23:42   Re: [TF2] damage modifier
    Reply With Quote #7

    Quote:
    Originally Posted by teddyruxpin View Post
    LDuke,

    This plugin kicks ass. I found a very nice little hidden feature if you use this plugin a different way that leads to hilarity on the servers. For the first time ever lets say I had a health of 9,000,000,000 during a match.

    I will explain more on IRC ;).

    -Teddy
    I think I can guess, negative damage??? That sounds like a fun thing to set up during setup time or something, friendlyfire on, and negative damage, then run out of the gates fully pumped!
    ratty is offline
    ratty
    SourceMod Donor
    Join Date: Jan 2006
    Old 10-18-2008 , 07:41   Re: [TF2] damage modifier
    Reply With Quote #8

    BTW I got this working with Dukehacks 0.0.1.5, this is a real help on my achievement box.
    ratty is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 10-18-2008 , 14:39   Re: [TF2] damage modifier
    Reply With Quote #9

    Quote:
    Originally Posted by ratty View Post
    If anyone else compiles this with a too old version of SM 1.1 (I had 1.1.0-r2271 build.), with dukehacks 0.0.1.7, you'll get the error:

    dhtraceattack.sp(25) : error 017: undefined symbol "HK_TraceAttack"

    I didn't get the compile error with dukehacks 0.0.1.5 though.

    I was going to delete this post, then figured I should leave it as a warning to anyone else that had the same problem, just upgrade SM.
    Yes he changed the name of the callback from 0.0.1.5 to 0.0.1.7. The new name is CHK_TraceAttack and it's now depreicated. The better and newer callback is CHK_OnTakeDamage.
    Antithasys is offline
    hl2mukkel
    Junior Member
    Join Date: Oct 2008
    Old 12-23-2008 , 09:48   Re: [TF2] damage modifier
    Reply With Quote #10

    Does that work with Sourcemod 1.2?
    because the Dukehacks extension is currently only compatible with sourcemod 1.1 or 1.0.4
    hl2mukkel is offline
    Reply



    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 09:10.


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