s2cfgtojson 3.6.1 → 3.7.1

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 +71 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.6.1",
3
+ "version": "3.7.1",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -75,6 +75,7 @@ import {
75
75
  EGrenadeType,
76
76
  EFastUseGroupType,
77
77
  EDetectorType,
78
+ ESpawnType,
78
79
  } from "./enums.mts";
79
80
 
80
81
  import { Struct } from "./Struct.mjs";
@@ -2167,3 +2168,73 @@ interface IWeaponPrototype extends IItemPrototype {
2167
2168
  }
2168
2169
 
2169
2170
  export type WeaponPrototype = GetStructType<IWeaponPrototype>;
2171
+
2172
+ export type SpawnActorPrototype = GetStructType<{
2173
+ SID: string;
2174
+ SpawnOnStart: boolean;
2175
+ PositionX: number;
2176
+ PositionY: number;
2177
+ PositionZ: number;
2178
+ RotatorAngleYaw: number;
2179
+ RotatorAnglePitch: number;
2180
+ RotatorAngleRoll: number;
2181
+ ScaleX: number;
2182
+ ScaleY: number;
2183
+ ScaleZ: number;
2184
+ TextAboveActor: string;
2185
+ DLC: string;
2186
+ LevelName: string;
2187
+ PlaceholderActorGuid: string;
2188
+ PlaceholderMapPath: string;
2189
+ MeshPath: string;
2190
+ SpawnedPrototypeSID: string;
2191
+ SpawnType: ESpawnType;
2192
+ bForceCodePhysicsDisabled: boolean;
2193
+ bWakeUpOnStart: boolean;
2194
+ StashPrototypeSID: string;
2195
+ ItemGeneratorSettings: {
2196
+ PlayerRank: ERank;
2197
+ ItemGenerators: {
2198
+ PrototypeSID: string;
2199
+ }[];
2200
+ }[];
2201
+ TileOffsetIndex: number;
2202
+ ItemSID: string;
2203
+ Durability: number;
2204
+ DisablePhysicsAndCollision: boolean;
2205
+ bRandomChancesForSeparateItems: boolean;
2206
+ ClueVariablePrototypeSID: string;
2207
+ PackOfItemsPrototypeSID: string;
2208
+ UpgradeSID: string;
2209
+ AttachmentSID: string;
2210
+ NodePrototypeVersion: number;
2211
+ NodeCreationVersion: number;
2212
+ DataLayers: string[];
2213
+ Rank: ERank;
2214
+ SignalReceivers: {
2215
+ DestroyReceiver: {
2216
+ Guid: string;
2217
+ };
2218
+ };
2219
+ SignalSenders: {
2220
+ DestroySender: {
2221
+ Guid: string;
2222
+ Signals: string[];
2223
+ };
2224
+ };
2225
+ DisablePhysics: boolean;
2226
+ DisableCollision: boolean;
2227
+ DisableDespawn: boolean;
2228
+ DisableLoot: boolean;
2229
+ DisableDrag: boolean;
2230
+ CorpseStashSID: string;
2231
+ DeadPose: string;
2232
+ AmmoCount: number;
2233
+ OverrideRank: boolean;
2234
+ HP: number;
2235
+ DamageMultiplier: number;
2236
+ MoveSpeedMultiplier: number;
2237
+ PsyNPCType: EPsyNPCType;
2238
+ CanBeWounded: boolean;
2239
+ AllowSpawnOnIsolatedNavMesh: boolean;
2240
+ }>;