document gGlobalTimer and related functions
This commit is contained in:
@@ -70,7 +70,7 @@ Actor *func_80388740(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
|| this->state == 6
|
||||
|| this->state == 8
|
||||
){
|
||||
if(this->unk4C != 0.0f && (func_8023DB5C() & 1)){
|
||||
if(this->unk4C != 0.0f && (globalTimer_getTime() & 1)){
|
||||
if(-2.0 < this->roll){
|
||||
func_8034A174(func_80329934(), 6, sp2C);
|
||||
particleEmitter_setPosition(local->unk0, sp2C);
|
||||
|
@@ -319,7 +319,7 @@ void func_8038D6C8(Actor *this){
|
||||
if(!func_80329530(this, 800))
|
||||
break;
|
||||
|
||||
if(!(func_8023DB5C() & 1))
|
||||
if(!(globalTimer_getTime() & 1))
|
||||
subaddie_set_state_with_direction(this, 2, 0.001f, 1);
|
||||
else
|
||||
subaddie_set_state_with_direction(this, 2, 0.999f, 0);
|
||||
|
@@ -74,11 +74,11 @@ void func_80390EB0(Actor *this){
|
||||
|
||||
if(func_8024DB50(this->position, 150.0f) || func_80329530(this, 1200))
|
||||
{
|
||||
if( !(func_8023DB5C() & 3) && randf() < 0.2){
|
||||
if( !(globalTimer_getTime() & 3) && randf() < 0.2){
|
||||
func_80390C70(this->position);
|
||||
}
|
||||
|
||||
if( !(func_8023DB5C() & 3) && randf() < 0.7){
|
||||
if( !(globalTimer_getTime() & 3) && randf() < 0.7){
|
||||
func_80390D58(this->position);
|
||||
}
|
||||
}
|
||||
|
@@ -87,7 +87,7 @@ void func_80391040(Actor *this){
|
||||
|
||||
if( !this->marker->unk14_21 ) return;
|
||||
if( !func_80390FC0() ) return;
|
||||
if( func_8023DB5C() & 7 ) return;
|
||||
if( globalTimer_getTime() & 7 ) return;
|
||||
|
||||
if(randf() < 0.5){
|
||||
a1 = 8;
|
||||
|
Reference in New Issue
Block a user