@plugify-plugins/s2sdk-types 2.3.21 → 2.3.22

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.
Files changed (2) hide show
  1. package/index.d.ts +633 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -385,6 +385,617 @@ declare module ":plugify-plugin-s2sdk" {
385
385
  DMG_DANGERZONE = 67108864
386
386
  }
387
387
 
388
+ /**
389
+ * @description Enum representing reasons for network disconnection.
390
+ */
391
+ export enum NetworkDisconnectionReason {
392
+
393
+ /**
394
+ * @description Invalid.
395
+ * */
396
+ Invalid = 0,
397
+
398
+ /**
399
+ * @description Shutdown.
400
+ * */
401
+ Shutdown = 1,
402
+
403
+ /**
404
+ * @description Disconnect by user.
405
+ * */
406
+ DisconnectByUser = 2,
407
+
408
+ /**
409
+ * @description Disconnect by server.
410
+ * */
411
+ DisconnectByServer = 3,
412
+
413
+ /**
414
+ * @description Lost.
415
+ * */
416
+ Lost = 4,
417
+
418
+ /**
419
+ * @description Overflow.
420
+ * */
421
+ Overflow = 5,
422
+
423
+ /**
424
+ * @description Steam banned.
425
+ * */
426
+ SteamBanned = 6,
427
+
428
+ /**
429
+ * @description Steam inuse.
430
+ * */
431
+ SteamInuse = 7,
432
+
433
+ /**
434
+ * @description Steam ticket.
435
+ * */
436
+ SteamTicket = 8,
437
+
438
+ /**
439
+ * @description Steam logon.
440
+ * */
441
+ SteamLogon = 9,
442
+
443
+ /**
444
+ * @description Steam authcancelled.
445
+ * */
446
+ SteamAuthcancelled = 10,
447
+
448
+ /**
449
+ * @description Steam authalreadyused.
450
+ * */
451
+ SteamAuthalreadyused = 11,
452
+
453
+ /**
454
+ * @description Steam authinvalid.
455
+ * */
456
+ SteamAuthinvalid = 12,
457
+
458
+ /**
459
+ * @description Steam vacbanstate.
460
+ * */
461
+ SteamVacbanstate = 13,
462
+
463
+ /**
464
+ * @description Steam logged in elsewhere.
465
+ * */
466
+ SteamLoggedInElsewhere = 14,
467
+
468
+ /**
469
+ * @description Steam vac check timedout.
470
+ * */
471
+ SteamVacCheckTimedout = 15,
472
+
473
+ /**
474
+ * @description Steam dropped.
475
+ * */
476
+ SteamDropped = 16,
477
+
478
+ /**
479
+ * @description Steam ownership.
480
+ * */
481
+ SteamOwnership = 17,
482
+
483
+ /**
484
+ * @description Serverinfo overflow.
485
+ * */
486
+ ServerinfoOverflow = 18,
487
+
488
+ /**
489
+ * @description Tickmsg overflow.
490
+ * */
491
+ TickmsgOverflow = 19,
492
+
493
+ /**
494
+ * @description Stringtablemsg overflow.
495
+ * */
496
+ StringtablemsgOverflow = 20,
497
+
498
+ /**
499
+ * @description Deltaentmsg overflow.
500
+ * */
501
+ DeltaentmsgOverflow = 21,
502
+
503
+ /**
504
+ * @description Tempentmsg overflow.
505
+ * */
506
+ TempentmsgOverflow = 22,
507
+
508
+ /**
509
+ * @description Soundsmsg overflow.
510
+ * */
511
+ SoundsmsgOverflow = 23,
512
+
513
+ /**
514
+ * @description Snapshotoverflow.
515
+ * */
516
+ Snapshotoverflow = 24,
517
+
518
+ /**
519
+ * @description Snapshoterror.
520
+ * */
521
+ Snapshoterror = 25,
522
+
523
+ /**
524
+ * @description Reliableoverflow.
525
+ * */
526
+ Reliableoverflow = 26,
527
+
528
+ /**
529
+ * @description Baddeltatick.
530
+ * */
531
+ Baddeltatick = 27,
532
+
533
+ /**
534
+ * @description Nomoresplits.
535
+ * */
536
+ Nomoresplits = 28,
537
+
538
+ /**
539
+ * @description Timedout.
540
+ * */
541
+ Timedout = 29,
542
+
543
+ /**
544
+ * @description Disconnected.
545
+ * */
546
+ Disconnected = 30,
547
+
548
+ /**
549
+ * @description Leavingsplit.
550
+ * */
551
+ Leavingsplit = 31,
552
+
553
+ /**
554
+ * @description Differentclasstables.
555
+ * */
556
+ Differentclasstables = 32,
557
+
558
+ /**
559
+ * @description Badrelaypassword.
560
+ * */
561
+ Badrelaypassword = 33,
562
+
563
+ /**
564
+ * @description Badspectatorpassword.
565
+ * */
566
+ Badspectatorpassword = 34,
567
+
568
+ /**
569
+ * @description Hltvrestricted.
570
+ * */
571
+ Hltvrestricted = 35,
572
+
573
+ /**
574
+ * @description Nospectators.
575
+ * */
576
+ Nospectators = 36,
577
+
578
+ /**
579
+ * @description Hltvunavailable.
580
+ * */
581
+ Hltvunavailable = 37,
582
+
583
+ /**
584
+ * @description Hltvstop.
585
+ * */
586
+ Hltvstop = 38,
587
+
588
+ /**
589
+ * @description Kicked.
590
+ * */
591
+ Kicked = 39,
592
+
593
+ /**
594
+ * @description Banadded.
595
+ * */
596
+ Banadded = 40,
597
+
598
+ /**
599
+ * @description Kickbanadded.
600
+ * */
601
+ Kickbanadded = 41,
602
+
603
+ /**
604
+ * @description Hltvdirect.
605
+ * */
606
+ Hltvdirect = 42,
607
+
608
+ /**
609
+ * @description Pureserver clientextra.
610
+ * */
611
+ PureserverClientextra = 43,
612
+
613
+ /**
614
+ * @description Pureserver mismatch.
615
+ * */
616
+ PureserverMismatch = 44,
617
+
618
+ /**
619
+ * @description Usercmd.
620
+ * */
621
+ Usercmd = 45,
622
+
623
+ /**
624
+ * @description Rejected by game.
625
+ * */
626
+ RejectedByGame = 46,
627
+
628
+ /**
629
+ * @description Message parse error.
630
+ * */
631
+ MessageParseError = 47,
632
+
633
+ /**
634
+ * @description Invalid message error.
635
+ * */
636
+ InvalidMessageError = 48,
637
+
638
+ /**
639
+ * @description Bad server password.
640
+ * */
641
+ BadServerPassword = 49,
642
+
643
+ /**
644
+ * @description Direct connect reservation.
645
+ * */
646
+ DirectConnectReservation = 50,
647
+
648
+ /**
649
+ * @description Connection failure.
650
+ * */
651
+ ConnectionFailure = 51,
652
+
653
+ /**
654
+ * @description No peer group handlers.
655
+ * */
656
+ NoPeerGroupHandlers = 52,
657
+
658
+ /**
659
+ * @description Reconnection.
660
+ * */
661
+ Reconnection = 53,
662
+
663
+ /**
664
+ * @description Loopshutdown.
665
+ * */
666
+ Loopshutdown = 54,
667
+
668
+ /**
669
+ * @description Loopdeactivate.
670
+ * */
671
+ Loopdeactivate = 55,
672
+
673
+ /**
674
+ * @description Host endgame.
675
+ * */
676
+ HostEndgame = 56,
677
+
678
+ /**
679
+ * @description Loop levelload activate.
680
+ * */
681
+ LoopLevelloadActivate = 57,
682
+
683
+ /**
684
+ * @description Create server failed.
685
+ * */
686
+ CreateServerFailed = 58,
687
+
688
+ /**
689
+ * @description Exiting.
690
+ * */
691
+ Exiting = 59,
692
+
693
+ /**
694
+ * @description Request hoststate idle.
695
+ * */
696
+ RequestHoststateIdle = 60,
697
+
698
+ /**
699
+ * @description Request hoststate hltvrelay.
700
+ * */
701
+ RequestHoststateHltvrelay = 61,
702
+
703
+ /**
704
+ * @description Client consistency fail.
705
+ * */
706
+ ClientConsistencyFail = 62,
707
+
708
+ /**
709
+ * @description Client unable to crc map.
710
+ * */
711
+ ClientUnableToCrcMap = 63,
712
+
713
+ /**
714
+ * @description Client no map.
715
+ * */
716
+ ClientNoMap = 64,
717
+
718
+ /**
719
+ * @description Client different map.
720
+ * */
721
+ ClientDifferentMap = 65,
722
+
723
+ /**
724
+ * @description Server requires steam.
725
+ * */
726
+ ServerRequiresSteam = 66,
727
+
728
+ /**
729
+ * @description Steam deny misc.
730
+ * */
731
+ SteamDenyMisc = 67,
732
+
733
+ /**
734
+ * @description Steam deny bad anti cheat.
735
+ * */
736
+ SteamDenyBadAntiCheat = 68,
737
+
738
+ /**
739
+ * @description Server shutdown.
740
+ * */
741
+ ServerShutdown = 69,
742
+
743
+ /**
744
+ * @description Replay incompatible.
745
+ * */
746
+ ReplayIncompatible = 71,
747
+
748
+ /**
749
+ * @description Connect request timedout.
750
+ * */
751
+ ConnectRequestTimedout = 72,
752
+
753
+ /**
754
+ * @description Server incompatible.
755
+ * */
756
+ ServerIncompatible = 73,
757
+
758
+ /**
759
+ * @description Localproblem manyrelays.
760
+ * */
761
+ LocalproblemManyrelays = 74,
762
+
763
+ /**
764
+ * @description Localproblem hostedserverprimaryrelay.
765
+ * */
766
+ LocalproblemHostedserverprimaryrelay = 75,
767
+
768
+ /**
769
+ * @description Localproblem networkconfig.
770
+ * */
771
+ LocalproblemNetworkconfig = 76,
772
+
773
+ /**
774
+ * @description Localproblem other.
775
+ * */
776
+ LocalproblemOther = 77,
777
+
778
+ /**
779
+ * @description Remote timeout.
780
+ * */
781
+ RemoteTimeout = 79,
782
+
783
+ /**
784
+ * @description Remote timeout connecting.
785
+ * */
786
+ RemoteTimeoutConnecting = 80,
787
+
788
+ /**
789
+ * @description Remote other.
790
+ * */
791
+ RemoteOther = 81,
792
+
793
+ /**
794
+ * @description Remote badcrypt.
795
+ * */
796
+ RemoteBadcrypt = 82,
797
+
798
+ /**
799
+ * @description Remote certnottrusted.
800
+ * */
801
+ RemoteCertnottrusted = 83,
802
+
803
+ /**
804
+ * @description Unusual.
805
+ * */
806
+ Unusual = 84,
807
+
808
+ /**
809
+ * @description Internal error.
810
+ * */
811
+ InternalError = 85,
812
+
813
+ /**
814
+ * @description Reject badchallenge.
815
+ * */
816
+ RejectBadchallenge = 128,
817
+
818
+ /**
819
+ * @description Reject nolobby.
820
+ * */
821
+ RejectNolobby = 129,
822
+
823
+ /**
824
+ * @description Reject background map.
825
+ * */
826
+ RejectBackgroundMap = 130,
827
+
828
+ /**
829
+ * @description Reject single player.
830
+ * */
831
+ RejectSinglePlayer = 131,
832
+
833
+ /**
834
+ * @description Reject hidden game.
835
+ * */
836
+ RejectHiddenGame = 132,
837
+
838
+ /**
839
+ * @description Reject lanrestrict.
840
+ * */
841
+ RejectLanrestrict = 133,
842
+
843
+ /**
844
+ * @description Reject badpassword.
845
+ * */
846
+ RejectBadpassword = 134,
847
+
848
+ /**
849
+ * @description Reject serverfull.
850
+ * */
851
+ RejectServerfull = 135,
852
+
853
+ /**
854
+ * @description Reject invalidreservation.
855
+ * */
856
+ RejectInvalidreservation = 136,
857
+
858
+ /**
859
+ * @description Reject failedchannel.
860
+ * */
861
+ RejectFailedchannel = 137,
862
+
863
+ /**
864
+ * @description Reject connect from lobby.
865
+ * */
866
+ RejectConnectFromLobby = 138,
867
+
868
+ /**
869
+ * @description Reject reserved for lobby.
870
+ * */
871
+ RejectReservedForLobby = 139,
872
+
873
+ /**
874
+ * @description Reject invalidkeylength.
875
+ * */
876
+ RejectInvalidkeylength = 140,
877
+
878
+ /**
879
+ * @description Reject oldprotocol.
880
+ * */
881
+ RejectOldprotocol = 141,
882
+
883
+ /**
884
+ * @description Reject newprotocol.
885
+ * */
886
+ RejectNewprotocol = 142,
887
+
888
+ /**
889
+ * @description Reject invalidconnection.
890
+ * */
891
+ RejectInvalidconnection = 143,
892
+
893
+ /**
894
+ * @description Reject invalidcertlen.
895
+ * */
896
+ RejectInvalidcertlen = 144,
897
+
898
+ /**
899
+ * @description Reject invalidsteamcertlen.
900
+ * */
901
+ RejectInvalidsteamcertlen = 145,
902
+
903
+ /**
904
+ * @description Reject steam.
905
+ * */
906
+ RejectSteam = 146,
907
+
908
+ /**
909
+ * @description Reject serverauthdisabled.
910
+ * */
911
+ RejectServerauthdisabled = 147,
912
+
913
+ /**
914
+ * @description Reject servercdkeyauthinvalid.
915
+ * */
916
+ RejectServercdkeyauthinvalid = 148,
917
+
918
+ /**
919
+ * @description Reject banned.
920
+ * */
921
+ RejectBanned = 149,
922
+
923
+ /**
924
+ * @description Kicked teamkilling.
925
+ * */
926
+ KickedTeamkilling = 150,
927
+
928
+ /**
929
+ * @description Kicked tk start.
930
+ * */
931
+ KickedTkStart = 151,
932
+
933
+ /**
934
+ * @description Kicked untrustedaccount.
935
+ * */
936
+ KickedUntrustedaccount = 152,
937
+
938
+ /**
939
+ * @description Kicked convictedaccount.
940
+ * */
941
+ KickedConvictedaccount = 153,
942
+
943
+ /**
944
+ * @description Kicked competitivecooldown.
945
+ * */
946
+ KickedCompetitivecooldown = 154,
947
+
948
+ /**
949
+ * @description Kicked teamhurting.
950
+ * */
951
+ KickedTeamhurting = 155,
952
+
953
+ /**
954
+ * @description Kicked hostagekilling.
955
+ * */
956
+ KickedHostagekilling = 156,
957
+
958
+ /**
959
+ * @description Kicked votedoff.
960
+ * */
961
+ KickedVotedoff = 157,
962
+
963
+ /**
964
+ * @description Kicked idle.
965
+ * */
966
+ KickedIdle = 158,
967
+
968
+ /**
969
+ * @description Kicked suicide.
970
+ * */
971
+ KickedSuicide = 159,
972
+
973
+ /**
974
+ * @description Kicked nosteamlogin.
975
+ * */
976
+ KickedNosteamlogin = 160,
977
+
978
+ /**
979
+ * @description Kicked nosteamticket.
980
+ * */
981
+ KickedNosteamticket = 161,
982
+
983
+ /**
984
+ * @description Kicked inputautomation.
985
+ * */
986
+ KickedInputautomation = 162,
987
+
988
+ /**
989
+ * @description Kicked vacnetabnormalbehavior.
990
+ * */
991
+ KickedVacnetabnormalbehavior = 163,
992
+
993
+ /**
994
+ * @description Kicked insecureclient.
995
+ * */
996
+ KickedInsecureclient = 164
997
+ }
998
+
388
999
  /**
389
1000
  * @description Enum representing various flags for ConVars and ConCommands.
390
1001
  */
