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

[TF2] "player_score" event emulation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Erika
New Member
Join Date: Sep 2009
Plugin ID:
1133
Plugin Version:
1.0.0.0
Plugin Category:
Statistical
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Emulate the "player_score" event for TF2, lacking in Source engine
    Old 09-04-2009 , 11:26   [TF2] "player_score" event emulation
    Reply With Quote #1

    This plugin aims to emulate the lacking of "player_score" event fires in Source engine.

    It uses the following events in order to fire the "player_score" event :
    • player_death
    • player_escort_score
    • entity_killed (mainly redondant with "player_death", but used just in case...)
    • teamplay_point_captured
    • teamplay_capture_blocked
    • object_destroyed
    As of today, I think that these events treat all the cases where a player improves his score (domination being related to a player death, and revenge not modifying score). Attackers and assisters are managed, like in the game.

    The plugin also add a line in the server logs, specifying the new score for the related player. So, this log can be parsed by a third-party software in order to compute stats, real-time monitoring, etc...
    Note that the log line added is TF2 specific, as it contains related player team, as opposed than the "%L" format which does not include it.
    Feel free to suppress this functionality if you need (1-line comment) ;-)

    The fired "player_score" event can be triggered by Sourcemod plugins (not tested, but there's no reason it can't) and by Source Engine plugins (tested !).

    To close this description, this plugin development is a little part of a personal (working) project, providing a TF2 web-based *realtime* scoreboard, with same look as the client. This had been made possible by the development of a specific java-applet, which acts as a UDP-client, catching on-the-fly network info delivered by a Perl UDP server, which parses Source server logs to get the needed info.

    Hope it helps...
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2-playerscore-emul.sp - 1697 views - 5.7 KB)

    Last edited by Erika; 09-11-2009 at 13:25.
    Erika is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 12:27   Re: [TF2] "player_score" event emulation
    Reply With Quote #2

    Remove the compiled .smx file please.
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    Erika
    New Member
    Join Date: Sep 2009
    Old 09-11-2009 , 13:26   Re: [TF2] "player_score" event emulation
    Reply With Quote #3

    Done.
    Erika is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 13:40   Re: [TF2] "player_score" event emulation
    Reply With Quote #4

    approved
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni 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 09:08.


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