Raised This Month: $ Target: $400
 0% 

[CS:GO] Playback demo server-side?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Timon5022
Junior Member
Join Date: Jun 2005
Old 03-07-2016 , 15:24   [CS:GO] Playback demo server-side?
Reply With Quote #1

Hi guys,

I am interested in gathering some data from player demo's in CSGO. So if I have a simple SourceMod plugin running on my server, which hooks into the "player_death" event, counting the amount of deaths a player has. Would it then be possible for me to playback a demo on my server while the plugin is running and have the plugin gathering data through that event hook?

Last edited by Timon5022; 03-07-2016 at 15:24.
Timon5022 is offline
Send a message via MSN to Timon5022
th7nder
Senior Member
Join Date: Oct 2014
Old 03-07-2016 , 16:29   Re: [CS:GO] Playback demo server-side?
Reply With Quote #2

I am afraid you cannot, but you can parse .dem files through some script, for example in python and from there you can without bigger problem decode it and get how much time certain players died.
th7nder is offline
Timon5022
Junior Member
Join Date: Jun 2005
Old 03-10-2016 , 07:36   Re: [CS:GO] Playback demo server-side?
Reply With Quote #3

Thank you for the response, I was afraid that would be the answer. I am not aware of how much data you can extract from .dem files, but I was interested in more than simple statistics than death, but thank you for the suggestion nonetheless.
Timon5022 is offline
Send a message via MSN to Timon5022
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 03-10-2016 , 15:17   Re: [CS:GO] Playback demo server-side?
Reply With Quote #4

You can, but not via any live function, so after map change it can be done. It can possibly be gatherd live, but it will have to be delayed. So you can create a plugin with callbacks hocks etc and make it analyze the demo and get the info you need, and or, create a plugin that records a demo upon hoocks.

https://forums.alliedmods.net/showthread.php?p=1861742

Maybe this plugin can help you when it comes to hoocks and stuff?
checkster 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 02:12.


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