Raised This Month: $ Target: $400
 0% 

[L4D2 Only] Don't show molotov damage done to tank [JUN 2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Plugin ID:
7460
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    This plugin shows only bullets/explosions/melee damage done to tank on stats screen (just like l4d1).
    Old 01-10-2021 , 18:41   [L4D2 Only] Don't show molotov damage done to tank [JUN 2023]
    Reply With Quote #1

    WELCOME




    DESCRIPTION:
    As said above, flame damage done to Tank will not be shown on statistics screen, on map transitioning.
    Tank will still receive damage by molotov/incendiary ammo/gascan but it will not be shown on stats screen (just like L4D1).
    Idea taken from myself, on this thread. Nobody answered so I had to make it by myself. It was so easy as re-writting attacker and inflictor using SDKHooks.

    REQUERIMENTS:
    - Sourcemod >= 1.10
    - SDKHooks
    - SDKTools

    WARNING: This update changes convar names and config file. Make sure you update your configs.


    Changelog:
    Version 1.2 (11 JUN 2023): Current Version.
    - Added: Tank damage announcer, disabled by default (convar l4d2_molotov_damage_tank_announce) Requested by Mika Misori.
    - Fixed: all convar names. Now their prefix is "l4d2_" because it is a L4D2 exclusive plugin.
    - Fixed: config file name. Now it is called "l4d2_molotov_damage_tank.cfg" because it is a L4D2 exclusive plugin.

    Previous Versions::
    Spoiler


    CONVARS:
    PHP Code:
    l4d2_molotov_damage_tank_enable"1""Enable/Disable this plugin."
    l4d2_molotov_damage_tank_announce"0""Notify real damage done to Tank when he dies. 0=Dont notify, 1=notify to chat, 2=notify to hint box" 
    CONSOLE COMMANDS:
    - No console commands needed.

    ADMIN COMMANDS:
    - No admin commands needed.

    TO DO LIST:
    - Sort statistics by greater damage.

    KNOWN BUGS:
    - None at the moment.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_molotov_damage_tank.sp - 249 views - 5.6 KB)
    File Type: smx l4d2_molotov_damage_tank.smx (6.5 KB, 114 views)

    Last edited by axelnieves2012; 06-11-2023 at 15:24.
    axelnieves2012 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 01-23-2021 , 16:40   Re: [L4D2 Only] Don't show molotov damage done to tank
    Reply With Quote #2

    Your code is checking for DMG_SLOWBURN which is a damagetype that can be applied by certain melee weapons (only tested with sharp weapons so far). That means your plugin will also prevent melee users from being credited for damaging Tanks. Checking for DMG_BURN is good enough for this plugin's purpose.
    __________________
    Psyk0tik is offline
    axelnieves2012
    Senior Member
    Join Date: Oct 2014
    Location: Argentina
    Old 01-24-2021 , 16:57   Re: [L4D2 Only] Don't show molotov damage done to tank
    Reply With Quote #3

    Quote:
    Originally Posted by Crasher_3637 View Post
    Your code is checking for DMG_SLOWBURN which is a damagetype that can be applied by certain melee weapons (only tested with sharp weapons so far). That means your plugin will also prevent melee users from being credited for damaging Tanks. Checking for DMG_BURN is good enough for this plugin's purpose.
    Thanks for reporting, fixed now UWU
    axelnieves2012 is offline
    Mika Misori
    Senior Member
    Join Date: Sep 2022
    Old 05-30-2023 , 12:54   Re: [L4D2 Only] Don't show molotov damage done to tank
    Reply With Quote #4

    Quote:
    Originally Posted by axelnieves2012 View Post
    Thanks for reporting, fixed now UWU
    Is it possible to make the damage caused to tank reported in the chat after it is killed?
    Like in this plugin: https://github.com/SirPlease/L4D2-Co...ge_announce.sp
    but do not count the damage caused by molotov.

    I want to know who really shot/hit tank and how much real damage was done by player's guns/melee, but not the damage from someone threw a molo, after which all just run away from tank.

    Please UWU
    Mika Misori is offline
    axelnieves2012
    Senior Member
    Join Date: Oct 2014
    Location: Argentina
    Old 06-11-2023 , 15:08   Re: [L4D2 Only] Don't show molotov damage done to tank
    Reply With Quote #5

    Quote:
    Originally Posted by Mika Misori View Post
    Is it possible to make the damage caused to tank reported in the chat after it is killed?
    Like in this plugin: https://github.com/SirPlease/L4D2-Co...ge_announce.sp
    but do not count the damage caused by molotov.

    I want to know who really shot/hit tank and how much real damage was done by player's guns/melee, but not the damage from someone threw a molo, after which all just run away from tank.

    Please UWU
    Done.
    axelnieves2012 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 16:35.


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