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

[TF2] tBuildingTakeCrits v0.0.1 (2011-05-21)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2349
Plugin Version:
0.0.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    This plugin makes engineer buildings vulnerable to critical damage from random as well as charged kritz.
    Old 05-21-2011 , 08:50   [TF2] tBuildingTakeCrits v0.0.1 (2011-05-21)
    Reply With Quote #1

    This plugin makes engineer buildings vulnerable to critical damage from random as well as charged kritz.
    Requires SDKHooks.

    Cvars:
    Quote:
    These control how much extra damage a building gets from critical hits (1.0 means default, 0.5 half, 2.0 double and so on)
    • sm_tbuildingtakecrits_modifier_sentry (default: 1.3, sentries get 30% extra damage)
    • sm_tbuildingtakecrits_modifier_teleporter (default: 1.5, teleporters get 50% extra damage)
    • sm_tbuildingtakecrits_modifier_dispenser (default: 1.5, dispensers get 50% extra damage)
    Quote:
    These are disabled unless the corresponding damage modifier is set greater than 1.0
    • sm_tbuildingtakecrits_showparticle (default: 1, by enabling this the attacker will see the crit particle.)
    • sm_tbuildingtakecrits_playsound (default: 1, play crit-hit sounds)
    The config .cfg will be autogenerated. Change settings there.

    Credits to:
    Changelog:
    0.0.1
    - Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (tBuildingTakeCrits.sp - 408 views - 5.7 KB)
    File Type: smx tBuildingTakeCrits.smx (5.7 KB, 215 views)
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 05-21-2011 at 08:52.
    Thrawn2 is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 05-21-2011 , 16:51   Re: [TF2] tBuildingTakeCrits v0.0.1 (2011-05-21)
    Reply With Quote #2

    Cool, so you detect if it's a DMG_ACID then bump the damage up a bit?

    Oh, btw, I believe the SDKHooks include does #define DMG_CRIT DMG_ACID, so you can change it to that (maybe to avoid confusing new coders lookin at the code? idk)

    Awesome, though, with the CRITICAL HIT! and everything.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 05-21-2011 , 17:05   Re: [TF2] tBuildingTakeCrits v0.0.1 (2011-05-21)
    Reply With Quote #3

    Quote:
    Originally Posted by FlaminSarge View Post
    Cool, so you detect if it's a DMG_ACID then bump the damage up a bit?
    Yepp, that's basically what it does.

    Quote:
    Originally Posted by FlaminSarge View Post
    Oh, btw, I believe the SDKHooks include does #define DMG_CRIT DMG_ACID, so you can change it to that (maybe to avoid confusing new coders lookin at the code? idk)
    Will do in the next release.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 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 14:50.


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