mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
set local player viewangles from message metadata
This commit is contained in:
parent
1a2d9ab093
commit
f92070d7ca
4 changed files with 20 additions and 10 deletions
|
|
@ -4,6 +4,7 @@ import {handleSayText2} from '../PacketHandler/SayText2';
|
|||
import {Building} from './Building';
|
||||
import {Chat} from './Chat';
|
||||
import {Death} from './Death';
|
||||
import {PacketMessage} from './Message';
|
||||
import {Packet} from './Packet';
|
||||
import {EntityId, PacketEntity} from './PacketEntity';
|
||||
import {ParserState} from './ParserState';
|
||||
|
|
@ -67,10 +68,10 @@ export class Match {
|
|||
};
|
||||
}
|
||||
|
||||
public handlePacket(packet: Packet) {
|
||||
public handlePacket(packet: Packet, message: PacketMessage) {
|
||||
switch (packet.packetType) {
|
||||
case 'packetEntities':
|
||||
handlePacketEntities(packet, this);
|
||||
handlePacketEntities(packet, this, message);
|
||||
break;
|
||||
case 'netTick':
|
||||
if (this.startTick === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue