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

[L4D/L4D2] Chapter Statistical Report (v1.2.0, 2023-09-02)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mep
Junior Member
Join Date: Jan 2023
Location: Under your bed
Plugin ID:
8366
Plugin Version:
1.2.0
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Basic statistic such as CI & SI kills, headshot kills, and headshot accuracy.
    Old 01-12-2023 , 04:21   [L4D/L4D2] Chapter Statistical Report (v1.2.0, 2023-09-02)
    Reply With Quote #1

    • Title
      • [L4D/L4D2] Chapter Statistical Report
    • Description
      • Plugin that allow to inform players their basic statistic such as CI & SI kills, headshot kills, and headshot accuracy. Work best in coop mode.

        The plugin works with L4D1 too (Thanks to Ja-Forces for testing)

        The report will automatically printed to chat when the saferoom door closed (chapter transition) and also when the finale ends.

        The basic commands are 2, !stats and !teamstats to show the current report at the moment. Look at the commands section for more details.
    • ConVar (Console Variable)
      • csr_version
        • Show CSR version
      • csr_headshot_accuracy_compare
        • Compare headshot to player's own kills / total (team) kills.
      • csr_ignore_bots_kills
        • Not counting/excluding bots kills from total kills of "csr_headshot_accuracy_compare".
      • csr_only_human_player
        • Print only human player.
      • csr_print_mode
        • Print stats to chat or console.
      • csr_stats_on_failed
        • Print stats when mission failed.
      • csr_reset_stats
        • To determine when the plugin automatically reset the stats (per-chapter or per-campaign).
    • Commands
      • sm_stats
        • Show your current chapter stats.
      • sm_teamstats
        • Show team chapter stats.
      • sm_resetstats [ADMIN]
        • Reset all survivors stats.
    • Changelog
      Quote:
      2023-09-02 (v1.2.0)

      * Add new cvar csr_reset_stats to reset stats in either round/campaign end.

      2023-02-06 (v1.1.1)

      * Hotfix 'Stats not resetting' issue.

      2023-02-05 (v1.1.0)

      * Reset command, 2 new cvars (csr_print_mode & csr_stats_on_failed).

      2023-01-14 (v1.0.2) - Thanks to BloodyBlade

      * Hotfix inconsistent indentation warnings, add newdecls required pragma, and change EventHook callback parameter from 'Handle' to 'Event'.

      2023-01-13 (v1.0.1)

      * Hotfix 'Property "m_zombieClass" not found (entity 0/worldspawn)'.

      2023-01-12 (v1.0.0)

      * Initial release.
    • Dependencies
    • Screenshot

    • Github
      https://github.com/suganda8/chapter-statistical-report

    Feel free to report any bugs or errors.
    Attached Files
    File Type: sp Get Plugin or Get Source (chapter_statistical_report.sp - 83 views - 12.7 KB)
    File Type: zip csr-1.2.0-9c6cf1f.zip (12.0 KB, 114 views)
    __________________
    Feel free to join and play with us :


    Last edited by mep; 09-02-2023 at 03:04. Reason: Release (v1.2.0)
    mep is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 01-12-2023 , 12:49   Re: [L4D2] Chapter Statistical Report (v1.0.0, 2023-01-12)
    Reply With Quote #2

    Quote:
    Originally Posted by mep View Post
    • Title
      • [L4D2] Chapter Statistical Report
    • Description
      • Plugin that allow to inform players their basic statistic such as CI & SI kills, headshot kills, and headshot accuracy. Work best in coop mode, still untested for L4D.
    • ConVar (Console Variable)
      • csr_version
        • Show CSR version
      • csr_headshot_accuracy_compare
        • Compare headshot to player's own kills / total (team) kills.
      • csr_ignore_bots_kills
        • Not counting/excluding bots kills.
      • csr_only_human_player
        • Print only human player.
    • Command
      • sm_stats
        • Show your current chapter stats.
      • sm_teamstats
        • Show team chapter stats.
    • Changelog
    • Dependencies
      • Nothing
    • Media
    • Github
      https://github.com/suganda8/chapter-statistical-report
    L 01/12/2023 - 20:07:27: [SM] Exception reported: Property "m_zombieClass" not found (entity 0/worldspawn)
    L 01/12/2023 - 20:07:27: [SM] Blaming: chapter_statistical_report.smx
    L 01/12/2023 - 20:07:27: [SM] Call stack trace:
    L 01/12/2023 - 20:07:27: [SM] [0] GetEntProp
    L 01/12/2023 - 20:07:27: [SM] [1] Line 108, C:\Users\79273\Downloads\sourcemod-1.10.0-git6545-windows\addons\sourcemod\scripting\chapter_st atistical_report.sp::Event_PlayerDeath
    BloodyBlade is offline
    mep
    Junior Member
    Join Date: Jan 2023
    Location: Under your bed
    Old 01-13-2023 , 03:52   Re: [L4D2] Chapter Statistical Report (v1.0.0, 2023-01-12)
    Reply With Quote #3

    Quote:
    Originally Posted by BloodyBlade View Post
    L 01/12/2023 - 20:07:27: [SM] Exception reported: Property "m_zombieClass" not found (entity 0/worldspawn)
    L 01/12/2023 - 20:07:27: [SM] Blaming: chapter_statistical_report.smx
    L 01/12/2023 - 20:07:27: [SM] Call stack trace:
    L 01/12/2023 - 20:07:27: [SM] [0] GetEntProp
    L 01/12/2023 - 20:07:27: [SM] [1] Line 108, C:\Users\79273\Downloads\sourcemod-1.10.0-git6545-windows\addons\sourcemod\scripting\chapter_st atistical_report.sp::Event_PlayerDeath
    Thanks, It's already fixed. For reference, that error reproduced when survivor killing a witch or any entity that have no userid.
    __________________
    Feel free to join and play with us :


    Last edited by mep; 02-03-2023 at 19:21.
    mep is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 01-13-2023 , 11:12   Re: [L4D2] Chapter Statistical Report (v1.0.0, 2023-01-12)
    Reply With Quote #4

    Quote:
    Originally Posted by mep View Post
    Thanks, It's already fixed. For reference, that error reproduced when survivor killing a witch or any entity that have no userid.
    Fixed warnings.
    #pragma tabsize 0 replaced with #pragma newdecls required
    Attached Files
    File Type: sp Get Plugin or Get Source (chapter_statistical_report.sp - 189 views - 9.5 KB)
    BloodyBlade is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 01-25-2023 , 05:36   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #5

    This plugin should work in the first part as well
    __________________
    Ja-Forces is offline
    mep
    Junior Member
    Join Date: Jan 2023
    Location: Under your bed
    Old 01-26-2023 , 11:20   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #6

    Quote:
    Originally Posted by Ja-Forces View Post
    This plugin should work in the first part as well
    sorry but what first part? Left 4 Dead?
    if yes, welp i think so, but i don't have Left 4 Dead game to test it
    __________________
    Feel free to join and play with us :


    Last edited by mep; 02-03-2023 at 19:21.
    mep is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 01-26-2023 , 12:18   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #7

    Yes, in the game left 4 dead 1 also works
    __________________
    Ja-Forces is offline
    z282846139
    Member
    Join Date: Aug 2018
    Old 01-28-2023 , 03:55   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #8

    Will the info auto print by seconds? Or it can only print when player type command?
    z282846139 is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 01-28-2023 , 05:02   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #9

    Quote:
    HookEvent("map_transition", Event_MapTransition, EventHookMode_Pre);
    HookEvent("finale_win", Event_FinaleWin, EventHookMode_Pre);
    Statistics are fired at the end of each map/end credits
    Quote:
    RegConsoleCmd("sm_stats", Command_Statistic, "Display the current stats to client's chat. Stats will reset every chapter finished or chapter failed");
    RegConsoleCmd("sm_teamstats", Command_TeamStatistic, "Display the current team stats to client's chat. Stats will reset every chapter finished or chapter failed");
    and by using commands !stats and !teamstats .
    __________________
    Ja-Forces is offline
    mep
    Junior Member
    Join Date: Jan 2023
    Location: Under your bed
    Old 02-02-2023 , 09:33   Re: [L4D2] Chapter Statistical Report (v1.0.2, 2023-01-14)
    Reply With Quote #10

    Quote:
    Originally Posted by Ja-Forces View Post
    Statistics are fired at the end of each map/end credits

    and by using commands !stats and !teamstats .
    I forget to add this details lmao, thanks though
    __________________
    Feel free to join and play with us :


    Last edited by mep; 02-03-2023 at 19:20.
    mep 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 10:12.


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