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

Fix hl2dm team handling

This commit is contained in:
Robin Appelman 2018-03-10 15:45:16 +01:00
commit bc064c6195

View file

@ -39,6 +39,8 @@ export function handleHL2DMEntity(entity: PacketEntity, match: Match, message: P
if (!player.user.team && (prop.value === 2 || prop.value === 3)) {
player.user.team = prop.value === 2 ? 'red' : 'blue';
}
player.team = prop.value as number;
break;
case 'DT_BasePlayer.m_iHealth':
player.health = prop.value as number;
break;