How Do I Record HLTV Events ? #314
-
I was looking to track HLTV events in a game, especially the Events wherein you can track when an Observer changes the POV to another player or is using a fixed camera on an elevated position (For Eg. To Display some utility usage) I found this link here below that has a list of HLTV Events for your reference: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unfortunately the only HLTV events that are recorded in demo files are function getCameraMan(): Player | null {
const cameraManAccountId = parseInt(
demoFile.conVars.vars.get("spec_autodirector_cameraman") || "0"
);
if (isNaN(cameraManAccountId) || cameraManAccountId <= 0) return null;
return demoFile.entities.getByAccountId(cameraManAccountId);
} However I don't think this |
Beta Was this translation helpful? Give feedback.
Unfortunately the only HLTV events that are recorded in demo files are
hltv_status
andhltv_chat
. You can get the camera man with the following code:However I don't think this
spec_autodirector_cameraman
convar is used. The game client does include logic for an 'auto director' that swaps between players/actions that are interesting, but this is something that you'd have to reimplement yourself.