@@ -1922,7 +2533,7 @@ declare module ":plugify-plugin-s2sdk" {
1922
2533
  * @param reason The reason for disconnect
1923
2534
  */
1924
2535
 
1925
- function OnClientDisconnect_PostCallback(playerSlot: number, reason: number): void;
2536
+ function OnClientDisconnect_PostCallback(playerSlot: number, reason: NetworkDisconnectionReason): void;
1926
2537
 
1927
2538
  /**
1928
2539
  * @description Called when a client is activated by the game.
@@ -6037,8 +6648,10 @@ declare module ":plugify-plugin-s2sdk" {
6037
6648
  * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-KickClient|Docs}
6038
6649
  *
6039
6650
  * @param playerSlot The index of the player's slot to be kicked.
6651
+ * @param reason The network-level reason code describing why the client is being disconnected.
6652
+ * @param message The optional internal diagnostic message. If empty, no message is passed to the engine.
6040
6653
  */
6041
- export function KickClient(playerSlot: number): void;
6654
+ export function KickClient(playerSlot: number, reason: NetworkDisconnectionReason, message: string): void;
6042
6655
 
6043
6656
  /**
6044
6657
  * @description Bans a client for a specified duration.
@@ -7539,6 +8152,24 @@ declare module ":plugify-plugin-s2sdk" {
7539
8152
  */
7540
8153
  export function EmitSoundToClient(playerSlot: number, channel: number, sound: string, volume: number, soundLevel: number, flags: number, pitch: number, origin: vec3, soundTime: number): void;
7541
8154
 
8155
+ /**
8156
+ * @description Returns the public network address of the host.
8157
+ *
8158
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetPublicAddress|Docs}
8159
+ *
8160
+ * @param onlyBase If true, omits port, otherwise returning only the base address.
8161
+ */
8162
+ export function GetPublicAddress(onlyBase: boolean): string;
8163
+
8164
+ /**
8165
+ * @description Returns the local network address of the host.
8166
+ *
8167
+ * {@link https://untrustedmodders.github.io/plugify-generator/?file=undefined/blob/main/plugify-plugin-s2sdk.pplugin.in#item-GetLocalAddress|Docs}
8168
+ *
8169
+ * @param onlyBase If true, omits port, otherwise returning only the base address.
8170
+ */
8171
+ export function GetLocalAddress(onlyBase: boolean): string;
8172
+
7542
8173
  /**
7543
8174
  * @description Converts an entity index into an entity pointer.
7544
8175
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugify-plugins/s2sdk-types",
3
- "version": "2.3.21",
3
+ "version": "2.3.22",
4
4
  "description": "generated typescript types to write plugins on plugify",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {},