XML:BINA/OBJC/CMBT

From OniGalore
< XML:BINA‎ | OBJC
Revision as of 15:36, 22 November 2012 by Paradox-01 (talk | contribs) (wip)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
CMBT : Combat profiles
XML modding tips
See HERE to start learning about XML modding.
See HERE if you are searching for information on how to handle object coordinates.
See HERE for some typical modding errors and their causes.
XML.png
XML

AKEV << Other file types >> CONS

TMBD << Other BINA >> ONIE

CONS << Other OBJC >> DOOR

switch to OBD page

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.
None
Stare
HoldAndFire
FiringCharge
Melee
BarabasShoot
BarabasAdvance
BarabasMelee
SuperNinjaFireball
SuperNinjaAdvance
SuperNinjaMelee
RunForAlarm
MutantMuroMelee
MuroThunderbolt
<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
None
IfPunched
Cancelled
ShortRange
MediumRange
AlwaysMelee
<NoGunBehavior> flag
Melee
Retreat
RunForAlarm
<ShortRange> float
<PursuitDistance> float
<Panic> -
<Hurt> integer
<GunFire> integer
<Melee> integer
<Sight> integer
<Alarm> -
<SearchDistance> float
<EnemyIgnoreDistance> float
<EnemyAttackDistance> float
<DamageThreshold> integer
<FightTimer> integer