708
edits
| No edit summary | No edit summary | ||
| Line 80: | Line 80: | ||
| :*"has orientation" - allocates space for a 3x3 matrix (9 floats = 36 bytes) | :*"has orientation" - allocates space for a 3x3 matrix (9 floats = 36 bytes) | ||
| :*"has object attachment matrix" - allocates space for a pointer to an "object" transform matrix (pointer = 4 bytes) | :*"has object attachment matrix" - allocates space for a pointer to an "object" transform matrix (pointer = 4 bytes) | ||
| :*"has damage owner" - allocates space for  | :*"has damage owner" - allocates space for an int32 that indicates who owns the particle (typically the owner is a character or a turret) | ||
| :The creator of a particle is responsable for properly initializing these values.   | :The creator of a particle is responsable for properly initializing these values.   | ||
| :In the specific case of particle emitters the newly emitted particle can inherit these values from the emitting particle. A value is inherited if: | :In the specific case of particle emitters the newly emitted particle can inherit these values from the emitting particle. A value is inherited if: | ||
| Line 107: | Line 107: | ||
| :*actions {7,8} will be triggered by a '''hit_char''' event | :*actions {7,8} will be triggered by a '''hit_char''' event | ||
| :*action {9} will be triggered by a '''lifetime''' event | :*action {9} will be triggered by a '''lifetime''' event | ||
| {{Table}} | {{Table}} | ||
| Line 252: | Line 251: | ||
| ;Value types: | ;Value types: | ||
| :0 - variable | :0 - variable; variable name follows  | ||
| :1 - none (action parameters use this to indicate an unused parameter) | :1 - none (action parameters use this to indicate an unused parameter) | ||
| :3 - float; constant; 1 float value follows | :3 - float; constant; 1 float value follows | ||
| :4 - float; random; 2 float values follow (min, max) | :4 - float; random; 2 float values follow (min, max) | ||
| :5 - float; bell curve; 2 float values follow (mean, stddev) | :5 - float; bell curve; 2 float values follow (mean, stddev) | ||
| :6 - instance name | :6 - instance; instance name follows | ||
| :7 - color; constant; 1 color follows   | :7 - color; constant; 1 color follows   | ||
| :8 - color; random; 2 color follow (min, max)   | :8 - color; random; 2 color follow (min, max)   | ||
| :9 - color; bell curve; 2 color follow (mean, stddev) | :9 - color; bell curve; 2 color follow (mean, stddev) | ||
| :10 - int32 | :10 - int32; constant; int32 follows | ||
| :11 - time cycle; 2 float values follow (cycle  | :11 - time cycle; 2 float values follow (cycle length, scale) | ||
| -------- | -------- | ||
| Line 334: | Line 333: | ||
| {{OBDtrBK|First input parameter}} | {{OBDtrBK|First input parameter}} | ||
| {{OBDtr| 0x00 | int32    |FFFFC8| 0A 00 00 00 | 10  | value type: int32 }} | {{OBDtr| 0x00 | int32    |FFFFC8| 0A 00 00 00 | 10  | value type: int32 }} | ||
| {{OBDtr| 0x04 | int32    |C8FFC8| 01 00 00 00 | 1   | value (rotation space)}} | {{OBDtr| 0x04 | int32    |C8FFC8| 01 00 00 00 | 1   | value (rotation coordinate space)}} | ||
| {{OBDtr| 0x08 |          |C8FFC8|             |     | not used for int32 values }} | {{OBDtr| 0x08 |          |C8FFC8|             |     | not used for int32 values }} | ||
| {{OBDtr| 0x14 |          |C8FFFF|             |     | not used for int32 values }} | {{OBDtr| 0x14 |          |C8FFFF|             |     | not used for int32 values }} | ||
| Line 370: | Line 369: | ||
| :1 - this particle | :1 - this particle | ||
| :2-9 - to the particle last emitted by emitter 0-7 | :2-9 - to the particle last emitted by emitter 0-7 | ||
| :10 -  | :10 - this particle's link | ||
| }} | }} | ||
| {{OBDtr| 0x54 | int32    |FFC8C8| 00 00 00 00 | 0         | emit rate; can use parameters 1 and 2; possible values (in dec): | {{OBDtr| 0x54 | int32    |FFC8C8| 00 00 00 00 | 0         | emit rate; can use parameters 1 and 2; possible values (in dec): | ||
edits