I'm writing a plugin and so far everything works except logging of console commands from a .cfg file to an HLTV recorded demo. This works correctly using standard rcon (example at bottom of post)
Example match.cfg
Code:
log on
mp_autokick 0
mp_autocrosshair 0
more.....
I'm currently doing the following:
Code:
ServerCommand('tv_record 2009-02-24-1200-de_dust2');
^^ code simplified as it's just showing command used
Then from a separate menu item:
Code:
ServerCommand("exec match.cfg");
The HLTV demo doesn't 'record' the settings used in the match.cfg file. It does however create a log file with the settings correctly listed.
The HLTV demo is recorded and the config executed.
Is there a way using Source Mod to 'record' the settings used in the match.cfg file in an HLTV demo?
------------------------------
As a comparison, if I use standard rcon on a server and do:
Code:
rcon tv_record testdem
rcon exec match.cfg
The HLTV demo correctly 'records' the settings applied from the match.cfg file
ie using the config extract above, both 'mp_autokick 0' and 'mp_autocrosshair 0' will show to a user running the HLTV demo and looking at console.