@plugify-plugins/s2sdk-types 2.3.8 → 2.3.10
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/index.d.ts +271 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2008,6 +2008,16 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
2008
2008
|
|
|
2009
2009
|
function OnEntityParentChangedCallback(entityHandle: number, parentHandle: number): void;
|
|
2010
2010
|
|
|
2011
|
+
/**
|
|
2012
|
+
* @description When entities is transmitted to another entities.
|
|
2013
|
+
*
|
|
2014
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnServerCheckTransmitCallback|Docs}
|
|
2015
|
+
*
|
|
2016
|
+
* @param checkTransmitInfoList The array of CCheckTransmitInfo pointers
|
|
2017
|
+
*/
|
|
2018
|
+
|
|
2019
|
+
function OnServerCheckTransmitCallback(checkTransmitInfoList: number[]): void;
|
|
2020
|
+
|
|
2011
2021
|
/**
|
|
2012
2022
|
* @description Called on every server startup.
|
|
2013
2023
|
*
|
|
@@ -2161,12 +2171,12 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
2161
2171
|
/**
|
|
2162
2172
|
* @description Finds a key by name or creates it if it doesn't exist
|
|
2163
2173
|
*
|
|
2164
|
-
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-
|
|
2174
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-Kv1FindOrCreateKey|Docs}
|
|
2165
2175
|
*
|
|
2166
2176
|
* @param kv Pointer to the KeyValues object to search in
|
|
2167
2177
|
* @param keyName The name of the key to find or create
|
|
2168
2178
|
*/
|
|
2169
|
-
export function
|
|
2179
|
+
export function Kv1FindOrCreateKey(kv: number, keyName: string): number;
|
|
2170
2180
|
|
|
2171
2181
|
/**
|
|
2172
2182
|
* @description Creates a new subkey with the specified name
|
|
@@ -4669,6 +4679,245 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
4669
4679
|
*/
|
|
4670
4680
|
export function TraceLine(startPos: vec3, endPos: vec3, mask: number, ignoreHandle: number, outPos: vec3, outFraction: number, outHit: boolean, outEntHit: number, outStartSolid: boolean): boolean;
|
|
4671
4681
|
|
|
4682
|
+
/**
|
|
4683
|
+
* @description Sets a bit in the TransmitEntity bitvec, marking an entity as transmittable.
|
|
4684
|
+
*
|
|
4685
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoEntity|Docs}
|
|
4686
|
+
*
|
|
4687
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4688
|
+
* @param entityHandle The handle of the entity to mark as transmittable.
|
|
4689
|
+
*/
|
|
4690
|
+
export function SetTransmitInfoEntity(info: number, entityHandle: number): void;
|
|
4691
|
+
|
|
4692
|
+
/**
|
|
4693
|
+
* @description Clears a bit in the TransmitEntity bitvec, marking an entity as not transmittable.
|
|
4694
|
+
*
|
|
4695
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoEntity|Docs}
|
|
4696
|
+
*
|
|
4697
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4698
|
+
* @param entityHandle The handle of the entity to mark as not transmittable.
|
|
4699
|
+
*/
|
|
4700
|
+
export function ClearTransmitInfoEntity(info: number, entityHandle: number): void;
|
|
4701
|
+
|
|
4702
|
+
/**
|
|
4703
|
+
* @description Checks if a bit is set in the TransmitEntity bitvec.
|
|
4704
|
+
*
|
|
4705
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-IsTransmitInfoEntitySet|Docs}
|
|
4706
|
+
*
|
|
4707
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4708
|
+
* @param entityHandle The handle of the entity to check.
|
|
4709
|
+
*/
|
|
4710
|
+
export function IsTransmitInfoEntitySet(info: number, entityHandle: number): boolean;
|
|
4711
|
+
|
|
4712
|
+
/**
|
|
4713
|
+
* @description Sets all bits in the TransmitEntity bitvec, marking all entities as transmittable.
|
|
4714
|
+
*
|
|
4715
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoEntityAll|Docs}
|
|
4716
|
+
*
|
|
4717
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4718
|
+
*/
|
|
4719
|
+
export function SetTransmitInfoEntityAll(info: number): void;
|
|
4720
|
+
|
|
4721
|
+
/**
|
|
4722
|
+
* @description Clears all bits in the TransmitEntity bitvec, marking all entities as not transmittable.
|
|
4723
|
+
*
|
|
4724
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoEntityAll|Docs}
|
|
4725
|
+
*
|
|
4726
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4727
|
+
*/
|
|
4728
|
+
export function ClearTransmitInfoEntityAll(info: number): void;
|
|
4729
|
+
|
|
4730
|
+
/**
|
|
4731
|
+
* @description Sets a bit in the TransmitNonPlayers bitvec, marking a non-player entity as transmittable.
|
|
4732
|
+
*
|
|
4733
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoNonPlayer|Docs}
|
|
4734
|
+
*
|
|
4735
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4736
|
+
* @param entityHandle The index of the non-player entity to mark as transmittable.
|
|
4737
|
+
*/
|
|
4738
|
+
export function SetTransmitInfoNonPlayer(info: number, entityHandle: number): void;
|
|
4739
|
+
|
|
4740
|
+
/**
|
|
4741
|
+
* @description Clears a bit in the TransmitNonPlayers bitvec, marking a non-player entity as not transmittable.
|
|
4742
|
+
*
|
|
4743
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoNonPlayer|Docs}
|
|
4744
|
+
*
|
|
4745
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4746
|
+
* @param entityHandle The index of the non-player entity to mark as not transmittable.
|
|
4747
|
+
*/
|
|
4748
|
+
export function ClearTransmitInfoNonPlayer(info: number, entityHandle: number): void;
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
* @description Checks if a bit is set in the TransmitNonPlayers bitvec.
|
|
4752
|
+
*
|
|
4753
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-IsTransmitInfoNonPlayerSet|Docs}
|
|
4754
|
+
*
|
|
4755
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4756
|
+
* @param entityHandle The index of the non-player entity to check.
|
|
4757
|
+
*/
|
|
4758
|
+
export function IsTransmitInfoNonPlayerSet(info: number, entityHandle: number): boolean;
|
|
4759
|
+
|
|
4760
|
+
/**
|
|
4761
|
+
* @description Sets all bits in the TransmitNonPlayers bitvec, marking all non-player entities as transmittable.
|
|
4762
|
+
*
|
|
4763
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoNonPlayerAll|Docs}
|
|
4764
|
+
*
|
|
4765
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4766
|
+
*/
|
|
4767
|
+
export function SetTransmitInfoNonPlayerAll(info: number): void;
|
|
4768
|
+
|
|
4769
|
+
/**
|
|
4770
|
+
* @description Clears all bits in the TransmitNonPlayers bitvec, marking all non-player entities as not transmittable.
|
|
4771
|
+
*
|
|
4772
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoNonPlayerAll|Docs}
|
|
4773
|
+
*
|
|
4774
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4775
|
+
*/
|
|
4776
|
+
export function ClearTransmitInfoNonPlayerAll(info: number): void;
|
|
4777
|
+
|
|
4778
|
+
/**
|
|
4779
|
+
* @description Sets a bit in the TransmitAlways bitvec, marking an entity to always transmit.
|
|
4780
|
+
*
|
|
4781
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoAlways|Docs}
|
|
4782
|
+
*
|
|
4783
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4784
|
+
* @param entityHandle The handle of the entity to mark as always transmittable.
|
|
4785
|
+
*/
|
|
4786
|
+
export function SetTransmitInfoAlways(info: number, entityHandle: number): void;
|
|
4787
|
+
|
|
4788
|
+
/**
|
|
4789
|
+
* @description Clears a bit in the TransmitAlways bitvec, unmarking an entity from always transmit.
|
|
4790
|
+
*
|
|
4791
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoAlways|Docs}
|
|
4792
|
+
*
|
|
4793
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4794
|
+
* @param entityHandle The handle of the entity to unmark from always transmit.
|
|
4795
|
+
*/
|
|
4796
|
+
export function ClearTransmitInfoAlways(info: number, entityHandle: number): void;
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
* @description Checks if a bit is set in the TransmitAlways bitvec.
|
|
4800
|
+
*
|
|
4801
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-IsTransmitInfoAlwaysSet|Docs}
|
|
4802
|
+
*
|
|
4803
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4804
|
+
* @param entityHandle The handle of the entity to check.
|
|
4805
|
+
*/
|
|
4806
|
+
export function IsTransmitInfoAlwaysSet(info: number, entityHandle: number): boolean;
|
|
4807
|
+
|
|
4808
|
+
/**
|
|
4809
|
+
* @description Sets all bits in the TransmitAlways bitvec, marking all entities to always transmit.
|
|
4810
|
+
*
|
|
4811
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoAlwaysAll|Docs}
|
|
4812
|
+
*
|
|
4813
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4814
|
+
*/
|
|
4815
|
+
export function SetTransmitInfoAlwaysAll(info: number): void;
|
|
4816
|
+
|
|
4817
|
+
/**
|
|
4818
|
+
* @description Clears all bits in the TransmitAlways bitvec, unmarking all entities from always transmit.
|
|
4819
|
+
*
|
|
4820
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-ClearTransmitInfoAlwaysAll|Docs}
|
|
4821
|
+
*
|
|
4822
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4823
|
+
*/
|
|
4824
|
+
export function ClearTransmitInfoAlwaysAll(info: number): void;
|
|
4825
|
+
|
|
4826
|
+
/**
|
|
4827
|
+
* @description Gets the count of target player slots.
|
|
4828
|
+
*
|
|
4829
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetTransmitInfoTargetSlotsCount|Docs}
|
|
4830
|
+
*
|
|
4831
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4832
|
+
*/
|
|
4833
|
+
export function GetTransmitInfoTargetSlotsCount(info: number): number;
|
|
4834
|
+
|
|
4835
|
+
/**
|
|
4836
|
+
* @description Gets a player slot value at a specific index in the target slots vector.
|
|
4837
|
+
*
|
|
4838
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetTransmitInfoTargetSlot|Docs}
|
|
4839
|
+
*
|
|
4840
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4841
|
+
* @param index The index in the target slots vector.
|
|
4842
|
+
*/
|
|
4843
|
+
export function GetTransmitInfoTargetSlot(info: number, index: number): number;
|
|
4844
|
+
|
|
4845
|
+
/**
|
|
4846
|
+
* @description Adds a player slot to the target slots vector.
|
|
4847
|
+
*
|
|
4848
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-AddTransmitInfoTargetSlot|Docs}
|
|
4849
|
+
*
|
|
4850
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4851
|
+
* @param playerSlot The player slot value to add.
|
|
4852
|
+
*/
|
|
4853
|
+
export function AddTransmitInfoTargetSlot(info: number, playerSlot: number): void;
|
|
4854
|
+
|
|
4855
|
+
/**
|
|
4856
|
+
* @description Removes a player slot from the target slots vector.
|
|
4857
|
+
*
|
|
4858
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-RemoveTransmitInfoTargetSlot|Docs}
|
|
4859
|
+
*
|
|
4860
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4861
|
+
* @param index Index within the target slots vector to remove.
|
|
4862
|
+
*/
|
|
4863
|
+
export function RemoveTransmitInfoTargetSlot(info: number, index: number): void;
|
|
4864
|
+
|
|
4865
|
+
/**
|
|
4866
|
+
* @description Gets the target slots vector.
|
|
4867
|
+
*
|
|
4868
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetTransmitInfoTargetSlotsAll|Docs}
|
|
4869
|
+
*
|
|
4870
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4871
|
+
*/
|
|
4872
|
+
export function GetTransmitInfoTargetSlotsAll(info: number): number[];
|
|
4873
|
+
|
|
4874
|
+
/**
|
|
4875
|
+
* @description Clears all target player slots from the vector.
|
|
4876
|
+
*
|
|
4877
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-RemoveTransmitInfoTargetSlotsAll|Docs}
|
|
4878
|
+
*
|
|
4879
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4880
|
+
*/
|
|
4881
|
+
export function RemoveTransmitInfoTargetSlotsAll(info: number): void;
|
|
4882
|
+
|
|
4883
|
+
/**
|
|
4884
|
+
* @description Gets the player slot value from the CCheckTransmitInfo.
|
|
4885
|
+
*
|
|
4886
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetTransmitInfoPlayerSlot|Docs}
|
|
4887
|
+
*
|
|
4888
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4889
|
+
*/
|
|
4890
|
+
export function GetTransmitInfoPlayerSlot(info: number): number;
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* @description Sets the player slot value in the CCheckTransmitInfo.
|
|
4894
|
+
*
|
|
4895
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoPlayerSlot|Docs}
|
|
4896
|
+
*
|
|
4897
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4898
|
+
* @param playerSlot The player slot value to set.
|
|
4899
|
+
*/
|
|
4900
|
+
export function SetTransmitInfoPlayerSlot(info: number, playerSlot: number): void;
|
|
4901
|
+
|
|
4902
|
+
/**
|
|
4903
|
+
* @description Gets the full update flag from the CCheckTransmitInfo.
|
|
4904
|
+
*
|
|
4905
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetTransmitInfoFullUpdate|Docs}
|
|
4906
|
+
*
|
|
4907
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4908
|
+
*/
|
|
4909
|
+
export function GetTransmitInfoFullUpdate(info: number): boolean;
|
|
4910
|
+
|
|
4911
|
+
/**
|
|
4912
|
+
* @description Sets the full update flag in the CCheckTransmitInfo.
|
|
4913
|
+
*
|
|
4914
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-SetTransmitInfoFullUpdate|Docs}
|
|
4915
|
+
*
|
|
4916
|
+
* @param info Pointer to the CCheckTransmitInfo structure.
|
|
4917
|
+
* @param fullUpdate The full update flag value to set.
|
|
4918
|
+
*/
|
|
4919
|
+
export function SetTransmitInfoFullUpdate(info: number, fullUpdate: boolean): void;
|
|
4920
|
+
|
|
4672
4921
|
/**
|
|
4673
4922
|
* @description Applies an impulse to an entity at a specific world position.
|
|
4674
4923
|
*
|
|
@@ -5598,7 +5847,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
5598
5847
|
* @param angles A pointer to a QAngle representing the new orientation. Can be nullptr.
|
|
5599
5848
|
* @param velocity A pointer to a Vector representing the new velocity. Can be nullptr.
|
|
5600
5849
|
*/
|
|
5601
|
-
export function TeleportClient(playerSlot: number, origin:
|
|
5850
|
+
export function TeleportClient(playerSlot: number, origin: vec3, angles: vec3, velocity: vec3): void;
|
|
5602
5851
|
|
|
5603
5852
|
/**
|
|
5604
5853
|
* @description Apply an absolute velocity impulse to an client.
|
|
@@ -8148,7 +8397,7 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
8148
8397
|
* @param angles A pointer to a QAngle representing the new orientation. Can be nullptr.
|
|
8149
8398
|
* @param velocity A pointer to a Vector representing the new velocity. Can be nullptr.
|
|
8150
8399
|
*/
|
|
8151
|
-
export function TeleportEntity(entityHandle: number, origin:
|
|
8400
|
+
export function TeleportEntity(entityHandle: number, origin: vec3, angles: vec3, velocity: vec3): void;
|
|
8152
8401
|
|
|
8153
8402
|
/**
|
|
8154
8403
|
* @description Apply an absolute velocity impulse to an entity.
|
|
@@ -10236,6 +10485,24 @@ declare module ":plugify-plugin-s2sdk" {
|
|
|
10236
10485
|
*/
|
|
10237
10486
|
export function OnEntityParentChanged_Unregister(callback: typeof Callbacks.OnEntityParentChangedCallback): void;
|
|
10238
10487
|
|
|
10488
|
+
/**
|
|
10489
|
+
* @description Register callback to event.
|
|
10490
|
+
*
|
|
10491
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnServerCheckTransmit_Register|Docs}
|
|
10492
|
+
*
|
|
10493
|
+
* @param callback Function callback.
|
|
10494
|
+
*/
|
|
10495
|
+
export function OnServerCheckTransmit_Register(callback: typeof Callbacks.OnServerCheckTransmitCallback): void;
|
|
10496
|
+
|
|
10497
|
+
/**
|
|
10498
|
+
* @description Unregister callback to event.
|
|
10499
|
+
*
|
|
10500
|
+
* {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-OnServerCheckTransmit_Unregister|Docs}
|
|
10501
|
+
*
|
|
10502
|
+
* @param callback Function callback.
|
|
10503
|
+
*/
|
|
10504
|
+
export function OnServerCheckTransmit_Unregister(callback: typeof Callbacks.OnServerCheckTransmitCallback): void;
|
|
10505
|
+
|
|
10239
10506
|
/**
|
|
10240
10507
|
* @description Register callback to event.
|
|
10241
10508
|
*
|