How to use the demofile.TEAM_CTS function in demofile

To help you get started, we’ve selected a few demofile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shoffing / csgo-demo-scripts / src / damage_dealt_inferno / extract_damage.js View on Github external
let getTeam = (player) => {
        if (_.includes(demo.teams[demofile.TEAM_CTS].members.map(p => p.userId), player.userId)) {
            return "CT";
        }
        return "T";
    };
github shoffing / csgo-demo-scripts / src / 1vn / extract_1vn.js View on Github external
rxop.map(e => {
                            if (e.winner === demofile.TEAM_TERRORISTS) return {winner: 'T'};
                            else if (e.winner === demofile.TEAM_CTS) return {winner: 'CT'};
                        }),
                    );
github shoffing / csgo-demo-scripts / src / movement / extract_movement.js View on Github external
let getTeam = (player) => {
        if (_.includes(demo.teams[demofile.TEAM_CTS].members.map(p => p && p.userId), player.userId)) {
            return "CT";
        }
        return "T";
    };

demofile

A node.js library for parsing Counter-Strike Global Offensive (CSGO) demo files. The library is also Browserify-able, and a standalone bundle that you can `<script src="...">` is available in [browser/bundle.js](browser/bundle.js).

MIT
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis