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:
parent
ca5188e8f6
commit
bc064c6195
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ export function handleHL2DMEntity(entity: PacketEntity, match: Match, message: P
|
||||||
if (!player.user.team && (prop.value === 2 || prop.value === 3)) {
|
if (!player.user.team && (prop.value === 2 || prop.value === 3)) {
|
||||||
player.user.team = prop.value === 2 ? 'red' : 'blue';
|
player.user.team = prop.value === 2 ? 'red' : 'blue';
|
||||||
}
|
}
|
||||||
|
player.team = prop.value as number;
|
||||||
|
break;
|
||||||
case 'DT_BasePlayer.m_iHealth':
|
case 'DT_BasePlayer.m_iHealth':
|
||||||
player.health = prop.value as number;
|
player.health = prop.value as number;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue