Raised This Month: $105 Target: $400
 26% 

PsychoStats 3.1+ Spatial Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Orangutanz (13)
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-23-2008 , 21: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 - 1243 views - 6.3 KB)
File Type: sma Get Plugin or Get Source (ps_spatialstats(OLD-v1.1.1).sma - 1027 views - 8.8 KB)
File Type: sma Get Plugin or Get Source (ps_spatialstats(OLD-v1.1.2).sma - 1179 views - 11.2 KB)
File Type: sma Get Plugin or Get Source (ps_heatmaps.sma - 1266 views - 10.0 KB)
__________________

Last edited by Arkshine; 11-05-2008 at 16:36. Reason: Updated : v1.2.0
Arkshine is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 04-23-2008 , 22:08   Re: Heatmaps (for Psychostats)
Reply With Quote #2

Wow. I really love this idea.

Too bad I don't have PS.

Good job
+karma
FuZ!on is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 04-24-2008 , 15:11   Re: Heatmaps (for Psychostats)
Reply With Quote #3

Quote:
Originally Posted by FuZ!on View Post
Wow. I really love this idea.

Too bad I don't have PS.

Good job
+karma

the same !
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
mats
Senior Member
Join Date: Jan 2005
Old 04-24-2008 , 15:36   Re: Heatmaps (for Psychostats)
Reply With Quote #4

Quote:
Originally Posted by The_Thing View Post
the same !
If you want it, take it its free;)

I have 4 psychostats sites.

and thx for the plugin
__________________
mats is offline
raffe2
Member
Join Date: Dec 2005
Old 04-25-2008 , 15:25   Re: Heatmaps (for Psychostats)
Reply With Quote #5

Everything important about this in one post, good work arkshine!
raffe2 is offline
noonoo
Senior Member
Join Date: Mar 2006
Location: London - UK
Old 05-05-2008 , 22:18   Re: Heatmaps (for Psychostats)
Reply With Quote #6

Perfect thanks
noonoo is offline
lifo
Junior Member
Join Date: Feb 2008
Old 05-30-2008 , 14:32   Re: Heatmaps (for Psychostats)
Reply With Quote #7

For more information regarding Heatmaps please see the PsychoStats documentation:

http://www.psychostats.com/doc/Heatmaps

And for information on how to create your own image overlays (which are used to create heatmaps for custom maps) please see the following documentation:

http://www.psychostats.com/doc/Heatmap_Setup

Thanks!
lifo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-30-2008 , 15:39   Re: Heatmaps (for Psychostats)
Reply With Quote #8

I've updated a bit the 'additionnals notes'. Thanks.
__________________
Arkshine is offline
freamer
Member
Join Date: Nov 2005
Old 08-19-2008 , 09:45   Re: Heatmaps (for Psychostats)
Reply With Quote #9

Does this one differ from the one shipped with psychostats?
freamer is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-19-2008 , 10:10   Re: Heatmaps (for Psychostats)
Reply With Quote #10

It's the same. ;)

By the way, I remember that I have to update this plugin.
__________________
Arkshine 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 15:29.


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