@@ -123,6 +123,23 @@ namespace Simulator
123123
124124 // sub_D48710 play ability
125125
126+ // / Makes the creature play an ability, the index can be obtained with GetAbilityIndexByType().
127+ // / If dstAnimIndex is specified, the index of the ability animation played will be written there.
128+ // / Does not work with skill abilties (glide, jump, mating call, sprint and sneak)
129+ // / @param abilityIndex
130+ // / @param[out] dstAnimIndex [Optional]
131+ void PlayAbility (int abilityIndex, Anim::AnimIndex* dstAnimIndex = nullptr );
132+
133+ // / If possible, causes the creature to jump, even if the creature is already in the air.
134+ // / @param energyConsumed [Optional] For captains, how much energy will be consumed
135+ // / @returns Whether the jump was carried out
136+ bool DoJump (int energyConsumed = 0 );
137+
138+ // / For scenario captains, consumes a certain amount of energy.
139+ // / If it's the player, it sends a kMsgScenarioEnergyConsumed message.
140+ // / @param amount
141+ void ConsumeEnergy (float amount);
142+
126143 // / Returns the index to the first ability of the craeture that has the specified ability type.
127144 // / @param abilityType
128145 // / @returns Index to ability, or -1 if not found
@@ -391,5 +408,8 @@ namespace Simulator
391408 DeclareAddress (GetEffectFromPools);
392409 DeclareAddress (StopEffectFromPools);
393410 DeclareAddress (PlayVoice); // C1CEC0
411+ DeclareAddress (PlayAbility); // 0xC1DCE0 0xC1E5C0
412+ DeclareAddress (DoJump); // 0xC184A0 0xC18CA0
413+ DeclareAddress (ConsumeEnergy); // 0xC15780 0xC15F20
394414 }
395415}
0 commit comments