Raised This Month: $ Target: $400
 0% 

PsychoStats 3.1+ Spatial Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Orangutanz (13)
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-23-2008 , 20:15   PsychoStats 3.1+ Spatial Plugin
Reply With Quote #1

PsychoStats 3.1+ Spatial Plugin

( Current version v1.2.0 ; Last update : 5 Nov 2008 )

Introduction :
- - - - - - - - - - -
  • Original idea and SourceMod plugin : Stormtrooper
  • Conversion/adaptation for HL1 mods requested by mats : [ Here ]
  • Description stolen from css ( SourceMod plugin ) : [ Here ]


Description :
- - - - - - - - - -
Spatial statistics logging plugin.

This plugin will add extra logging information to player death events.
With the extra information it is possible to generate heatmaps of where players die, where players get kills, what weapons were used and lots of more finer details.

Requires Psychostats 3.1+.

Heatmap in Counter-Strike: Source de_dust2

[IMG]http://img185.**************/img185/6213/dedust2heatmd6bb3.jpg[/IMG]


Heatmap in Counter-Strike: Source cs_italy

[IMG]http://img179.**************/img179/696/csitalyheatqu8lx2.jpg[/IMG]

This plugin does merely the logging. Psychostats is REQUIRED to generate the heatmaps from the log events.
It is possible to install this plugin before having Psychostats installation. You'll then have proper log events stored in your log files so Psychostats can process them any time later.


Requirement :
- - - - - - - - - - -
Modules :
- - - - - - -
  • fakemeta

How to add support for custom messages ? :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you want to add spatial stats for your plugin which uses either log_message() or engfunc( FM_AlertMessage, _ ) ( because not hookable ),
you must follow that
:
  1. In this plugin :

    • Uncomment this define ( // #define SUPPORT_CUSTOM_MESSAGES ) by removing '//' to enable the support.

  2. In your plugin :

    • Above plugin_init() function, add : native elog_message( const logmessage[], ... );
    • Replace all log_message() or engfunc( FM_AlertMessage, _ ), by elog_message().

Additional notes :
- - - - - - - - - - - - -
Changelog :
- - - - - - - - -

Quote:
v1.2.0 : [ 5 Nov 2008 ]
  • Changed method to detect event name. Less code / more efficient.
  • Changed plugin name to 'PsychoStats 3.1+ Spatial Plugin'.
  • Regex module was removed.
v1.1.2 : [ 3 Sep 2008 ]
  • Fixed invalid player error.
v1.1.1 : [ 25 Aug 2008 ]
  • Added native 'elog_message()' to support custom messages.
    For more informations, see the provided explanation.
v1.1.0 : [ 24 Aug 2008 ]
  • Plugin rewritten.
  • Using regular expression so it should be more efficient.
  • Fixed a bug with suicide.
  • Minor changements / optimizations.
v1.0.0 : [ 24 Apr 2008 ]
  • Initial release.
If you experience problems to get the compiled plugin, try this WebCompiler.
Attached Files
File Type: sma Get Plugin or Get Source (ps_spatialstats(OLD-v1.0.0).sma - 1589 views - 6.3 KB)
File Type: sma Get Plugin or Get Source (ps_spatialstats(OLD-v1.1.1).sma - 1412 views - 8.8 KB)
File Type: sma Get Plugin or Get Source (ps_spatialstats(OLD-v1.1.2).sma - 1578 views - 11.2 KB)
File Type: sma Get Plugin or Get Source (ps_heatmaps.sma - 1708 views - 10.0 KB)
__________________

Last edited by Arkshine; 11-05-2008 at 15:36. Reason: Updated : v1.2.0
Arkshine 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 09:18.


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