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

parse updated voice init

This commit is contained in:
Robin Appelman 2017-02-15 16:12:54 +01:00
commit 2e56bb8881
4 changed files with 31 additions and 6 deletions

View file

@ -96,6 +96,12 @@ export interface UnknownUserMessagePacket {
type: number;
}
export interface VoiceInitPacket {
packetType: 'voiceInit';
codec: string;
quality: number;
}
export type UserMessagePacket = SayText2Packet | TextMessagePacket | UnknownUserMessagePacket;
export type Packet = BSPDecalPacket |
@ -109,4 +115,5 @@ export type Packet = BSPDecalPacket |
ParseSoundsPacket |
SetConVarPacket |
TempEntitiesPacket |
UserMessagePacket;
UserMessagePacket |
VoiceInitPacket;

View file

@ -1,4 +1,3 @@
import * as clone from 'clone';
import {SendPropDefinition} from "./SendPropDefinition";
import {Vector} from "./Vector";
@ -13,7 +12,7 @@ export class SendProp {
clone():SendProp {
const prop = new SendProp(this.definition);
prop.value = clone(this.value, false);
prop.value = this.value;
return prop;
}
}