18,700
edits
m (putting nav header parameters in more logical order) |
No edit summary |
||
Line 1: | Line 1: | ||
{{XML_OBJC_Header | prev=NEUT | type=PART | next=PATR | name=Particle}} | {{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 | ||
following commands | |||
The following commands utilize the defined [[XML:BINA/PAR3#Event_types|particle events]]. | |||
{|class="wikitable" width="100%" | {|class="wikitable" width="100%" | ||
Line 71: | 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 86: | Line 85: | ||
} | } | ||
==File structure== | |||
== | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni> | <Oni> | ||
Line 95: | 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]] | [[Image:fire_particle.jpg|right|thumb]] | ||
Line 115: | 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}} | {{XML}} |