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

[TF2]Team Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Plugin ID:
5688
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Take damage when you hit an ally
    Old 07-05-2017 , 20:39   [TF2]Team Damage
    Reply With Quote #1

    Description:

    This plugin works with "Friendly Fire", now when you shoot an ally, you'll be damaged instead of him. You will be damaged the amount of damage your weapon do.

    Commands:

    "sm_teamdamage": Enable or disable this plugin.
    "sm_damageteam": Same as above.
    Attached Files
    File Type: sp Get Plugin or Get Source (teamdamage.sp - 399 views - 1.5 KB)
    __________________
    My Steam I take private requests if related with TF2
    My Plugins

    Last edited by Facksy; 09-03-2022 at 05:28. Reason: Restore to previous version.
    Facksy is offline
    zyox123cc
    Senior Member
    Join Date: Jul 2016
    Location: spycrab
    Old 07-06-2017 , 01:02   Re: [TF2]Team Damage
    Reply With Quote #2

    https://youtu.be/oZntWd3m_bg
    https://youtu.be/ApNUQBFBCiA
    Quote:
    07/06/2017 - 12:51:50: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:51:50: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:51:50: [SM] [2] Line 80, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Death
    L 07/06/2017 - 12:52:26: [SM] Exception reported: Client index 0 is invalid
    L 07/06/2017 - 12:52:26: [SM] Blaming: teamdamage.smx
    L 07/06/2017 - 12:52:26: [SM] Call stack trace:
    L 07/06/2017 - 12:52:26: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:52:26: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:52:26: [SM] [2] Line 54, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Hurt
    L 07/06/2017 - 12:52:26: [SM] Exception reported: Client index 0 is invalid
    L 07/06/2017 - 12:52:26: [SM] Blaming: teamdamage.smx
    L 07/06/2017 - 12:52:26: [SM] Call stack trace:
    L 07/06/2017 - 12:52:26: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:52:26: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:52:26: [SM] [2] Line 80, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Death
    L 07/06/2017 - 12:52:43: [SM] Exception reported: Client index 0 is invalid
    L 07/06/2017 - 12:52:43: [SM] Blaming: teamdamage.smx
    L 07/06/2017 - 12:52:43: [SM] Call stack trace:
    L 07/06/2017 - 12:52:43: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:52:43: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:52:43: [SM] [2] Line 59, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Hurt
    L 07/06/2017 - 12:52:52: [SM] Exception reported: Client index 0 is invalid
    L 07/06/2017 - 12:52:52: [SM] Blaming: teamdamage.smx
    L 07/06/2017 - 12:52:52: [SM] Call stack trace:
    L 07/06/2017 - 12:52:52: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:52:52: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:52:52: [SM] [2] Line 54, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Hurt
    L 07/06/2017 - 12:52:52: [SM] Exception reported: Client index 0 is invalid
    L 07/06/2017 - 12:52:52: [SM] Blaming: teamdamage.smx
    L 07/06/2017 - 12:52:52: [SM] Call stack trace:
    L 07/06/2017 - 12:52:52: [SM] [0] GetClientTeam
    L 07/06/2017 - 12:52:52: [SM] [1] Line 348, C:\hlserver\tf2\tf\addons\sourcemod\scripting \include\tf2_stocks.inc::TF2_GetClientTeam
    L 07/06/2017 - 12:52:52: [SM] [2] Line 80, C:\hlserver\tf2\tf\addons\sourcemod\scripting \teamdamage.sp::Event_Player_Death
    The Cow Mangler 5000
    The Scorch Shot
    Can make the player fire
    The Tribalman's Shiv
    The Boston Basher
    Can make the player bleeding

    Can cause damage to the weapons will repel the player
    Whether to add a new cvar
    Limit blu red
    __________________
    sv_downloadurl Recommended FREE website
    000webhost(File is too big (max. 32MB)! Upload will be skipped.)
    rejetto
    (Local_computer_host)
    Getting material/model paths easy way (Windows)
    steam profile
    Youtube
    zyox123cc is offline
    Facksy
    Senior Member
    Join Date: Apr 2017
    Location: +2+2
    Old 07-06-2017 , 18:18   Re: [TF2]Team Damage
    Reply With Quote #3

    Fixed the issue "Client index 0 is invalid"
    Facksy is offline
    Facksy
    Senior Member
    Join Date: Apr 2017
    Location: +2+2
    Old 07-29-2019 , 10:03   Re: [TF2]Team Damage
    Reply With Quote #4

    Updated code, new syntax
    __________________
    My Steam I take private requests if related with TF2
    My Plugins
    Facksy 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 21:11.


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