1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

set local player viewangles from message metadata

This commit is contained in:
Robin Appelman 2017-12-12 22:19:27 +01:00
commit f92070d7ca
4 changed files with 20 additions and 10 deletions

View file

@ -3,7 +3,7 @@ const fs = require('fs');
const argv = require('minimist')(process.argv.slice(2), {boolean: true});
if (argv._.length !== 1) {
console.log('Usage: "node analyse [--strings] [--dump] [--head] [--event-list] [--create-event-definitions] FILE"');
console.log('Usage: "node analyse [--strings] [--slow] [--dump] [--head] [--event-list] [--create-event-definitions] FILE"');
process.exit(1);
}
@ -15,7 +15,7 @@ const echo = function (data) {
fs.readFile(argv._[0], function (err, data) {
if (err) throw err;
const demo = Demo.fromNodeBuffer(data);
const analyser = demo.getAnalyser(true);
const analyser = demo.getAnalyser(!argv.slow);
const head = analyser.getHeader();
if (argv.head) {
echo(head);