Raised This Month: $ Target: $400
 0% 

[TF2] "player_score" event emulation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 1712 views - 5.7 KB)

    Last edited by Erika; 09-11-2009 at 13:25.
    Erika is offline
     



    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 06:57.


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