1
0
Fork 0
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:
Robin Appelman 2017-12-12 22:19:27 +01:00
commit f92070d7ca
4 changed files with 20 additions and 10 deletions

View file

@ -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) {