mirror of
https://github.com/demostf/demo.js
synced 2026-06-03 16:44:12 +02:00
don't always fallback to blue team
This commit is contained in:
parent
56442cab7b
commit
a1bba89c71
3 changed files with 5 additions and 9 deletions
|
|
@ -36,7 +36,7 @@ export function handleHL2DMEntity(entity: PacketEntity, match: Match, message: P
|
|||
const propName = prop.definition.ownerTableName + '.' + prop.definition.name;
|
||||
switch (propName) {
|
||||
case 'DT_BaseEntity.m_iTeamNum':
|
||||
if (!player.user.team) {
|
||||
if (!player.user.team && (prop.value === 2 || prop.value === 3)) {
|
||||
player.user.team = prop.value === 2 ? 'red' : 'blue';
|
||||
}
|
||||
case 'DT_BasePlayer.m_iHealth':
|
||||
|
|
|
|||
|
|
@ -158,8 +158,7 @@
|
|||
"classes": {},
|
||||
"name": " eFPS | SourceTV | NA #3",
|
||||
"steamId": "BOT",
|
||||
"userId": 2,
|
||||
"team": "blue"
|
||||
"userId": 2
|
||||
},
|
||||
"23": {
|
||||
"classes": {},
|
||||
|
|
|
|||
|
|
@ -154,22 +154,19 @@
|
|||
"classes": {},
|
||||
"name": " eFPS | SourceTV | NA #1",
|
||||
"steamId": "BOT",
|
||||
"userId": 2,
|
||||
"team": "blue"
|
||||
"userId": 2
|
||||
},
|
||||
"115": {
|
||||
"classes": {},
|
||||
"name": "[VDuS] Carbon",
|
||||
"steamId": "[U:1:52900516]",
|
||||
"userId": 115,
|
||||
"team": "blue"
|
||||
"userId": 115
|
||||
},
|
||||
"116": {
|
||||
"classes": {},
|
||||
"name": "SE.Hammarn",
|
||||
"steamId": "[U:1:10585582]",
|
||||
"userId": 116,
|
||||
"team": "blue"
|
||||
"userId": 116
|
||||
}
|
||||
},
|
||||
"deaths": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue