s2cfgtojson 2.2.10 → 2.2.11

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/package.json +1 -1
  2. package/types.mts +50 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "description": "Converts Stalker 2 Cfg file into a POJO",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -64,6 +64,7 @@ import {
64
64
  EOverrideDialogTopic,
65
65
  ETriggerReact,
66
66
  ERequiredSquadMembers,
67
+ EMeshSubType,
67
68
  } from "./enums.mjs";
68
69
 
69
70
  export interface Struct<T extends Entries = {}> {
@@ -1783,3 +1784,52 @@ export type QuestNodePrototype = GetStructType<{
1783
1784
  RequiredSquadMembers: ERequiredSquadMembers;
1784
1785
  }[][];
1785
1786
  }>;
1787
+
1788
+ export type MeshPrototype = GetStructType<{
1789
+ SID: string;
1790
+ MeshPath: string;
1791
+ MaterialPath: string;
1792
+ MeshType: EMeshSubType;
1793
+ ID: number;
1794
+ }>;
1795
+
1796
+ export type WeaponPrototype = GetStructType<{
1797
+ SID: string;
1798
+ MeshPrototypeSID: string;
1799
+ MeshInWorldPrototypeSID: string;
1800
+ Weight: number;
1801
+ Cost: number;
1802
+ GeneralWeaponSetup: string;
1803
+ PlayerWeaponAttributes: string;
1804
+ NPCWeaponAttributes: string;
1805
+ BaseDurability: number;
1806
+ Icon: string;
1807
+ SectionSettings: {
1808
+ SectionIsEnabled: true;
1809
+ UpgradeTargetPartType: EUpgradeTargetPartType;
1810
+ BottomPosition: number;
1811
+ RightPoition: number;
1812
+ LeftPosition: number;
1813
+ TopPosition: number;
1814
+ ModuleLineDirection: ELineDirection;
1815
+ }[];
1816
+ }>;
1817
+
1818
+ export type WeaponAttributesPrototype = GetStructType<{
1819
+ SID: string;
1820
+ DefaultWeaponSettingsSID: string;
1821
+ AnimBlueprint: string;
1822
+ ParticlesBasedOnHeating: {
1823
+ VFXGroupName: string;
1824
+ Shooting: {
1825
+ SocketName: string;
1826
+ PFXPath: string;
1827
+ MinHeatingValueToAppear: 0;
1828
+ };
1829
+ PostShooting: {
1830
+ SocketName: string;
1831
+ PFXPath: string;
1832
+ MinHeatingValueToAppear: 5;
1833
+ };
1834
+ }[];
1835
+ }>;