AIDef:Action/GuardianChargeBeam: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Leoetlino
(import AI definitions from 1.5.0)
 
imported>Leoetlino
No edit summary
Line 3: Line 3:
|type=Action
|type=Action
}}
}}
Waits until the configured amount of frames have elapsed.
== Init function ==
<source lang="c++">
void __fastcall AI_Action_GuardianChargeBeam::init(AI_Action_GuardianChargeBeam *this)
{
  float* time = this->pTime;
  this->elapsedTime = 0.0;
  this->chargeTime = *time;
  if ( aoc2::sInstance
    && aoc2::sInstance->hardModeEnabledFlag & 1
    && aoc2::sInstance->aocFlags & 0x40
    && !(5LL * sead::Random::getU32(sead::GlobalRandom::sInstance) & 0x700000000LL) )  // probability is 20%
  {
    this->chargeTime = *this->pTimeRand + this->chargeTime;
  }
}
</source>


== StaticInstParams ==
== StaticInstParams ==
Anonymous user

Navigation menu