XML:BINA/OBJC/CMBT
| CMBT : Combat profiles |
| |
|---|---|---|
| XML
AKEV << Other file types >> CONS TMBD << Other BINA >> ONIE CONS << Other OBJC >> DOOR |
general information
- The xml code on this page is compatible with onisplit v0.9.61.0
- BINACJBOCombat.oni is global (It's stored in level0_...)
file structure
<?xml version="1.0" encoding="utf-8"?> <Oni> <Objects> [...] </Objects> </Oni>
[...] stands for a combat profile. You can add new profiles between the <Objects> </Objects> tags.
example: Id 0 (Stand_and_Fire)
<CMBT Id="368">
<Header>
<Flags></Flags>
<Position>-223.332321 17.8324356 -116.511253</Position>
<Rotation>0 0 0</Rotation>
</Header>
<OSD>
<Name>Stand_and_Fire</Name>
<CombatId>0</CombatId>
<Behaviors>
<LongRange>HoldAndFire</LongRange>
<MediumRange>HoldAndFire</MediumRange>
<ShortRange>HoldAndFire</ShortRange>
<MediumRetreat>HoldAndFire</MediumRetreat>
<LongRetreat>HoldAndFire</LongRetreat>
</Behaviors>
<Combat>
<MediumRange>120</MediumRange>
<MeleeOverride>IfPunched</MeleeOverride>
<NoGunBehavior>Melee</NoGunBehavior>
<ShortRange>40</ShortRange>
<PursuitDistance>200</PursuitDistance>
</Combat>
<Panic>
<Hurt>600</Hurt>
<GunFire>900</GunFire>
<Melee>600</Melee>
<Sight>1200</Sight>
</Panic>
<Alarm>
<SearchDistance>300</SearchDistance>
<EnemyIgnoreDistance>80</EnemyIgnoreDistance>
<EnemyAttackDistance>0</EnemyAttackDistance>
<DamageThreshold>30</DamageThreshold>
<FightTimer>360</FightTimer>
</Alarm>
</OSD>
</CMBT>
tags
| XML tag | content type | description |
|---|---|---|
| <?xml version="1.0" encoding="utf-8"?> | float, flag | Ignore this. |
| <Oni> | - | |
| <Objects> | - | Encloses the profiles, starting with <CMBT Id="..."> and ending with </CMBT>. |
| <CMBT Id="..."> | integer | Ignore this. |
| <Header> | - | |
| <Flags> | flag | Ignore this. |
| <Position> | float x3 | Ignore this. |
| <Rotation> | float x3 | Ignore this. |
| <OSD> | - | |
| <Name> | char[64] | Name of the profile (making it easier to remember what the content does). |
| <CombatId> | integer | Used by CHAR and ONCC. |
| <Behaviors> | - | Flags for the behavior tags.
|
| <LongRange> | flag | see <Behaviors> |
| <MediumRange> | flag | see <Behaviors> |
| <ShortRange> | flag | see <Behaviors> |
| <MediumRetreat> | flag | see <Behaviors> |
| <LongRetreat> | flag | see <Behaviors> |
| <Combat> | - | |
| <MediumRange> | float | |
| <MeleeOverride> | flag |
|
| <NoGunBehavior> | flag |
|
| <ShortRange> | float | |
| <PursuitDistance> | float | |
| <Panic> | - | |
| <Hurt> | integer | |
| <GunFire> | integer | |
| <Melee> | integer | |
| <Sight> | integer | |
| <Alarm> | - | |
| <SearchDistance> | float | |
| <EnemyIgnoreDistance> | float | |
| <EnemyAttackDistance> | float | |
| <DamageThreshold> | integer | |
| <FightTimer> | integer |
