-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvfx - fx_tpp_splbrdwng01_s1.bt
620 lines (407 loc) · 9.98 KB
/
vfx - fx_tpp_splbrdwng01_s1.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
//=============================================
// Made for use with fx_tpp_splbrdwng01_s1.vfx
//=============================================
// Vector typedefs
typedef struct
{
hfloat x;
hfloat y;
}Half2;
typedef struct
{
hfloat x;
hfloat y;
hfloat z;
}Half3;
typedef struct
{
hfloat x;
hfloat y;
hfloat z;
hfloat w;
}Half4;
typedef struct
{
float x;
float y;
}Float2;
typedef struct
{
float x;
float y;
float z;
}Float3;
typedef struct
{
float x;
float y;
float z;
float w;
}Float4;
// Fx typedefs
typedef struct
{
ubyte arraySize;
ubyte value;
}FxByte;
typedef struct
{
ubyte arraySize;
ubyte value[arraySize];
}FxBool;
typedef struct
{
ubyte arraySize;
uint16 value[arraySize];
}FxUint16;
typedef struct
{
ubyte arraySize;
uint32 value[arraySize];
}FxUint32;
typedef struct
{
ubyte arraySize;
uint64 value[arraySize];
}FxUint64;
typedef struct
{
ubyte arraySize;
float value[arraySize];
}FxFloat;
typedef struct
{
ubyte arraySize;
Float2 value[arraySize];
FSkip(8);
}FxFloat2;
typedef struct
{
ubyte arraySize;
Float4 value[arraySize];
}FxFloat3;
typedef struct
{
ubyte arraySize;
Float4 value[arraySize];
}FxFloat4;
typedef struct
{
ubyte arraySize;
ushort charLength;
char value[charLength+1];
}FxString;
struct Header
{
char vfx[3];
ushort version;
ushort nodeCount;
ushort edgeCount;
FSkip(6);
}header;
typedef struct
{
uint64 hash;
FxUint32 allFrame;
FxFloat3 boundingBoxOffsetPos;
FxFloat3 boundingBoxOffsetSize;
FxUint32 boundingBoxType;
FxBool debugInfo;
FxUint64 effectName;
FxUint32 executionPriorityType;
FxUint32 fadeInEndFrame;
FxUint32 fadeOutStartFrame;
FxUint32 playMode;
FxUint32 updateType;
}FxModuleGraph<bgcolor=cLtRed>;
typedef struct
{
uint64 hash;
FxUint32 delayFrame;
FxUint32 delayFrameRandomRange;
FxUint32 emitVersion;
FxFloat fadeOutPosition;
FxBool fadeOutReverse;
FxUint32 intervalFrame;
FxUint32 lifeFrame;
FxUint32 lifeRandomRangeFrame;
FxUint32 numMax;
FxUint32 numMin;
FxFloat probability;
FxUint32 randomGatherSeedValue;
FxUint32 randomGatherType;
FxString receiveName;
}FxIntervalProbabilityEmitNode<bgcolor=cLtGray>;
typedef struct
{
uint64 hash;
FxUint32 lifeFrame;
}FxConstLifeNode<bgcolor=cLtBlue>;
typedef struct
{
uint64 hash;
FxFloat4 autoBoundingBoxMargin;
FxUint32 axisFix;
FxString axisFixParticleDirectionPoolName;
FxFloat4 baseRot;
FxFloat baseSizeScale;
FxUint32 boundingBoxType;
FxFloat centerU;
FxFloat centerV;
FxBool cullFace;
FxBool enable;
FxBool localSpace;
FxFloat3 manualBoundingBoxOffset;
FxFloat3 manualBoundingBoxSize;
FxUint32 numSimulatedMaxParticle;
FxBool rotGlobal;
FxUint32 rotateOrderType;
FxUint32 sortMode;
FxFloat sortOffset;
}FxPlaneRotShapeNode<bgcolor=cSilver>;
typedef struct
{
uint64 hash;
FxUint32 unknownUint0;
FxUint32 unknownUint1;
FxUint32 unknownUint2;
FxUint32 unknownUint3;
FxBool unknownBool0;
FxString unknownString0;
FxFloat unknownFloat0;
FxFloat unknownFloat1;
FxFloat unknownFloat2;
FxFloat unknownFloat3;
FxBool unknownBool1;
FxUint32 unknownUint4;
FxFloat unknownFloat4;
FxFloat unknownFloat5;
FxUint32 unknownUint5;
FxUint32 unknownUint6;
FxBool unknownBool2;
FxBool unknownBool3;
FxString unknownString1;
}FxDynamicLuminanceMaterialNode;
typedef struct
{
uint64 hash;
FxFloat force;
FxBool global;
FxFloat4 vector;
FxUint32 vectorType;
}FxConstVectorNode<bgcolor=cLtGreen>;
typedef struct
{
uint64 hash;
FxUint32 unknownUint0;
FxUint32 unknownUint1;
FxBool unknownBool0;
FxBool unknownBool1;
FxFloat4 unknownVector0;
}FxUVMapVectorNode;
typedef struct
{
uint64 hash;
FxFloat4 color;
}FxColorVectorNode<bgcolor=cLtAqua>;
typedef struct
{
uint64 hash;
}FxUniformVelocityVectorNode<bgcolor=cWhite>;
typedef struct
{
uint64 hash;
FxFloat4 unknownVector0;
FxUint32 unknownUint0;
FxUint32 unknownUint1;
FxUint32 unknownUint2;
FxBool unknownBool0;
FxBool unknownBool1;
FxBool unknownBool2;
FxFloat4 unknownVector1;
FxFloat4 unknownVector2;
FxUint32 unknownUint3;
FxBool unknownBool3;
FxBool unknownBool4;
FxUint32 unknownUint4;
FxUint32 unknownUint5;
}FxSpriteRotShapeNode;
typedef struct
{
uint64 hash;
FxFloat ambientRate;
FxFloat cameraFadeInFar;
FxFloat cameraFadeInNear;
FxFloat cameraZOffset;
FxFloat directionalLightRate;
FxBool opaque;
FxFloat pointLightRate;
FxBool receiveShadowMap;
FxUint32 shaderType;
FxBool softBlend;
FxFloat softBlendFactor;
FxBool textureAnimeBlend;
FxFloat textureAnimeBlendFrame;
FxUint32 textureAnimeBlendHeight;
FxUint32 textureAnimeBlendWidth;
FxBool textureAnimeClamp;
FxBool textureAnimeRandomStart;
FxString textureFile;
}FxLightInfluenceMaterialNode<bgcolor=cLtYellow>;
typedef struct
{
uint64 hash;
FxFloat endScale;
FxBool maskW;
FxBool maskX;
FxBool maskY;
FxBool maskZ;
FxFloat startScale;
}FxTimeScaleVectorNode<bgcolor=0xFF43FF>;
typedef struct
{
uint64 hash;
FxUint32 randomDivisionHeightGrid;
FxUint32 randomDivisionWidthGrid;
FxBool randomFlipU;
FxBool randomFlipV;
FxUint32 randomGatherSeedValue;
FxUint32 randomGatherType;
}FxUVMapRandomVectorNode<bgcolor=0x243085>;
typedef struct
{
uint64 hash;
}FxFirstLoopOnlyEmitNode;
typedef struct
{
uint64 hash;
FxUint32 unknownUint0;
}FxInfinityLifeNode;
typedef struct
{
uint64 hash;
FxBool unknownBool0;
}FxOscillateVector2Node;
typedef struct
{
uint64 hash;
FxFloat force;
FxBool global;
FxBool globalEvaluateRealTimeRootRotate;
FxUint32 randomGatherSeedValue;
FxUint32 randomGatherType;
FxFloat4 randomMax;
FxFloat4 randomMin;
FxUint32 vectorType;
FxBool xySquere;
}FxRandomVectorNode<bgcolor=cSilver>;
typedef struct
{
uint64 hash;
}FxUniformVelocityTimeVectorNode<bgcolor=cDkPurple>;
typedef struct
{
uint64 hash;
FxFloat drag;
FxUint32 method;
FxFloat scale;
}FxDragTimeVectorNode<bgcolor=cYellow>;
typedef struct
{
uint64 hash;
FxFloat maskValue;
FxBool secondMaskW;
FxBool secondMaskX;
FxBool secondMaskY;
FxBool secondMaskZ;
}FxMultiplyVectorNode<bgcolor=cDkAqua>;
typedef struct
{
uint64 hash;
FxFloat maskValue;
FxBool secondMaskW;
FxBool secondMaskX;
FxBool secondMaskY;
FxBool secondMaskZ;
}FxCompositionVectorNode<bgcolor=cGreen>;
typedef struct
{
uint64 hash;
FxUint32 unknownUint0;
FxUint32 unknownUint1;
FxUint32 unknownUint2;
FxUint32 unknownUint3;
}FxRandomLifeNode;
typedef struct
{
uint64 hash;
FxUint32 unknownUint0;
FxUint32 unknownUint1;
FxUint32 unknownUint2;
FxUint32 unknownUint3;
FxUint32 unknownUint4;
FxUint32 unknownUint5;
FxUint32 unknownUint6;
FxFloat unknownFloat0;
FxFloat unknownFloat1;
FxUint32 unknownUint7;
FxFloat unknownFloat2;
FxUint32 unknownUint8;
FxFloat unknownFloat3;
FxUint32 unknownUint9;
FxFloat unknownFloat4;
}FxKeyframeVectorNode;
typedef struct
{
uint64 hash;
FxFloat unknownFloat0;
FxFloat unknownFloat1;
FxFloat unknownFloat2;
FxFloat unknownFloat3;
FxFloat unknownFloat4;
}FxLodVectorNode;
struct NodeGraph
{
FxModuleGraph graph;
FxIntervalProbabilityEmitNode fxIntervalProbabilityEmitNode0000;
FxConstLifeNode FxConstLifeNode0002;
FxRandomVectorNode FxRandomVectorNode0010;
FxRandomVectorNode FxRandomVectorNode0011;
FxConstVectorNode FxConstVectorNode0005;
FxColorVectorNode FxColorVectorNode0002;
FxConstVectorNode FxConstVectorNode0006;
FxUniformVelocityVectorNode FxUniformVelocityVectorNode0003;
FxUniformVelocityTimeVectorNode FxUniformVelocityTimeVectorNode0002;
FxDragTimeVectorNode FxDragTimeVectorNode0005;
FxCompositionVectorNode FxCompositionVectorNode0006;
FxOscillateVector2Node FxOscillateVector2Node0003;
FxMultiplyVectorNode FxMultiplyVectorNode0004;
FxDragTimeVectorNode FxDragTimeVectorNode0006;
FxRandomVectorNode FxRandomVectorNode0012;
FxRandomVectorNode FxRandomVectorNode0013;
FxCompositionVectorNode FxCompositionVectorNode0007;
FxUniformVelocityVectorNode FxUniformVelocityVectorNode0004;
FxOscillateVector2Node FxOscillateVector2Node0004;
FxMultiplyVectorNode FxMultiplyVectorNode0005;
FxDragTimeVectorNode FxDragTimeVectorNode0007;
FxRandomVectorNode FxRandomVectorNode0014;
FxRandomVectorNode FxRandomVectorNode0015;
FxCompositionVectorNode FxCompositionVectorNode0008;
FxPlaneRotShapeNode FxPlaneRotShapeNode0000;
FxLightInfluenceMaterialNode FxLightInfluenceMaterialNode0000;
FxTimeScaleVectorNode FxTimeScaleVectorNode0000;
FxUVMapRandomVectorNode FxUVMapRandomVectorNode0000;
}nodeGraph;
typedef struct
{
byte sourceNodeIndex;
byte targetNodeIndex;
byte sourcePortType;
byte sourcePortIndex;
byte targetPortType;
byte targetPortIndex;
}FxModuleEdge;
struct Edges
{
FxModuleEdge edges[header.edgeCount];
}edges;