C++03 Support & Partial Xbox 360 Support (#37)

* WIP C++03 + Xbox 360 Support

* math.h & _USE_MATH_DEFINES on Level.hpp
Updated Xenon vcxproj file for new file structure.

* * Fix bad GUI scale setup.

* * Gui: Use ratios instead of hardcoded sub-1 floating point values, to make the mechanism more clear.

* Add Direct Connect Button and Screen (#30)

* Add Direct Connect Button and Screen

* Remove accidental extra build directories for wasm

* Add DirectConnectScreen.cpp to the CMake

* Use Hungarian coding style notation

* * Fix errors caused by #30

* * Improve the Chat Screen

* * Improve the DirectConnectScreen, among other things.

* * Update the game title once again.

* * Add build-wasm.bat.

* * Add info about compiling for wasm

* * Fix send to specific GUID actually broadcasting to everyone

* * Add command manager.

* * Add writeable configuration.

* * Allow dynamic screen size change on windows

* * Allow the same thing on the emscripten version.

* WIP C++03 + Xbox 360 Support

* Fixed a possible merging issue that broke RakNet?

* Additional Xbox 360 compatability fixes

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
Co-authored-by: ts <124226059+uniformization@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-07 07:48:52 -05:00
committed by GitHub
parent 6c1a54e3f0
commit a0f71c7b27
179 changed files with 4969 additions and 918 deletions

View File

@@ -11,6 +11,52 @@
Mob::Mob(Level* pLevel) : Entity(pLevel)
{
field_DC = 10;
field_E8 = 0.0f;
field_EC = 0.0f;
field_F0 = 0;
field_F4 = 0.0f;
field_F8 = 0.0f;
m_health = 10;
field_100 = 20;
field_104 = 0;
field_108 = 0;
field_10C = 0.0f;
field_110 = 0;
field_114 = 0;
field_118 = 0.0f;
field_11C = 0.0f;
field_120 = 0;
field_124 = 0;
field_128 = 0.0f;
field_12C = 0.0f;
field_130 = 0.0f;
field_AFC = 0;
field_B00 = 0.0f;
field_B04 = 0.0f;
field_B08 = 0.0f;
field_B0C = 0;
field_B10 = 0;
field_B14 = 0.7f;
field_B48 = 0;
field_B4C = 0.0f;
field_B50 = 0.0f;
field_B54 = 0.0f;
field_B58 = 0.0f;
field_B5C = 0.0f;
field_B60 = 1.0f;
field_B64 = 0;
field_B68 = 1;
field_B69 = 0;
field_B6C = 0;
field_B70 = 0.0f;
field_B74 = 0.0f;
field_B78 = 0.0f;
field_B7C = 0.0f;
field_B80 = 0.0f;
field_B84 = 0;
m_pEntLookedAt = nullptr;
m_texture = "/mob/char.png";
m_class = "";
@@ -556,8 +602,9 @@ void Mob::aiStep()
aabb.grow(0.2f, 0.2f, 0.2f);
auto pEnts = m_pLevel->getEntities(this, aabb);
for (auto pEnt : *pEnts)
for (auto it = pEnts->begin(); it != pEnts->end(); it++)
{
Entity* pEnt = *it;
if (pEnt->isPushable())
pEnt->push(this);
}