AIDef:Action/GuardianChargeBeam: Difference between revisions

imported>Leoetlino
(import AI definitions from 1.5.0)
 
imported>Leoetlino
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
|type=Action
|type=Action
}}
}}
Waits until the configured amount of frames have elapsed.
== Init function ==
<source lang="c++">
void AI_Action_GuardianChargeBeam::init(AI_Action_GuardianChargeBeam *this)
{
  this->elapsedTime = 0.0;
  this->chargeTime = *this->pTime;
  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;
  }
}
</source>


== StaticInstParams ==
== StaticInstParams ==
Line 8: Line 26:
! Name !! Type !! Default value !! Description
! Name !! Type !! Default value !! Description
|-
|-
| Time || Float ||  ||  
| Time || Float ||  || Wait for X frames
|-
|-
| TimeRand || Float ||  ||  
| TimeRand || Float ||  || Wait for an ''additional'' X frames 20% of the time in Master Mode
|-
|-
| ChargeRadius || Float ||  ||  
| ChargeRadius || Float ||  ||  
Line 17: Line 35:
|-
|-
|}
|}


== DynamicInstParams ==
== DynamicInstParams ==
Anonymous user