Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Resets the timer between entity spreads
- void __thiscall ResetStartTimer(Algae *this)
- {
- this->fStartTimer = 0.00000000;
- return;
- }
- void __thiscall ResetStartTimer(Fire *this)
- {
- this->fStartTimer = 0.00000000;
- return;
- }
- ----------------------------------------------------------------------------------------
- //Same as above, but it also resets the entity's death timer (determines entity decay),
- //essentially restoring it to a freshly spawned-like condition - hence the name.
- void __thiscall Repair(Algae *this)
- {
- this->fDeathTimer = -1.00000000;
- *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc = 0;
- this->fStartTimer = 0.00000000;
- return;
- }
- void __thiscall Repair(Fire *this)
- {
- this->fDeathTimer = -1.00000000;
- *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc = 0;
- this->fStartTimer = 0.00000000;
- return;
- }
- ----------------------------------------------------------------------------------------
- //Sets the *entity's* oxygen level (not the room's!) based on the O2 level found in its
- //environment. Used to determine entity decay (ex. fire extinguishing at low O2)
- void __thiscall SetOxygenLevel(Algae *this,float oxygen)
- {
- this->fOxygen = oxygen;
- return;
- }
- void __thiscall SetOxygenLevel(Fire *this,float oxygen)
- {
- this->fOxygen = oxygen;
- return;
- }
- ----------------------------------------------------------------------------------------
- //Self-explanatory
- void __thiscall Spread(Algae *this)
- {
- // WARNING: Could not recover jumptable at 0x0047fa52. Too many branches
- // WARNING: Treating indirect jump as call
- (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[0x10])(0x42c80000);
- return;
- }
- void __thiscall Spread(Fire *this)
- {
- // WARNING: Could not recover jumptable at 0x0049ab82. Too many branches
- // WARNING: Treating indirect jump as call
- (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[0x10])(0x42c80000);
- return;
- }
- ----------------------------------------------------------------------------------------
- //Returns whether the entity is already on a given tile
- bool __thiscall Present(Algae *this)
- {
- int iVar1;
- // WARNING: Could not recover jumptable at 0x0047fa37. Too many branches
- // WARNING: Treating indirect jump as call
- iVar1._0_1_ = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])()
- ;
- return (bool)(int)iVar1;
- }
- bool __thiscall Present(Fire *this)
- {
- int iVar1;
- // WARNING: Could not recover jumptable at 0x0049ab67. Too many branches
- // WARNING: Treating indirect jump as call
- iVar1._0_1_ = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])()
- ;
- return (bool)(int)iVar1;
- }
Advertisement
Add Comment
Please, Sign In to add comment