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:
parent
15704c89fc
commit
2e56bb8881
4 changed files with 31 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue