From e056c0b2650de303fb59c1afe15a7c7bd8fe66cf Mon Sep 17 00:00:00 2001 From: george Date: Thu, 20 Jun 2019 16:57:20 +0100 Subject: [PATCH] HLstatsX is a joke. --- scripts/hlstats.pl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/hlstats.pl b/scripts/hlstats.pl index 64927e9..46a1b24 100644 --- a/scripts/hlstats.pl +++ b/scripts/hlstats.pl @@ -2447,6 +2447,26 @@ while ($loop = &getLine()) { &getProperties($ev_properties) ); } + } elsif ($s_output =~ /^"(.+?(?:<.+?>)*?)" (say|say_team|say_squad) "(.+)"(.*)$/) { + # player input is volatile and can literally be anything why was this not like this before??? hlxstats CE is literally a joke + $ev_player = $1; + $ev_verb = $2; #say, say team etc + $ev_obj_a = $3; + $ev_properties = $4; + %ev_properties = &getProperties($ev_properties); + + my $playerinfo = &getPlayerInfo($ev_player, 1); + + $ev_type = 14; + + if ($playerinfo) { + $ev_status = &doEvent_Chat( + $ev_verb, + $playerinfo->{"userid"}, + $playerinfo->{"uniqueid"}, + $ev_obj_a + ); + } } elsif ($s_output =~ /^ (?:\(DEATH\))? # l4d prefix, such as (DEATH) or (INCAP) "(.+?(?:<.+?>)*?