RattletraPM5

Untitled

Jul 6th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. //Resets the timer between entity spreads
  2.  
  3. void __thiscall ResetStartTimer(Algae *this)
  4.  
  5. {
  6. this->fStartTimer = 0.00000000;
  7. return;
  8. }
  9.  
  10. void __thiscall ResetStartTimer(Fire *this)
  11.  
  12. {
  13. this->fStartTimer = 0.00000000;
  14. return;
  15. }
  16.  
  17. ----------------------------------------------------------------------------------------
  18.  
  19. //Same as above, but it also resets the entity's death timer (determines entity decay),
  20. //essentially restoring it to a freshly spawned-like condition - hence the name.
  21.  
  22. void __thiscall Repair(Algae *this)
  23.  
  24. {
  25. this->fDeathTimer = -1.00000000;
  26. *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc = 0;
  27. this->fStartTimer = 0.00000000;
  28. return;
  29. }
  30.  
  31. void __thiscall Repair(Fire *this)
  32.  
  33. {
  34. this->fDeathTimer = -1.00000000;
  35. *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc = 0;
  36. this->fStartTimer = 0.00000000;
  37. return;
  38. }
  39.  
  40. ----------------------------------------------------------------------------------------
  41.  
  42. //Sets the *entity's* oxygen level (not the room's!) based on the O2 level found in its
  43. //environment. Used to determine entity decay (ex. fire extinguishing at low O2)
  44.  
  45. void __thiscall SetOxygenLevel(Algae *this,float oxygen)
  46.  
  47. {
  48. this->fOxygen = oxygen;
  49. return;
  50. }
  51.  
  52. void __thiscall SetOxygenLevel(Fire *this,float oxygen)
  53.  
  54. {
  55. this->fOxygen = oxygen;
  56. return;
  57. }
  58.  
  59. ----------------------------------------------------------------------------------------
  60.  
  61. //Self-explanatory
  62.  
  63. void __thiscall Spread(Algae *this)
  64.  
  65. {
  66. // WARNING: Could not recover jumptable at 0x0047fa52. Too many branches
  67. // WARNING: Treating indirect jump as call
  68. (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[0x10])(0x42c80000);
  69. return;
  70. }
  71.  
  72. void __thiscall Spread(Fire *this)
  73.  
  74. {
  75. // WARNING: Could not recover jumptable at 0x0049ab82. Too many branches
  76. // WARNING: Treating indirect jump as call
  77. (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[0x10])(0x42c80000);
  78. return;
  79. }
  80.  
  81. ----------------------------------------------------------------------------------------
  82.  
  83. //Returns whether the entity is already on a given tile
  84.  
  85. bool __thiscall Present(Algae *this)
  86.  
  87. {
  88. int iVar1;
  89.  
  90. // WARNING: Could not recover jumptable at 0x0047fa37. Too many branches
  91. // WARNING: Treating indirect jump as call
  92. iVar1._0_1_ = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])()
  93. ;
  94. return (bool)(int)iVar1;
  95. }
  96.  
  97. bool __thiscall Present(Fire *this)
  98.  
  99. {
  100. int iVar1;
  101.  
  102. // WARNING: Could not recover jumptable at 0x0049ab67. Too many branches
  103. // WARNING: Treating indirect jump as call
  104. iVar1._0_1_ = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])()
  105. ;
  106. return (bool)(int)iVar1;
  107. }
Advertisement
Add Comment
Please, Sign In to add comment