Particle Script: Difference between revisions
Jump to navigation
Jump to search
Added layout section
imported>Jackoalan (Initial Effect Script doc) |
imported>Jackoalan (Added layout section) |
||
Line 8: | Line 8: | ||
parameters to be evaluated and assigned to the dictionary. In addition, the various effect systems provide dynamic node classes that are evaluated as part of the effect runtime. | parameters to be evaluated and assigned to the dictionary. In addition, the various effect systems provide dynamic node classes that are evaluated as part of the effect runtime. | ||
Ultimately, the systems use a recursive, node-based approach of generating animated scalar and vector values to control the effect. | Ultimately, the systems use a recursive, node-based approach of generating animated scalar and vector values to control the effect. | ||
== File Layout == | |||
All effect script file formats use a context-sensitive, free-form layout to build the key-value dictionary. | |||
* Script Magic FourCC (see [[#Script Types|table below]]) | |||
* Entries | |||
** Key FourCC (see [[#Script Types|script-format articles]]) | |||
** Value Parameter(s) (one of:) | |||
*** <code>CNST</code>: Scalar/Vector literal | |||
**** 1-4 int/float values | |||
*** <code>NONE</code>: Dummy value (equivalent to not specifying the key at all) | |||
*** Node Key ([[#Script Nodes|see below]]) | |||
**** Node Parameters | |||
* <code>_END</code> | |||
== Script Types == | == Script Types == | ||
Line 13: | Line 28: | ||
{| class="wikitable" | {| class="wikitable" | ||
!Type | !Type | ||
!Magic | |||
!Purpose | !Purpose | ||
|- | |- | ||
|[[PART (File Format)|PART]] | |[[PART (File Format)|PART]] | ||
|<code>GPSM</code> | |||
|Particle effect | |Particle effect | ||
|- | |- | ||
|[[SWHC (File Format)|SWHC]] | |[[SWHC (File Format)|SWHC]] | ||
|<code>SWSH</code> | |||
|Swoosh effect | |Swoosh effect | ||
|- | |- | ||
|[[ELSC (File Format)|ELSC]] | |[[ELSC (File Format)|ELSC]] | ||
|<code>ELSM</code> | |||
|Electric effect | |Electric effect | ||
|- | |- | ||
|[[DPSC (File Format)|DPSC]] | |[[DPSC (File Format)|DPSC]] | ||
|<code>DPSM</code> | |||
|Decal effect | |Decal effect | ||
|- | |- | ||
|[[WPSC (File Format)|WPSC]] | |[[WPSC (File Format)|WPSC]] | ||
|<code>WPSM</code> | |||
|Projectile weapon configuration | |Projectile weapon configuration | ||
|- | |- | ||
|[[CRSC (File Format)|CRSC]] | |[[CRSC (File Format)|CRSC]] | ||
|<code>CRSM</code> | |||
|Projectile collision response configuration | |Projectile collision response configuration | ||
|} | |} |