19,488
edits
Paradox-01 (talk | contribs) mNo edit summary |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{XML_OBJC_Header | prev=NEUT | type=PART | next=PATR | name=Particle}} | ||
==General information== | |||
* The XML on this page is based on OniSplit '''v0.9.61.0'''. | |||
* BINACJBOParticle is level-specific (level''x''_Final.dat). | |||
==BSL support== | |||
* http://ssg.oni2.net/commands.htm#dev-p3 | * http://ssg.oni2.net/commands.htm#dev-p3 | ||
following command | The following command kills a particle with a given name, but only the first one of that name, so don't double-spawn the particle: | ||
* particle ''BSL_name'' kill (kill counts also as die event) | * particle ''BSL_name'' kill (kill counts also as die event) | ||
following command | |||
The following command resets a particle: | |||
* particle ''BSL_name'' reset | * particle ''BSL_name'' reset | ||
The following commands utilize the defined [[XML:BINA/PAR3#Event_types|particle events]]. | |||
{ | |||
{|class="wikitable" width="100%" | |||
|width=50%| | |width=50%| | ||
: <font color="#777777">BSL_name = <Tag> in BINACJBOParticle.xml / <Name> in [[ | : <font color="#777777">BSL_name = <Tag> in BINACJBOParticle.xml / <Name> in [[XML:ENVP|ENVP]]</font> | ||
| | | | ||
: <font color="#777777">file_name = <Class> in BINACJBOParticle.xml / <ParticleClass> in [[ | : <font color="#777777">file_name = <Class> in BINACJBOParticle.xml / <ParticleClass> in [[XML:ENVP|ENVP]]</font> | ||
|- | |- | ||
| particle ''BSL_name'' update | | particle ''BSL_name'' update | ||
Line 73: | Line 71: | ||
|} | |} | ||
==Note about damaging particles== | |||
Damaging particles will make characters "flinch" no matter how little the damage. So particles are responsible for visualizing the danger and a trigger volume is responsible for dealing the damage. | |||
Damaging particles | |||
particle auto1fire start | particle auto1fire start | ||
Line 89: | Line 85: | ||
} | } | ||
==File structure== | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni> | <Oni> | ||
Line 99: | Line 93: | ||
</Oni> | </Oni> | ||
'''''[...]''''' means at least one particle. Paste all particle data | '''''[...]''''' means at least one particle. Paste all your particle data in there (this includes '''<font color="#0A0"><PART Id="..."></font>''' and '''<font color="#0A0"></PART></font>''' tag). | ||
'''Example''' | |||
[[Image:fire_particle.jpg|right|thumb]] | |||
'''<font color="#0A0"><PART Id="8463"></font>''' | '''<font color="#0A0"><PART Id="8463"></font>''' | ||
<Header> | <Header> | ||
Line 120: | Line 113: | ||
'''<font color="#0A0"></PART></font>''' | '''<font color="#0A0"></PART></font>''' | ||
==Tags== | |||
* <Flags> : | * <Flags>: unknown, usually empty | ||
* <Position> : | * <Position>: particle is created at this XYZ position | ||
* <Rotation> : | * <Rotation>: particle has this XYZ rotation in degrees | ||
* <Class> : | * <Class>: file name, can have up to 64 characters | ||
* <Tag> : | * <Tag>: name for use in BSL, can have up to 48 characters | ||
* <Flags> : | * <Flags>: | ||
: NotInitiallyCreated | : NotInitiallyCreated | ||
* <Decal> : | * <Decal>: first comes the X (horizontal) scaling (float value), then a space, then the Y (vertical) scaling (float value); "1" seems to show the image at its original size, which can be rather small in-game if the actual decal file uses also a small scale | ||
{{XML}} |