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

Reflect team damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mad_hamster
Member
Join Date: Nov 2009
Plugin ID:
1438
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    A very simple plugint to reflect team damage (hp and armor)
    Old 01-30-2010 , 10:00   Reflect team damage
    Reply With Quote #1

    I made this plugin since existing Anti-TK plugins don't reflect damage by design or fail to under CS:S.

    Thanks to Geel9 for adding slap toggles.

    Thanks to Snake60 for adding a chat toggle, translations support and more.

    CVars:

    // If -1, it will reduce users HP & armor for however much damage they did. Otherwise, it will reduce HP & armor for the amount specified in the convar.
    // -
    // Default: "-1"
    sm_reflect_damage "-1"

    // Report in chat about damage done. 1 - report, 0 - not
    // -
    // Default: "1"
    sm_reflect_report_in_chat "1"

    // Whether or not to slap TKers. 1 - slap TKers; 0 - don't
    // -
    // Default: "1"
    sm_reflect_slap "1"


    Versions:

    1.0 - Initial
    1.1 - Attacker gets slapped when damaging team mate
    1.2 - Merged Geel9's and Snake60's changes: slap toggle on/off, chat notification on/off, damage toggle fixed/reflect. Also made various code improvements and tested the plugin.
    1.3 - added Russian translation.
    Attached Files
    File Type: zip reflect.zip (8.3 KB, 1672 views)

    Last edited by mad_hamster; 08-23-2010 at 06:41.
    mad_hamster is offline
    Frettchen5
    Member
    Join Date: Oct 2008
    Old 02-08-2010 , 03:32   Re: Reflect team damage
    Reply With Quote #2

    Nice, works perfect.
    Only the NOOBs don`t know what happens, is it possible to get a slapping for TA, like Mani it does?
    You know, what I mean!
    Do you understand my bad english?
    Frettchen5 is offline
    mad_hamster
    Member
    Join Date: Nov 2009
    Old 02-09-2010 , 14:51   Re: Reflect team damage
    Reply With Quote #3

    Added slap.
    mad_hamster is offline
    nOzE
    Member
    Join Date: Jul 2008
    Old 02-18-2010 , 17:31   Re: Reflect team damage
    Reply With Quote #4

    I would like to use this with slap, but the team-attacker should only lose 1 hp!
    __________________
    nOzE is offline
    Jumpman
    Senior Member
    Join Date: Mar 2010
    Location: Denmark
    Old 03-19-2010 , 11:43   Re: Reflect team damage
    Reply With Quote #5

    Nice plugin :-)

    It would be great if you could make a teamdamage.cfg file where we could turn slap function on/off and add how much hp the player will be slap with.

    I would like to turn off the slap function completely on my server.
    Jumpman is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 03-19-2010 , 17:43   Re: Reflect team damage
    Reply With Quote #6

    Hm... if that is so simple and does what it says, then well done mate
    __________________
    shustas is offline
    Jumpman
    Senior Member
    Join Date: Mar 2010
    Location: Denmark
    Old 03-28-2010 , 12:11   Re: Reflect team damage
    Reply With Quote #7

    I not want the slap funktion how can i disable it?
    Jumpman is offline
    Geel9
    Senior Member
    Join Date: Mar 2009
    Old 03-28-2010 , 12:33   Re: Reflect team damage
    Reply With Quote #8

    I made a version with cvars.

    sm_reflect_slap: if 1, it will slap, otherwise, it will just damage. Default 1.

    sm_reflect_slap_damage: if 1, it will slap for the amount done by the player, otherwise, it will slap for the amount specified. Default 1.

    I don't know if it works or not. It should. I haven't been able to test it.
    Attached Files
    File Type: sp Get Plugin or Get Source (reflect.sp - 1192 views - 2.3 KB)
    Geel9 is offline
    Snake60
    Senior Member
    Join Date: Jul 2008
    Location: Russia, Pskov
    Old 04-01-2010 , 07:13   Re: Reflect team damage
    Reply With Quote #9

    I test your version of the plugin and corrected a few mistakes and shortcomings, and add something:
    1. To create a configuration file you forgot to add the line (I corrected it)
      PHP Code:
      AutoExecConfig (true"reflect.plugin"); 
    2. Fixed some syntax errors
    3. Added support for translations (now Russian and English)
    4. Add one more convar
      PHP Code:
      reportinchat CreateConVar ("sm_reflect_report_in_chat""1""Report in chat about damage done. 1 - report, 0 - not"); 
    In to do list to make so, while attaker hitting in teammate his rifle barrels push up, but not slapping him, picking up rights over the ground.
    Attached Files
    File Type: rar Reflect_Damage_1.1.rar (7.4 KB, 388 views)
    __________________
    Snake60 is offline
    Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-01-2010 , 14:34   Re: Reflect team damage
    Reply With Quote #10

    Quote:
    Originally Posted by Snake60 View Post
    In to do list to make so, while attaker hitting in teammate his rifle barrels push up, but not slapping him, picking up rights over the ground.
    Yep, that would be great. Saw plugin from from ES that does that. Its more effective this way.
    __________________
    shustas 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 11:48.


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