@cybermp/client-types 1.1.11 → 1.2.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/out/classes.d.ts +24805 -24805
- package/out/index.d.ts +106 -106
- package/out/precomputed/game.d.ts +31 -35
- package/out/precomputed/primitives.d.ts +25 -25
- package/package.json +1 -1
package/out/index.d.ts
CHANGED
|
@@ -7,25 +7,25 @@ interface MpFuncs {
|
|
|
7
7
|
"Abs"(a: number): number;
|
|
8
8
|
"AbsF"(a: number): number;
|
|
9
9
|
"AcosF"(a: number): number;
|
|
10
|
-
"ActivateTickForTransformAnimator"(entityID: entEntityID, componentName: string, activate: boolean):
|
|
10
|
+
"ActivateTickForTransformAnimator"(entityID: entEntityID, componentName: string, activate: boolean): void;
|
|
11
11
|
"AddFact"(factName: string, factCount?: number): boolean;
|
|
12
|
-
"AIInstantiateObject"():
|
|
13
|
-
"AIInstantiatePrototype"():
|
|
14
|
-
"AIReleaseObject"():
|
|
12
|
+
"AIInstantiateObject"(): void;
|
|
13
|
+
"AIInstantiatePrototype"(): void;
|
|
14
|
+
"AIReleaseObject"(): void;
|
|
15
15
|
"AngleApproach"(target: number, cur: number, step: number): number;
|
|
16
16
|
"AngleDistance"(target: number, current: number): number;
|
|
17
17
|
"AngleNormalize"(a: number): number;
|
|
18
18
|
"AngleNormalize180"(a: number): number;
|
|
19
|
-
"ApplyStatPoolModifier"(statPoolTypeString: ScriptRef<string>, rangeBegin: number, rangeEnd: number, startDelay: number, valuePerSec: number, delayOnChange: boolean, statPoolModType:
|
|
19
|
+
"ApplyStatPoolModifier"(statPoolTypeString: ScriptRef<string>, rangeBegin: number, rangeEnd: number, startDelay: number, valuePerSec: number, delayOnChange: boolean, statPoolModType: CyberEnums.gameStatPoolModificationTypes): void;
|
|
20
20
|
"AreDebugContextsEnabled"(): boolean;
|
|
21
|
-
"ArmouryEquipWeapon"(itemID: gameItemID, QuickslotID: number):
|
|
21
|
+
"ArmouryEquipWeapon"(itemID: gameItemID, QuickslotID: number): void;
|
|
22
22
|
"ArraySort"(arr: number[]): number[];
|
|
23
|
-
"ArraySortFloats"():
|
|
24
|
-
"ArraySortInts"():
|
|
23
|
+
"ArraySortFloats"(): void;
|
|
24
|
+
"ArraySortInts"(): void;
|
|
25
25
|
"ArraySortReverse"(arr: number[]): number[];
|
|
26
|
-
"ArraySortStrings"():
|
|
26
|
+
"ArraySortStrings"(): void;
|
|
27
27
|
"AsinF"(a: number): number;
|
|
28
|
-
"AT_AddATID"(widget: WeakHandle<inkWidget>, atid: ScriptRef<string>):
|
|
28
|
+
"AT_AddATID"(widget: WeakHandle<inkWidget>, atid: ScriptRef<string>): void;
|
|
29
29
|
"AtanF"(a: number, b: number): number;
|
|
30
30
|
"BasicAvailabilityTest"(device: Handle<ScriptableDeviceComponentPS>): boolean;
|
|
31
31
|
"BoolToString"(value: boolean): string;
|
|
@@ -37,9 +37,9 @@ interface MpFuncs {
|
|
|
37
37
|
"Clamp"(v: number, min: number, max: number): number;
|
|
38
38
|
"ClampF"(v: number, min: number, max: number): number;
|
|
39
39
|
"ColorToHexString"(value: ScriptRef<Color>): string;
|
|
40
|
-
"Compare"(comparator:
|
|
40
|
+
"Compare"(comparator: CyberEnums.ECompareOp, val1: number, val2: number): boolean;
|
|
41
41
|
"CompareArrayNameContents"(arr1: string[], arr2: string[]): boolean;
|
|
42
|
-
"CompareF"(comparator:
|
|
42
|
+
"CompareF"(comparator: CyberEnums.ECompareOp, val1: number, val2: number): boolean;
|
|
43
43
|
"CosF"(a: number): number;
|
|
44
44
|
"CreateDisableRagdollEvent"(debugSourceName: string): Handle<entRagdollDisableEvent>;
|
|
45
45
|
"CreateEntityReference"(nodeRefString: ScriptRef<string>, communityEntryNames: string[]): gameEntityReference;
|
|
@@ -47,15 +47,15 @@ interface MpFuncs {
|
|
|
47
47
|
"CreateForceRagdollNoPowerPoseEvent"(debugSourceName: string): Handle<entRagdollActivationRequestEvent>;
|
|
48
48
|
"CreateForceRagdollWithCustomFilterDataEvent"(customFilterData: string, debugSourceName: string): Handle<entRagdollActivationRequestEvent>;
|
|
49
49
|
"CreatePersistentID"(entityID: entEntityID, componentName?: string): gamePersistentID;
|
|
50
|
-
"CreateRagdollActivationRequestEvent"(activationType:
|
|
50
|
+
"CreateRagdollActivationRequestEvent"(activationType: CyberEnums.entragdollActivationRequestType, filterDataOverride: string, applyPowerPose: boolean, applyMomentum: boolean, debugSourceName: string): Handle<entRagdollActivationRequestEvent>;
|
|
51
51
|
"CreateRagdollApplyImpulseEvent"(worldPos: Vector4, imuplseVal: Vector4, influenceRadius: number): Handle<entRagdollApplyImpulseEvent>;
|
|
52
|
-
"Debug_WeaponSpread_Set"(useCircularDistribution: boolean, useEvenDistribution: boolean, rowCount: number, projectilesPerShot: number):
|
|
53
|
-
"DebugBreak"():
|
|
54
|
-
"DebugDevices"(shouldDebug: boolean):
|
|
55
|
-
"DebugGiveHotkeys"():
|
|
56
|
-
"DebugNPCs_NonExec"(durationStr?: string, radiusStr?: string, moveWithPlayerStr?: string):
|
|
52
|
+
"Debug_WeaponSpread_Set"(useCircularDistribution: boolean, useEvenDistribution: boolean, rowCount: number, projectilesPerShot: number): void;
|
|
53
|
+
"DebugBreak"(): void;
|
|
54
|
+
"DebugDevices"(shouldDebug: boolean): void;
|
|
55
|
+
"DebugGiveHotkeys"(): void;
|
|
56
|
+
"DebugNPCs_NonExec"(durationStr?: string, radiusStr?: string, moveWithPlayerStr?: string): void;
|
|
57
57
|
"Deg2Rad"(deg: number): number;
|
|
58
|
-
"DumpClassHierarchy"():
|
|
58
|
+
"DumpClassHierarchy"(): void;
|
|
59
59
|
"EMPTY_ENTITY_ID"(): entEntityID;
|
|
60
60
|
"EmptyInventoryItemData"(): gameInventoryItemData;
|
|
61
61
|
"EnsureFailure"(message: ScriptRef<string>): boolean;
|
|
@@ -65,31 +65,31 @@ interface MpFuncs {
|
|
|
65
65
|
"EnumValueFromString"(enumStr: ScriptRef<string>, enumValue: ScriptRef<string>): number;
|
|
66
66
|
"EnumValueToName"(enumName: string, enumValue: number): string;
|
|
67
67
|
"EnumValueToString"(enumStr: ScriptRef<string>, enumValue: number): string;
|
|
68
|
-
"EquipPickableItemOnClient"(itemID: gameItemID, quickSlotID: number):
|
|
68
|
+
"EquipPickableItemOnClient"(itemID: gameItemID, quickSlotID: number): void;
|
|
69
69
|
"ExpF"(a: number): number;
|
|
70
70
|
"FloatIsEqual"(f: number, to: number): boolean;
|
|
71
71
|
"FloatToString"(value: number): string;
|
|
72
72
|
"FloatToStringPrec"(value: number, precision: number): string;
|
|
73
73
|
"FloorF"(a: number): number;
|
|
74
|
-
"FTLog"(value: ScriptRef<string>):
|
|
75
|
-
"FTLogError"(value: ScriptRef<string>):
|
|
76
|
-
"FTLogWarning"(value: ScriptRef<string>):
|
|
77
|
-
"GameTimeIntervalContainsTime"():
|
|
74
|
+
"FTLog"(value: ScriptRef<string>): void;
|
|
75
|
+
"FTLogError"(value: ScriptRef<string>): void;
|
|
76
|
+
"FTLogWarning"(value: ScriptRef<string>): void;
|
|
77
|
+
"GameTimeIntervalContainsTime"(): void;
|
|
78
78
|
"GetActionAnimationSlideParams"(slideRecord: Handle<gamedataAIActionSlideData_Record>): gameActionAnimationSlideParams;
|
|
79
79
|
"GetAllBlackboardDefs"(): Handle<gamebbAllScriptDefinitions>;
|
|
80
|
-
"GetAnimOptionsInfiniteLoop"(loopType:
|
|
80
|
+
"GetAnimOptionsInfiniteLoop"(loopType: CyberEnums.inkanimLoopType): inkanimPlaybackOptions;
|
|
81
81
|
"GetCaptionTagsFromArray"(argList: ScriptRef<Handle<gameinteractionsChoiceCaptionPart>[]>): string;
|
|
82
82
|
"GetDamageSystemLogFlags"(): number;
|
|
83
83
|
"GetDisplaySize"(wrapperSize: Vector2, frameSize: Vector2): Vector2;
|
|
84
84
|
"GetFact"(factName: string): number;
|
|
85
85
|
"GetFilledUV"(containerSize: Vector2, contentSize: Vector2): RectF;
|
|
86
|
-
"GetFixedEntityIdsFromEntityReference"(puppetRef: gameEntityReference):
|
|
87
|
-
"GetFixedEntityIdsFromSpawnerEntityID"(entityID: entEntityID, communityEntryNames: string[]):
|
|
86
|
+
"GetFixedEntityIdsFromEntityReference"(puppetRef: gameEntityReference): void;
|
|
87
|
+
"GetFixedEntityIdsFromSpawnerEntityID"(entityID: entEntityID, communityEntryNames: string[]): void;
|
|
88
88
|
"GetGameInstance"(): ScriptGameInstance;
|
|
89
|
-
"GetGameObjectFromEntityReference"(reference: gameEntityReference): boolean;
|
|
90
|
-
"GetGameObjectsFromSpawnerEntityID"(entityID: entEntityID, communityEntryNames: string[]):
|
|
89
|
+
"GetGameObjectFromEntityReference"(reference: gameEntityReference): [boolean, WeakHandle<gameObject>];
|
|
90
|
+
"GetGameObjectsFromSpawnerEntityID"(entityID: entEntityID, communityEntryNames: string[]): void;
|
|
91
91
|
"GetIgnoredVisionBlockerTypes"(objID: gameStatsObjectID): senseVisionBlockerTypeFlags;
|
|
92
|
-
"GetImmortality"(gameObject: Handle<gameObject>): boolean;
|
|
92
|
+
"GetImmortality"(gameObject: Handle<gameObject>): [boolean, CyberEnums.gameGodModeType];
|
|
93
93
|
"GetInvalidDelayID"(): gameDelayID;
|
|
94
94
|
"GetInvalidVisionBlockerID"(): number;
|
|
95
95
|
"GetItemTypeFromContext"(context: AIbehaviorScriptExecutionContext): number;
|
|
@@ -99,11 +99,11 @@ interface MpFuncs {
|
|
|
99
99
|
"GetLocalizedTextByKey"(hashKey: string): string;
|
|
100
100
|
"GetLocalizedTextGanderDepened"(textKey: ScriptRef<string>, variantIsFemale: boolean): string;
|
|
101
101
|
"GetLocalizedTextGanderDepenedByKey"(hashKey: string, variantIsFemale: boolean): string;
|
|
102
|
-
"GetLookAtLimitDegreesValue"(limitType:
|
|
103
|
-
"GetLookAtLimitDistanceValue"(limitType:
|
|
104
|
-
"GetLookAtLimits"(softLimitDegreesType:
|
|
105
|
-
"GetLookAtStatus"(status:
|
|
106
|
-
"GetLookAtTransitionSpeed"(style:
|
|
102
|
+
"GetLookAtLimitDegreesValue"(limitType: CyberEnums.animLookAtLimitDegreesType): number;
|
|
103
|
+
"GetLookAtLimitDistanceValue"(limitType: CyberEnums.animLookAtLimitDistanceType): number;
|
|
104
|
+
"GetLookAtLimits"(softLimitDegreesType: CyberEnums.animLookAtLimitDegreesType, hardLimitDegreesType: CyberEnums.animLookAtLimitDegreesType, hardLimitDistanceType: CyberEnums.animLookAtLimitDistanceType, backLimitDegreesType: CyberEnums.animLookAtLimitDegreesType): animLookAtLimits;
|
|
105
|
+
"GetLookAtStatus"(status: CyberEnums.animLookAtStatus, currentStatus: number): boolean;
|
|
106
|
+
"GetLookAtTransitionSpeed"(style: CyberEnums.animLookAtStyle): number;
|
|
107
107
|
"GetMainPlayer"(): Handle<PlayerPuppet>;
|
|
108
108
|
"GetMountedVehicle"(object: Handle<gameObject>): WeakHandle<vehicleBaseObject>;
|
|
109
109
|
"GetNotSavableClasses"(): string[];
|
|
@@ -112,20 +112,20 @@ interface MpFuncs {
|
|
|
112
112
|
"GetPlayer"(): Handle<PlayerPuppet>;
|
|
113
113
|
"GetPlayerObject"(): Handle<gameObject>;
|
|
114
114
|
"GetPSGeneratorVersion"(): number;
|
|
115
|
-
"GetQueryMask"():
|
|
116
|
-
"GetQueryMaskAll"():
|
|
117
|
-
"GetQueryMaskNONE"():
|
|
115
|
+
"GetQueryMask"(): void;
|
|
116
|
+
"GetQueryMaskAll"(): void;
|
|
117
|
+
"GetQueryMaskNONE"(): void;
|
|
118
118
|
"GetRadioStationCurrentTrackName"(radioReceiverStationName: string): string;
|
|
119
119
|
"GetRadioStationLocalizedName"(radioStation: number): string;
|
|
120
120
|
"GetScreenPosition"(widget: WeakHandle<inkWidget>): RectF;
|
|
121
|
-
"GOGRewardSystemErrorToDisplayString"(error:
|
|
121
|
+
"GOGRewardSystemErrorToDisplayString"(error: CyberEnums.gameOnlineSystemErrors): string;
|
|
122
122
|
"HalfPi"(): number;
|
|
123
|
-
"InitializeScripts"():
|
|
124
|
-
"Int8ToInt"():
|
|
125
|
-
"IntToEPreventionHeatStage"(index: number):
|
|
126
|
-
"IntToInt8"():
|
|
123
|
+
"InitializeScripts"(): void;
|
|
124
|
+
"Int8ToInt"(): void;
|
|
125
|
+
"IntToEPreventionHeatStage"(index: number): CyberEnums.EPreventionHeatStage;
|
|
126
|
+
"IntToInt8"(): void;
|
|
127
127
|
"IntToString"(value: number): string;
|
|
128
|
-
"IntToUint64"():
|
|
128
|
+
"IntToUint64"(): void;
|
|
129
129
|
"IsClient"(): boolean;
|
|
130
130
|
"IsEntityInInteriorArea"(entity: WeakHandle<entEntity>): boolean;
|
|
131
131
|
"IsEP1"(): boolean;
|
|
@@ -143,91 +143,91 @@ interface MpFuncs {
|
|
|
143
143
|
"IsSingleplayer"(): boolean;
|
|
144
144
|
"IsStringNumber"(value: ScriptRef<string>): boolean;
|
|
145
145
|
"IsStringValid"(n: ScriptRef<string>): boolean;
|
|
146
|
-
"Kill_NonExec"(player: Handle<PlayerPuppet>):
|
|
147
|
-
"KillAll_NonExec"(player: Handle<PlayerPuppet>, radiusStr?: string):
|
|
146
|
+
"Kill_NonExec"(player: Handle<PlayerPuppet>): void;
|
|
147
|
+
"KillAll_NonExec"(player: Handle<PlayerPuppet>, radiusStr?: string): void;
|
|
148
148
|
"LerpAngleF"(alpha: number, a: number, b: number): number;
|
|
149
149
|
"LerpF"(alpha: number, a: number, b: number, clamp?: boolean): number;
|
|
150
|
-
"LoadResource"():
|
|
151
|
-
"LoadResourceAsync"():
|
|
150
|
+
"LoadResource"(): void;
|
|
151
|
+
"LoadResourceAsync"(): void;
|
|
152
152
|
"LocKeyToString"(hashKey: string): string;
|
|
153
|
-
"Log"():
|
|
154
|
-
"LogChannel"():
|
|
155
|
-
"LogChannelError"():
|
|
156
|
-
"LogChannelWarning"():
|
|
157
|
-
"LogError"():
|
|
153
|
+
"Log"(): void;
|
|
154
|
+
"LogChannel"(): void;
|
|
155
|
+
"LogChannelError"(): void;
|
|
156
|
+
"LogChannelWarning"(): void;
|
|
157
|
+
"LogError"(): void;
|
|
158
158
|
"LogF"(a: number): number;
|
|
159
|
-
"LogWarning"():
|
|
159
|
+
"LogWarning"(): void;
|
|
160
160
|
"Max"(a: number, b: number): number;
|
|
161
161
|
"MaxF"(a: number, b: number): number;
|
|
162
162
|
"Min"(a: number, b: number): number;
|
|
163
163
|
"MinF"(a: number, b: number): number;
|
|
164
164
|
"ModF"(a: number, b: number): number;
|
|
165
|
-
"ModifierTypeToString"(type:
|
|
166
|
-
"MP.AddChat"(message: string, senderID: netPeerID):
|
|
167
|
-
"MP.Deathmatch.DebugMessageKill"(killerID: netPeerID, victimID: netPeerID):
|
|
168
|
-
"MP.Deathmatch.DebugMessageNameChanged"(oldName: string, newName: string):
|
|
169
|
-
"MP.Heist.DebugMessageNameChanged"(oldName: string, newName: string):
|
|
170
|
-
"MP.Heist.MessagePlayerReady"(peerID: netPeerID):
|
|
171
|
-
"MP.Heist.SetPlayerCharacterClass"(peerID: netPeerID, characterRecordID: string):
|
|
172
|
-
"MP.SendChat"(message: string):
|
|
173
|
-
"MPChangeMessageBoxValues"(data: gamePopupData, settings: gamePopupSettings, visible: boolean):
|
|
174
|
-
"MPDisplayNarrationEventEntry"(text: string, duration: number, color: Color):
|
|
175
|
-
"MPDisplayOnscreenMessage"(duration: number, message: string, display: boolean):
|
|
176
|
-
"MPDisplayWarningMessage"(duration: number, message: string, display: boolean):
|
|
177
|
-
"MPEquipWeapon"(itemID: gameItemID, QuickslotID: number):
|
|
178
|
-
"MPReplicateComboAttack"(position: Vector4, instigator: WeakHandle<gameObject>):
|
|
165
|
+
"ModifierTypeToString"(type: CyberEnums.gameStatModifierType): string;
|
|
166
|
+
"MP.AddChat"(message: string, senderID: netPeerID): void;
|
|
167
|
+
"MP.Deathmatch.DebugMessageKill"(killerID: netPeerID, victimID: netPeerID): void;
|
|
168
|
+
"MP.Deathmatch.DebugMessageNameChanged"(oldName: string, newName: string): void;
|
|
169
|
+
"MP.Heist.DebugMessageNameChanged"(oldName: string, newName: string): void;
|
|
170
|
+
"MP.Heist.MessagePlayerReady"(peerID: netPeerID): void;
|
|
171
|
+
"MP.Heist.SetPlayerCharacterClass"(peerID: netPeerID, characterRecordID: string): void;
|
|
172
|
+
"MP.SendChat"(message: string): void;
|
|
173
|
+
"MPChangeMessageBoxValues"(data: gamePopupData, settings: gamePopupSettings, visible: boolean): void;
|
|
174
|
+
"MPDisplayNarrationEventEntry"(text: string, duration: number, color: Color): void;
|
|
175
|
+
"MPDisplayOnscreenMessage"(duration: number, message: string, display: boolean): void;
|
|
176
|
+
"MPDisplayWarningMessage"(duration: number, message: string, display: boolean): void;
|
|
177
|
+
"MPEquipWeapon"(itemID: gameItemID, QuickslotID: number): void;
|
|
178
|
+
"MPReplicateComboAttack"(position: Vector4, instigator: WeakHandle<gameObject>): void;
|
|
179
179
|
"NameToString"(n: string): string;
|
|
180
180
|
"NoScreenMessage"(): gameSimpleScreenMessage;
|
|
181
181
|
"NoTrailZeros"(str: ScriptRef<string>): string;
|
|
182
|
-
"ParseNodeRef"():
|
|
182
|
+
"ParseNodeRef"(): void;
|
|
183
183
|
"Pi"(): number;
|
|
184
184
|
"PocketRadioRestrictionCount"(): number;
|
|
185
185
|
"PowF"(a: number, x: number): number;
|
|
186
|
-
"PreloadGameEffectAttackResources"(attackRecord: Handle<gamedataAttack_GameEffect_Record>, effectSystem: Handle<gameEffectSystem>):
|
|
186
|
+
"PreloadGameEffectAttackResources"(attackRecord: Handle<gamedataAttack_GameEffect_Record>, effectSystem: Handle<gameEffectSystem>): void;
|
|
187
187
|
"PreviewConfig_DisableTurrets"(): boolean;
|
|
188
|
-
"ProcessCompare"(comparator:
|
|
189
|
-
"ProcessCompareInt"(comparator:
|
|
190
|
-
"ProgressMultipleAchievementsImpl"(achievementId: string, achievementCount: string, baseProgressString: string, intervalString: string):
|
|
191
|
-
"PropagateDebugHitInformations"(hitDebugInfos: gameHitDetectionDebugFrameData[]):
|
|
188
|
+
"ProcessCompare"(comparator: CyberEnums.EComparisonType, valA: number, valB: number): boolean;
|
|
189
|
+
"ProcessCompareInt"(comparator: CyberEnums.EComparisonType, valA: number, valB: number): boolean;
|
|
190
|
+
"ProgressMultipleAchievementsImpl"(achievementId: string, achievementCount: string, baseProgressString: string, intervalString: string): void;
|
|
191
|
+
"PropagateDebugHitInformations"(hitDebugInfos: gameHitDetectionDebugFrameData[]): void;
|
|
192
192
|
"ProportionalClampF"(inMin: number, inMax: number, v: number, outMin: number, outMax: number): number;
|
|
193
|
-
"PvdClientConnect"(server: ScriptRef<string>):
|
|
194
|
-
"PvdFileDumpConnect"(filePath: ScriptRef<string>):
|
|
193
|
+
"PvdClientConnect"(server: ScriptRef<string>): void;
|
|
194
|
+
"PvdFileDumpConnect"(filePath: ScriptRef<string>): void;
|
|
195
195
|
"Rad2Deg"(rad: number): number;
|
|
196
|
-
"Rand"():
|
|
196
|
+
"Rand"(): void;
|
|
197
197
|
"RandDifferent"(lastValue: number, range: number): number;
|
|
198
198
|
"RandF"(): number;
|
|
199
199
|
"RandNoiseF"(seed: number, max: number, min?: number): number;
|
|
200
200
|
"RandPerlinNoiseF"(seed: number, offset: number): number;
|
|
201
201
|
"RandRange"(min: number, max: number): number;
|
|
202
202
|
"RandRangeF"(min: number, max: number): number;
|
|
203
|
-
"RefreshSettings"():
|
|
203
|
+
"RefreshSettings"(): void;
|
|
204
204
|
"ReinterpretIntAsFloat"(a: number): number;
|
|
205
|
-
"ReleaseGameEffectAttackResources"(attackRecord: Handle<gamedataAttack_GameEffect_Record>, effectSystem: Handle<gameEffectSystem>):
|
|
206
|
-
"RepDecreaseGlobalTimeDilation"():
|
|
207
|
-
"RepDecreasePlayerTimeDilation"():
|
|
208
|
-
"RepEnableCheatOnPlayer"(player: WeakHandle<gameObject>, cheat: number, enable: boolean):
|
|
209
|
-
"RepIncreaseGlobalTimeDilation"():
|
|
210
|
-
"RepIncreasePlayerTimeDilation"():
|
|
205
|
+
"ReleaseGameEffectAttackResources"(attackRecord: Handle<gamedataAttack_GameEffect_Record>, effectSystem: Handle<gameEffectSystem>): void;
|
|
206
|
+
"RepDecreaseGlobalTimeDilation"(): void;
|
|
207
|
+
"RepDecreasePlayerTimeDilation"(): void;
|
|
208
|
+
"RepEnableCheatOnPlayer"(player: WeakHandle<gameObject>, cheat: number, enable: boolean): void;
|
|
209
|
+
"RepIncreaseGlobalTimeDilation"(): void;
|
|
210
|
+
"RepIncreasePlayerTimeDilation"(): void;
|
|
211
211
|
"ReportFailure"(message: ScriptRef<string>): boolean;
|
|
212
|
-
"RepResetTimeDilation"():
|
|
213
|
-
"RepTeleportPlayer"(player: WeakHandle<gameObject>, pos: Vector3, rot: EulerAngles):
|
|
214
|
-
"RepToggleGamePause"():
|
|
215
|
-
"RequestInstallLanguagePackDialog"(language: string):
|
|
212
|
+
"RepResetTimeDilation"(): void;
|
|
213
|
+
"RepTeleportPlayer"(player: WeakHandle<gameObject>, pos: Vector3, rot: EulerAngles): void;
|
|
214
|
+
"RepToggleGamePause"(): void;
|
|
215
|
+
"RequestInstallLanguagePackDialog"(language: string): void;
|
|
216
216
|
"ResolveNodeRef"(id: string, context: worldGlobalNodeRef): worldGlobalNodeRef;
|
|
217
217
|
"ResolveNodeRefWithEntityID"(id: string, context: entEntityID): worldGlobalNodeRef;
|
|
218
218
|
"RoundF"(a: number): number;
|
|
219
219
|
"RoundFEx"(a: number): number;
|
|
220
220
|
"RoundMath"(f: number): number;
|
|
221
221
|
"RoundTo"(f: number, decimal: number): number;
|
|
222
|
-
"SelectWidgets"(widget: Handle<inkWidget>, selectionRule?:
|
|
223
|
-
"SendInputHintData"(show: boolean, data: ScriptRef<gameuiInputHintData>, targetHintContainer?: string):
|
|
224
|
-
"ServerAddPingTarget"(pingEntry: gamePingEntry):
|
|
225
|
-
"SetDefaultStatPoolModifiers"(statPoolTypeString: ScriptRef<string>, statPoolModType:
|
|
222
|
+
"SelectWidgets"(widget: Handle<inkWidget>, selectionRule?: CyberEnums.inkSelectionRule, param?: string): Handle<inkWidgetsSet>;
|
|
223
|
+
"SendInputHintData"(show: boolean, data: ScriptRef<gameuiInputHintData>, targetHintContainer?: string): void;
|
|
224
|
+
"ServerAddPingTarget"(pingEntry: gamePingEntry): void;
|
|
225
|
+
"SetDefaultStatPoolModifiers"(statPoolTypeString: ScriptRef<string>, statPoolModType: CyberEnums.gameStatPoolModificationTypes): void;
|
|
226
226
|
"SetFactValue"(factName: string, factCount: number): boolean;
|
|
227
227
|
"SgnF"(a: number): number;
|
|
228
228
|
"SinF"(a: number): number;
|
|
229
|
-
"SortHandleWithValueArray"(arr: ScriptRef<scriptOptimizationsHandleWithValue[]>):
|
|
230
|
-
"SpaceFill"(str: string, length: number, mode?:
|
|
229
|
+
"SortHandleWithValueArray"(arr: ScriptRef<scriptOptimizationsHandleWithValue[]>): void;
|
|
230
|
+
"SpaceFill"(str: string, length: number, mode?: CyberEnums.ESpaceFillMode, fillChar?: string): string;
|
|
231
231
|
"SpawnVirtualPS"(entityID: entEntityID, componentName: string, psClassName: string): Handle<gamePersistentState>;
|
|
232
232
|
"SqrF"(a: number): number;
|
|
233
233
|
"SqrtF"(a: number): number;
|
|
@@ -259,37 +259,37 @@ interface MpFuncs {
|
|
|
259
259
|
"StrReplaceAll"(str: ScriptRef<string>, match: ScriptRef<string>, with1: ScriptRef<string>): string;
|
|
260
260
|
"StrRight"(str: ScriptRef<string>, length: number): string;
|
|
261
261
|
"StrSplit"(str: ScriptRef<string>, divider: ScriptRef<string>, includeEmpty?: boolean): string[];
|
|
262
|
-
"StrSplitFirst"(str: ScriptRef<string>, divider: ScriptRef<string>): boolean;
|
|
263
|
-
"StrSplitLast"(str: ScriptRef<string>, divider: ScriptRef<string>): boolean;
|
|
262
|
+
"StrSplitFirst"(str: ScriptRef<string>, divider: ScriptRef<string>): [boolean, string];
|
|
263
|
+
"StrSplitLast"(str: ScriptRef<string>, divider: ScriptRef<string>): [boolean, string];
|
|
264
264
|
"StrUpper"(str: ScriptRef<string>): string;
|
|
265
|
-
"SwitchPlayerImmortalityMode"(cheat:
|
|
265
|
+
"SwitchPlayerImmortalityMode"(cheat: CyberEnums.gamecheatsystemFlag): void;
|
|
266
266
|
"TanF"(a: number): number;
|
|
267
267
|
"ToInventoryItemData"(owner: WeakHandle<gameObject>, itemID: gameItemID): gameInventoryItemData;
|
|
268
268
|
"ToTelemetryDamage"(attackData: Handle<gamedamageAttackData>): gameTelemetryDamage;
|
|
269
|
-
"ToTelemetryDamageDealt"(evt: Handle<gameeventsDamageReceivedEvent>, situation:
|
|
269
|
+
"ToTelemetryDamageDealt"(evt: Handle<gameeventsDamageReceivedEvent>, situation: CyberEnums.gameTelemetryDamageSituation, distance: number, time: number): gameTelemetryDamageDealt;
|
|
270
270
|
"ToTelemetryEnemy"(target: WeakHandle<gameObject>): gameTelemetryEnemy;
|
|
271
271
|
"ToTelemetryInventoryItem"(inventoryItemData: ScriptRef<gameInventoryItemData>): gameTelemetryInventoryItem;
|
|
272
|
-
"Trace"():
|
|
273
|
-
"TraceToString"():
|
|
274
|
-
"TSF_All"(mask:
|
|
272
|
+
"Trace"(): void;
|
|
273
|
+
"TraceToString"(): void;
|
|
274
|
+
"TSF_All"(mask: CyberEnums.gametargetingSystemSearchFilterMaskValue): gameTargetSearchFilter;
|
|
275
275
|
"TSF_And"(tsf1: gameTargetSearchFilter, tsf2: gameTargetSearchFilter, tsf3?: gameTargetSearchFilter, tsf4?: gameTargetSearchFilter): gameTargetSearchFilter;
|
|
276
|
-
"TSF_Any"(mask:
|
|
276
|
+
"TSF_Any"(mask: CyberEnums.gametargetingSystemSearchFilterMaskValue): gameTargetSearchFilter;
|
|
277
277
|
"TSF_EnemyNPC"(): gameTargetSearchFilter;
|
|
278
|
-
"TSF_Not"(mask:
|
|
278
|
+
"TSF_Not"(mask: CyberEnums.gametargetingSystemSearchFilterMaskValue): gameTargetSearchFilter;
|
|
279
279
|
"TSF_NPC"(): gameTargetSearchFilter;
|
|
280
280
|
"TSF_Or"(tsf1: gameTargetSearchFilter, tsf2: gameTargetSearchFilter, tsf3?: gameTargetSearchFilter, tsf4?: gameTargetSearchFilter): gameTargetSearchFilter;
|
|
281
281
|
"TSF_Quickhackable"(): gameTargetSearchFilter;
|
|
282
282
|
"TSQ_ALL"(): gameTargetSearchQuery;
|
|
283
283
|
"TSQ_EnemyNPC"(): gameTargetSearchQuery;
|
|
284
284
|
"TSQ_NPC"(): gameTargetSearchQuery;
|
|
285
|
-
"Uint64ToInt"():
|
|
286
|
-
"Uint64ToString"():
|
|
285
|
+
"Uint64ToInt"(): void;
|
|
286
|
+
"Uint64ToString"(): void;
|
|
287
287
|
"UnicodeLength"(str: ScriptRef<string>): number;
|
|
288
288
|
"UnicodeStringCompare"(str: ScriptRef<string>, str2: ScriptRef<string>): number;
|
|
289
289
|
"UnicodeStringEqual"(str: ScriptRef<string>, str2: ScriptRef<string>): boolean;
|
|
290
290
|
"UnicodeStringLessThan"(str: ScriptRef<string>, str2: ScriptRef<string>): boolean;
|
|
291
291
|
"UnicodeStringLessThanEqual"(str: ScriptRef<string>, str2: ScriptRef<string>): boolean;
|
|
292
|
-
"UseProfiler"():
|
|
292
|
+
"UseProfiler"(): void;
|
|
293
293
|
"VectorToString"(vec: Vector4): string;
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -4,6 +4,30 @@
|
|
|
4
4
|
/// <reference path="./classes.d.ts" />
|
|
5
5
|
/// <reference path="../classes.d.ts" />
|
|
6
6
|
|
|
7
|
+
interface OverrideFunction {
|
|
8
|
+
<
|
|
9
|
+
C extends keyof MpClasses,
|
|
10
|
+
I extends UnwrapMpClass<MpClasses[C]>,
|
|
11
|
+
M extends keyof I extends never ? string : keyof I,
|
|
12
|
+
>(
|
|
13
|
+
className: C,
|
|
14
|
+
methodName: M,
|
|
15
|
+
callback: (self: I, ...args: [...Parameters<I[M]>, origin: I[M]]) => void,
|
|
16
|
+
): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface ObserveFunction {
|
|
20
|
+
<
|
|
21
|
+
C extends keyof MpClasses,
|
|
22
|
+
I extends UnwrapMpClass<MpClasses[C]>,
|
|
23
|
+
M extends keyof I extends never ? string : keyof I,
|
|
24
|
+
>(
|
|
25
|
+
className: C,
|
|
26
|
+
methodName: M,
|
|
27
|
+
callback: (self: I, ...args: Parameters<I[M]>) => void,
|
|
28
|
+
): void;
|
|
29
|
+
}
|
|
30
|
+
|
|
7
31
|
declare interface MpGamePrecomputed {
|
|
8
32
|
CyberMP: CyberMP;
|
|
9
33
|
|
|
@@ -56,11 +80,7 @@ declare interface MpGamePrecomputed {
|
|
|
56
80
|
* @param methodName Method name inside of class
|
|
57
81
|
* @param {selfFunction} func Function to override instead
|
|
58
82
|
*/
|
|
59
|
-
override
|
|
60
|
-
className: string,
|
|
61
|
-
methodName: string,
|
|
62
|
-
func: (self: any, ...args: any[]) => void,
|
|
63
|
-
): void;
|
|
83
|
+
override: OverrideFunction;
|
|
64
84
|
|
|
65
85
|
/**
|
|
66
86
|
* Observes method inside selected class.
|
|
@@ -68,11 +88,7 @@ declare interface MpGamePrecomputed {
|
|
|
68
88
|
* @param methodName Method name inside of class
|
|
69
89
|
* @param {selfFunction} callback Callback of method function.
|
|
70
90
|
*/
|
|
71
|
-
observeAfter
|
|
72
|
-
className: string,
|
|
73
|
-
methodName: string,
|
|
74
|
-
callback: (self: any, ...args: any[]) => void,
|
|
75
|
-
): void;
|
|
91
|
+
observeAfter: ObserveFunction;
|
|
76
92
|
|
|
77
93
|
/**
|
|
78
94
|
* Observes method inside selected class.
|
|
@@ -80,11 +96,7 @@ declare interface MpGamePrecomputed {
|
|
|
80
96
|
* @param methodName Method name inside of class
|
|
81
97
|
* @param {selfFunction} callback Callback of method function.
|
|
82
98
|
*/
|
|
83
|
-
observeBefore
|
|
84
|
-
className: string,
|
|
85
|
-
methodName: string,
|
|
86
|
-
callback: (self: any, ...args: any[]) => void,
|
|
87
|
-
): void;
|
|
99
|
+
observeBefore: ObserveFunction;
|
|
88
100
|
|
|
89
101
|
/**
|
|
90
102
|
* Alias for {@link observeBefore}.
|
|
@@ -92,11 +104,7 @@ declare interface MpGamePrecomputed {
|
|
|
92
104
|
* @param methodName Method name inside of class
|
|
93
105
|
* @param {selfFunction} callback Callback of method function.
|
|
94
106
|
*/
|
|
95
|
-
observe
|
|
96
|
-
className: string,
|
|
97
|
-
methodName: string,
|
|
98
|
-
callback: (self: any, ...args: any[]) => void,
|
|
99
|
-
): void;
|
|
107
|
+
observe: ObserveFunction;
|
|
100
108
|
|
|
101
109
|
/**
|
|
102
110
|
* Observes method inside selected class. Can only call methods from {@link MpGame}.
|
|
@@ -105,11 +113,7 @@ declare interface MpGamePrecomputed {
|
|
|
105
113
|
* @param methodName Method name inside of class
|
|
106
114
|
* @param {selfFunction} callback Callback of method function.
|
|
107
115
|
*/
|
|
108
|
-
observeAfterRaw
|
|
109
|
-
className: string,
|
|
110
|
-
methodName: string,
|
|
111
|
-
callback: (self: any, ...args: any[]) => void,
|
|
112
|
-
): void;
|
|
116
|
+
observeAfterRaw: ObserveFunction;
|
|
113
117
|
|
|
114
118
|
/**
|
|
115
119
|
* Observes method inside selected class. Can only call methods from {@link MpGame}.
|
|
@@ -118,11 +122,7 @@ declare interface MpGamePrecomputed {
|
|
|
118
122
|
* @param methodName Method name inside of class
|
|
119
123
|
* @param {selfFunction} callback Callback of method function.
|
|
120
124
|
*/
|
|
121
|
-
observeBeforeRaw
|
|
122
|
-
className: string,
|
|
123
|
-
methodName: string,
|
|
124
|
-
callback: (self: any, ...args: any[]) => void,
|
|
125
|
-
): void;
|
|
125
|
+
observeBeforeRaw: ObserveFunction;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Alias for {@link observeBeforeRaw}.
|
|
@@ -130,11 +130,7 @@ declare interface MpGamePrecomputed {
|
|
|
130
130
|
* @param methodName Method name inside of class
|
|
131
131
|
* @param {selfFunction} callback Callback of method function.
|
|
132
132
|
*/
|
|
133
|
-
observeRaw
|
|
134
|
-
className: string,
|
|
135
|
-
methodName: string,
|
|
136
|
-
callback: (self: any, ...args: any[]) => void,
|
|
137
|
-
): void;
|
|
133
|
+
observeRaw: ObserveFunction;
|
|
138
134
|
|
|
139
135
|
isBlackScreenStarted(): boolean;
|
|
140
136
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
type UnwrapMpClass<T> = T extends { new (): infer U } ? U : T;
|
|
2
|
-
type CName = string;
|
|
3
|
-
type Handle<T = any> = T;
|
|
4
|
-
type WeakHandle<T = any> = T;
|
|
5
|
-
type ScriptRef<T = any> = T;
|
|
6
|
-
type NodeRef<T = any> = T;
|
|
7
|
-
type TweakDBID = string;
|
|
8
|
-
type CRUID = any;
|
|
9
|
-
type CGUID = any;
|
|
10
|
-
type Variant = any;
|
|
11
|
-
type LocalizationString = string;
|
|
12
|
-
type Uint16 = number;
|
|
13
|
-
type Uint8 = number;
|
|
14
|
-
type Int8 = number;
|
|
15
|
-
type Int16 = number;
|
|
16
|
-
type Int32 = number;
|
|
17
|
-
type DataBuffer = any;
|
|
18
|
-
type serializationDeferredDataBuffer = any;
|
|
19
|
-
type SharedDataBuffer = any;
|
|
20
|
-
type EditorObjectID = any;
|
|
21
|
-
type MessageResourcePath = any;
|
|
22
|
-
type ResAsyncRef<T> = T;
|
|
23
|
-
type CurveData<T> = T;
|
|
24
|
-
type ResRef<T> = T;
|
|
25
|
-
type MultiChannelCurve<T> = T;
|
|
1
|
+
type UnwrapMpClass<T> = T extends { new (): infer U } ? U : T;
|
|
2
|
+
type CName = string;
|
|
3
|
+
type Handle<T = any> = T;
|
|
4
|
+
type WeakHandle<T = any> = T;
|
|
5
|
+
type ScriptRef<T = any> = T;
|
|
6
|
+
type NodeRef<T = any> = T;
|
|
7
|
+
type TweakDBID = string;
|
|
8
|
+
type CRUID = any;
|
|
9
|
+
type CGUID = any;
|
|
10
|
+
type Variant = any;
|
|
11
|
+
type LocalizationString = string;
|
|
12
|
+
type Uint16 = number;
|
|
13
|
+
type Uint8 = number;
|
|
14
|
+
type Int8 = number;
|
|
15
|
+
type Int16 = number;
|
|
16
|
+
type Int32 = number;
|
|
17
|
+
type DataBuffer = any;
|
|
18
|
+
type serializationDeferredDataBuffer = any;
|
|
19
|
+
type SharedDataBuffer = any;
|
|
20
|
+
type EditorObjectID = any;
|
|
21
|
+
type MessageResourcePath = any;
|
|
22
|
+
type ResAsyncRef<T> = T;
|
|
23
|
+
type CurveData<T> = T;
|
|
24
|
+
type ResRef<T> = T;
|
|
25
|
+
type MultiChannelCurve<T> = T;
|