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.
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
Version 1.1 (24 JAN 2021): 110 downloads.
- Fixed: Slow Burn damage. Version 1.0 (10 JAN 2021): 95 downloads.
- Initial release.
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.
Last edited by axelnieves2012; 06-11-2023 at 15:24.
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.
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.
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.
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.