@cybermp-community/client-types 2.5.6 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/game.d.ts CHANGED
@@ -14,6 +14,7 @@ export interface MpFuncs {
14
14
  AcosF(a: number): number;
15
15
  ActivateTickForTransformAnimator(entityID: C.entEntityID, componentName: string, activate: boolean): void;
16
16
  AddFact(factName: string, factCount?: number): boolean;
17
+ AddToInventory(itemID: string, quantity?: number): void;
17
18
  AngleApproach(target: number, cur: number, step: number): number;
18
19
  AngleDistance(target: number, current: number): number;
19
20
  AngleNormalize(a: number): number;
@@ -175,6 +176,8 @@ export interface MpFuncs {
175
176
  ConvertAppearanceNameToFullSleeves(app: string): string;
176
177
  ConvertAppearanceNameToPartialSleeves(app: string): string;
177
178
  ConvertAppearanceNameToTPP(app: string): string;
179
+ ConvertCNameIntoStyleSettingsIndex(valueToConvert: string): number;
180
+ ConvertIntValueToInputScheme(valueToConvert: number): E.inputEInputScheme;
178
181
  CosF(a: number): number;
179
182
  CreateCRUID(value: bigint): string;
180
183
  CreateDisableRagdollEvent(debugSourceName: string): M.Handle<C.entRagdollDisableEvent>;
@@ -229,6 +232,7 @@ export interface MpFuncs {
229
232
  GetFixedEntityIdsFromEntityReference(puppetRef: C.gameEntityReference): C.entEntityID[];
230
233
  GetFixedEntityIdsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): C.entEntityID[];
231
234
  GetGameInstance(): C.ScriptGameInstance;
235
+ GetGameInstanceFromEngine(): C.ScriptGameInstance;
232
236
  GetGameObjectFromEntityReference(reference: C.gameEntityReference): [boolean, M.WeakHandle<C.gameObject>];
233
237
  GetGameObjectsFromSpawnerEntityID(entityID: C.entEntityID, communityEntryNames: string[]): M.Handle<C.gameObject>[];
234
238
  GetIgnoredVisionBlockerTypes(objID: C.gameStatsObjectID): C.senseVisionBlockerTypeFlags;
@@ -273,6 +277,7 @@ export interface MpFuncs {
273
277
  IntToString(value: number): string;
274
278
  IntToUint64(): void;
275
279
  IsClient(): boolean;
280
+ IsConsolePlatform(): boolean;
276
281
  IsEP1(): boolean;
277
282
  IsEntityInInteriorArea(entity: M.WeakHandle<C.entEntity>): boolean;
278
283
  IsFastForwardPossibleInVehicle(stateContext: M.Handle<C.gamestateMachineStateContextScript>, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): boolean;
@@ -280,6 +285,9 @@ export interface MpFuncs {
280
285
  IsFriendlyTowardsPlayer(object: M.WeakHandle<C.gameObject>): boolean;
281
286
  IsHost(): boolean;
282
287
  IsHostileTowardsPlayer(object: M.WeakHandle<C.gameObject>): boolean;
288
+ IsInRangeF(v: number, min: number, max: number): boolean;
289
+ IsInRangeI(v: number, min: number, max: number): boolean;
290
+ IsLanguageVoicePackInstallEnabled(): boolean;
283
291
  IsLanguageVoicePackInstalled(language: string): boolean;
284
292
  IsMultiplayer(): boolean;
285
293
  IsNameValid(n: string): boolean;
@@ -329,16 +337,16 @@ export interface MpFuncs {
329
337
  NoScreenMessage(): C.gameSimpleScreenMessage;
330
338
  NoTrailZeros(str: M.ScriptRef<string>): string;
331
339
  NodeRefToHash(value: string): bigint;
332
- OperatorAdd(o: M.Handle<C.gameObject>, s: string): string;
333
- OperatorAdd(s: string, stat: E.gamedataStatType): string;
334
340
  OperatorAdd(stat: E.gamedataStatType, s: string): string;
341
+ OperatorAdd(s: string, att: E.EAIAttitude): string;
342
+ OperatorAdd(s: string, stat: E.gamedataStatType): string;
343
+ OperatorAdd(s: string, o: M.Handle<C.gameObject>): string;
335
344
  OperatorAdd(s: string, mode: E.gamecheatsystemFlag): string;
345
+ OperatorAdd(o: M.Handle<C.gameObject>, s: string): string;
336
346
  OperatorAdd(mode: E.gameGodModeType, s: string): string;
337
- OperatorAdd(mode: E.gamecheatsystemFlag, s: string): string;
338
- OperatorAdd(s: string, o: M.Handle<C.gameObject>): string;
339
- OperatorAdd(att: E.EAIAttitude, s: string): string;
340
- OperatorAdd(s: string, att: E.EAIAttitude): string;
341
347
  OperatorAdd(s: string, mode: E.gameGodModeType): string;
348
+ OperatorAdd(att: E.EAIAttitude, s: string): string;
349
+ OperatorAdd(mode: E.gamecheatsystemFlag, s: string): string;
342
350
  "OperatorAdd;BoolScript_RefString;String"(a: boolean, b: M.ScriptRef<string>): string;
343
351
  "OperatorAdd;CNameCName;CName"(a: string, b: string): string;
344
352
  "OperatorAdd;DoubleDouble;Double"(a: number, b: number): number;
@@ -371,8 +379,8 @@ export interface MpFuncs {
371
379
  "OperatorAdd;Vector4Vector4;Vector4"(a: C.Vector4, b: C.Vector4): C.Vector4;
372
380
  "OperatorAdd;WorldPositionVector4;WorldPosition"(a: C.WorldPosition, b: C.Vector4): C.WorldPosition;
373
381
  "OperatorAdd;WorldPositionWorldPosition;WorldPosition"(a: C.WorldPosition, b: C.WorldPosition): C.WorldPosition;
374
- OperatorAnd(l: E.FTEntityRequirementsFlag, r: E.FTEntityRequirementsFlag): E.FTEntityRequirementsFlag;
375
382
  OperatorAnd(i: bigint, f: E.damageSystemLogFlags): bigint;
383
+ OperatorAnd(l: E.FTEntityRequirementsFlag, r: E.FTEntityRequirementsFlag): E.FTEntityRequirementsFlag;
376
384
  "OperatorAnd;Int16Int16;Int16"(a: number, b: number): number;
377
385
  "OperatorAnd;Int32Int32;Int32"(a: number, b: number): number;
378
386
  "OperatorAnd;Int64Int64;Int64"(a: bigint, b: bigint): bigint;
@@ -498,22 +506,23 @@ export interface MpFuncs {
498
506
  "OperatorDivide;Uint8Uint8;Uint8"(a: number, b: number): number;
499
507
  "OperatorDivide;Vector4Float;Vector4"(a: C.Vector4, b: number): C.Vector4;
500
508
  "OperatorDivide;Vector4Vector4;Vector4"(a: C.Vector4, b: C.Vector4): C.Vector4;
501
- OperatorEqual(action1: M.Handle<C.gamedeviceAction>, action2: M.Handle<C.gamedeviceAction>): boolean;
502
- OperatorEqual(var1: C.inkWidgetReference, var2: C.inkWidgetReference): boolean;
503
- OperatorEqual(x: C.redResourceReferenceScriptToken, y: C.redResourceReferenceScriptToken): boolean;
509
+ OperatorEqual(ebool: E.EBOOL, rbool: boolean): boolean;
510
+ OperatorEqual(lhs: C.redResourceAsyncRefWrapper, rhs: C.redResourceReferenceScriptToken): boolean;
504
511
  OperatorEqual(rbool: boolean, ebool: E.EBOOL): boolean;
505
- OperatorEqual(l1: C.DeviceLink, l2: C.DeviceLink): boolean;
506
- OperatorEqual(ps: M.Handle<C.gamePersistentState>, link: C.DeviceLink): boolean;
507
512
  OperatorEqual(hudInstance1: M.Handle<C.ModuleInstance>, hudInstance2: M.Handle<C.ModuleInstance>): boolean;
508
- OperatorEqual(x: C.redResourceReferenceScriptToken, y: C.redResourceReferenceScriptToken): boolean;
513
+ OperatorEqual(action1: M.Handle<C.gamedeviceAction>, action2: M.Handle<C.gamedeviceAction>): boolean;
509
514
  OperatorEqual(action1: M.Handle<C.PuppetAction>, action2: M.Handle<C.PuppetAction>): boolean;
515
+ OperatorEqual(record_1: C.gameItemID, record_2: string): boolean;
516
+ OperatorEqual(target: M.Handle<C.Target>, goTarget: M.WeakHandle<C.gameObject>): boolean;
517
+ OperatorEqual(ps: M.Handle<C.gamePersistentState>, link: C.DeviceLink): boolean;
510
518
  OperatorEqual(link: C.DeviceLink, ps: M.Handle<C.gamePersistentState>): boolean;
511
519
  OperatorEqual(record_1: string, record_2: C.gameItemID): boolean;
512
- OperatorEqual(ebool: E.EBOOL, rbool: boolean): boolean;
513
- OperatorEqual(goTarget: M.WeakHandle<C.gameObject>, target: M.Handle<C.Target>): boolean;
514
- OperatorEqual(target: M.Handle<C.Target>, goTarget: M.WeakHandle<C.gameObject>): boolean;
515
520
  OperatorEqual(documentAdress1: C.SDocumentAdress, documentAdress2: C.SDocumentAdress): boolean;
516
- OperatorEqual(record_1: C.gameItemID, record_2: string): boolean;
521
+ OperatorEqual(x: C.redResourceReferenceScriptToken, y: C.redResourceReferenceScriptToken): boolean;
522
+ OperatorEqual(goTarget: M.WeakHandle<C.gameObject>, target: M.Handle<C.Target>): boolean;
523
+ OperatorEqual(x: C.redResourceReferenceScriptToken, y: C.redResourceReferenceScriptToken): boolean;
524
+ OperatorEqual(var1: C.inkWidgetReference, var2: C.inkWidgetReference): boolean;
525
+ OperatorEqual(l1: C.DeviceLink, l2: C.DeviceLink): boolean;
517
526
  "OperatorEqual;DelayIDDelayID;Bool"(a: C.gameDelayID, b: C.gameDelayID): boolean;
518
527
  "OperatorEqual;DoubleDouble;Bool"(a: number, b: number): boolean;
519
528
  "OperatorEqual;EngineTimeEngineTime;Bool"(a: C.EngineTime, b: C.EngineTime): boolean;
@@ -531,10 +540,10 @@ export interface MpFuncs {
531
540
  "OperatorEqual;Uint32Uint32;Bool"(a: number, b: number): boolean;
532
541
  "OperatorEqual;Uint64Uint64;Bool"(a: bigint, b: bigint): boolean;
533
542
  "OperatorEqual;Uint8Uint8;Bool"(a: number, b: number): boolean;
534
- OperatorGreater(enum1: E.ESecurityAreaType, enum2: E.ESecurityAreaType): boolean;
535
- OperatorGreater(enum1: E.ESecurityNotificationType, enum2: E.ESecurityNotificationType): boolean;
536
543
  OperatorGreater(enum1: E.ESecurityAccessLevel, enum2: E.ESecurityAccessLevel): boolean;
544
+ OperatorGreater(enum1: E.ESecurityNotificationType, enum2: E.ESecurityNotificationType): boolean;
537
545
  OperatorGreater(q1: E.gamedataQuality, q2: E.gamedataQuality): boolean;
546
+ OperatorGreater(enum1: E.ESecurityAreaType, enum2: E.ESecurityAreaType): boolean;
538
547
  OperatorGreater(enum1: E.gameCityAreaType, enum2: E.gameCityAreaType): boolean;
539
548
  OperatorGreater(enum1: E.ESecuritySystemState, enum2: E.ESecuritySystemState): boolean;
540
549
  "OperatorGreater;DoubleDouble;Bool"(a: number, b: number): boolean;
@@ -550,9 +559,9 @@ export interface MpFuncs {
550
559
  "OperatorGreater;Uint32Uint32;Bool"(a: number, b: number): boolean;
551
560
  "OperatorGreater;Uint64Uint64;Bool"(a: bigint, b: bigint): boolean;
552
561
  "OperatorGreater;Uint8Uint8;Bool"(a: number, b: number): boolean;
553
- OperatorGreaterEqual(activeMode1: E.ActiveMode, activeMode2: E.ActiveMode): boolean;
554
562
  OperatorGreaterEqual(enum1: E.ESecurityNotificationType, enum2: E.ESecurityNotificationType): boolean;
555
563
  OperatorGreaterEqual(q1: E.gamedataQuality, q2: E.gamedataQuality): boolean;
564
+ OperatorGreaterEqual(activeMode1: E.ActiveMode, activeMode2: E.ActiveMode): boolean;
556
565
  "OperatorGreaterEqual;DoubleDouble;Bool"(a: number, b: number): boolean;
557
566
  "OperatorGreaterEqual;EngineTimeEngineTime;Bool"(a: C.EngineTime, b: C.EngineTime): boolean;
558
567
  "OperatorGreaterEqual;EngineTimeFloat;Bool"(a: C.EngineTime, b: number): boolean;
@@ -567,11 +576,11 @@ export interface MpFuncs {
567
576
  "OperatorGreaterEqual;Uint64Uint64;Bool"(a: bigint, b: bigint): boolean;
568
577
  "OperatorGreaterEqual;Uint8Uint8;Bool"(a: number, b: number): boolean;
569
578
  OperatorLess(enum1: E.ESecurityNotificationType, enum2: E.ESecurityNotificationType): boolean;
579
+ OperatorLess(enum1: E.ESecurityAreaType, enum2: E.ESecurityAreaType): boolean;
570
580
  OperatorLess(enum1: E.ESecuritySystemState, enum2: E.ESecuritySystemState): boolean;
571
- OperatorLess(enum1: E.ESecurityAccessLevel, enum2: E.ESecurityAccessLevel): boolean;
572
581
  OperatorLess(q1: E.gamedataQuality, q2: E.gamedataQuality): boolean;
573
- OperatorLess(enum1: E.ESecurityAreaType, enum2: E.ESecurityAreaType): boolean;
574
582
  OperatorLess(f1: E.hitFlag, f2: E.hitFlag): boolean;
583
+ OperatorLess(enum1: E.ESecurityAccessLevel, enum2: E.ESecurityAccessLevel): boolean;
575
584
  "OperatorLess;DoubleDouble;Bool"(a: number, b: number): boolean;
576
585
  "OperatorLess;EngineTimeEngineTime;Bool"(a: C.EngineTime, b: C.EngineTime): boolean;
577
586
  "OperatorLess;EngineTimeFloat;Bool"(a: C.EngineTime, b: number): boolean;
@@ -586,9 +595,9 @@ export interface MpFuncs {
586
595
  "OperatorLess;Uint32Uint32;Bool"(a: number, b: number): boolean;
587
596
  "OperatorLess;Uint64Uint64;Bool"(a: bigint, b: bigint): boolean;
588
597
  "OperatorLess;Uint8Uint8;Bool"(a: number, b: number): boolean;
598
+ OperatorLessEqual(q1: E.gamedataQuality, q2: E.gamedataQuality): boolean;
589
599
  OperatorLessEqual(activeMode1: E.ActiveMode, activeMode2: E.ActiveMode): boolean;
590
600
  OperatorLessEqual(enum1: E.ESecurityNotificationType, enum2: E.ESecurityNotificationType): boolean;
591
- OperatorLessEqual(q1: E.gamedataQuality, q2: E.gamedataQuality): boolean;
592
601
  "OperatorLessEqual;DoubleDouble;Bool"(a: number, b: number): boolean;
593
602
  "OperatorLessEqual;EngineTimeEngineTime;Bool"(a: C.EngineTime, b: C.EngineTime): boolean;
594
603
  "OperatorLessEqual;EngineTimeFloat;Bool"(a: C.EngineTime, b: number): boolean;
@@ -650,8 +659,9 @@ export interface MpFuncs {
650
659
  "OperatorNeg;Quaternion;Quaternion"(a: C.Quaternion): C.Quaternion;
651
660
  "OperatorNeg;Vector4;Vector4"(b: C.Vector4): C.Vector4;
652
661
  "OperatorNeg;WorldPosition;WorldPosition"(b: C.WorldPosition): C.WorldPosition;
653
- OperatorNotEqual(ebool: E.EBOOL, rbool: boolean): boolean;
654
662
  OperatorNotEqual(rbool: boolean, ebool: E.EBOOL): boolean;
663
+ OperatorNotEqual(lhs: C.redResourceAsyncRefWrapper, rhs: C.redResourceReferenceScriptToken): boolean;
664
+ OperatorNotEqual(ebool: E.EBOOL, rbool: boolean): boolean;
655
665
  "OperatorNotEqual;DelayIDDelayID;Bool"(a: C.gameDelayID, b: C.gameDelayID): boolean;
656
666
  "OperatorNotEqual;DoubleDouble;Bool"(a: number, b: number): boolean;
657
667
  "OperatorNotEqual;EngineTimeEngineTime;Bool"(a: C.EngineTime, b: C.EngineTime): boolean;
@@ -670,8 +680,8 @@ export interface MpFuncs {
670
680
  "OperatorNotEqual;Uint64Uint64;Bool"(a: bigint, b: bigint): boolean;
671
681
  "OperatorNotEqual;Uint8Uint8;Bool"(a: number, b: number): boolean;
672
682
  OperatorOr(l: E.FTEntityRequirementsFlag, r: E.FTEntityRequirementsFlag): E.FTEntityRequirementsFlag;
673
- OperatorOr(i: bigint, f: E.damageSystemLogFlags): bigint;
674
683
  OperatorOr(f1: E.damageSystemLogFlags, f2: E.damageSystemLogFlags): bigint;
684
+ OperatorOr(i: bigint, f: E.damageSystemLogFlags): bigint;
675
685
  OperatorOr(f: E.damageSystemLogFlags, i: bigint): bigint;
676
686
  "OperatorOr;DMGPipelineTypeDMGPipelineType;DMGPipelineType"(a: E.gameDamageListenerPipelineType, b: E.gameDamageListenerPipelineType): E.gameDamageListenerPipelineType;
677
687
  "OperatorOr;Int16Int16;Int16"(a: number, b: number): number;
@@ -756,17 +766,28 @@ export interface MpFuncs {
756
766
  RepToggleGamePause(): void;
757
767
  ReportFailure(message: M.ScriptRef<string>): boolean;
758
768
  RequestInstallLanguagePackDialog(language: string): void;
769
+ ResetGyroAndPatternRestrictions(scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
759
770
  ResolveNodeRef(id: string, context: C.worldGlobalNodeRef): C.worldGlobalNodeRef;
760
771
  ResolveNodeRefWithEntityID(id: string, context: C.entEntityID): C.worldGlobalNodeRef;
761
772
  RoundF(a: number): number;
762
773
  RoundFEx(a: number): number;
763
774
  RoundMath(f: number): number;
764
775
  RoundTo(f: number, decimal: number): number;
776
+ ScriptLog(text: M.ScriptRef<string>): void;
777
+ ScriptLogError(text: M.ScriptRef<string>): void;
778
+ ScriptLogWarning(text: M.ScriptRef<string>): void;
765
779
  SelectWidgets(widget: M.Handle<C.inkWidget>, selectionRule?: E.inkSelectionRule, param?: string): M.Handle<C.inkWidgetsSet>;
766
780
  SendInputHintData(show: boolean, data: M.ScriptRef<C.gameuiInputHintData>, targetHintContainer?: string): void;
767
781
  ServerAddPingTarget(pingEntry: C.gamePingEntry): void;
768
782
  SetDefaultStatPoolModifiers(statPoolTypeString: M.ScriptRef<string>, statPoolModType: E.gameStatPoolModificationTypes): void;
769
783
  SetFactValue(factName: string, factCount: number): boolean;
784
+ SetValue_ActivateGyroAimingForAiming(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
785
+ SetValue_ActivateGyroAimingForRangedWeapons(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
786
+ SetValue_DodgeStatRestriction(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
787
+ SetValue_GyroAimingIsShootingWithRangedWeapon(value: boolean): void;
788
+ SetValue_MeleeWeaponRestrictedForPatterns(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
789
+ SetValue_NonThrowableWeaponRestriction(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
790
+ SetValue_ThrowableWeaponRestriction(value: boolean, scriptInterface: M.Handle<C.gamestateMachineGameScriptInterface>): void;
770
791
  SgnF(a: number): number;
771
792
  SinF(a: number): number;
772
793
  SortHandleWithValueArray(arr: M.ScriptRef<C.scriptOptimizationsHandleWithValue[]>): void;