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) "(.+?(?:<.+?>)*?