In the IHkHero class there is a "SHeroCapabilities" structure with booleans that setup which actions a hero can do (jump, swim, slide)
There is also something similar in CKHkA2Hero but for XXL2 specific actions (punch, smash, combo, ...).
adrientd
The first is m_bLeader, to indicate if it can become the main character that is controlled by the player.
It is set to true for both Asterix and Obelix, but false for Dogmatix.
But if you set it to true for Dogmatix...