-
Hello. I found a bug. var fs = require('fs'); var demo = require('demofile'); fs.readFile('demo.dem', function (err, buffer) {
}); |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I am not entirely sure whether |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello. yes, i have. Demo |
Beta Was this translation helpful? Give feedback.
-
So it looks like player_disconnect is not networked - you'll have to listen for the player entity being deleted. This is guaranteed to only happen at disconnect time: demoFile.entities.on('beforeremove', e => {
if (e.entity.serverClass.name !== 'CCSPlayer') {
return;
}
console.log('%s left the game', e.entity.name);
}); |
Beta Was this translation helpful? Give feedback.
So it looks like player_disconnect is not networked - you'll have to listen for the player entity being deleted. This is guaranteed to only happen at disconnect time: