Skip to content

Commit

Permalink
Add OnJumpLand(), OnStartSwimming(), and Update() addresses to …
Browse files Browse the repository at this point in the history
…`cCreatureBase`, `cCreatureAnimal`, `cCreatureCitizen`
  • Loading branch information
emd4600 committed Sep 8, 2024
1 parent ff7d72b commit 2bcacf3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <Spore\Simulator\cCelestialBody.h>
#include <Spore\Simulator\cCreatureAbility.h>
#include <Spore\Simulator\cCreatureAnimal.h>
#include <Spore\Simulator\cCreatureCitizen.h>
#include <Spore\Simulator\cCreatureBase.h>
#include <Spore\Simulator\cCropCirclesToolStrategy.h>
#include <Spore\Simulator\cDeepSpaceProjectileToolStrategy.h>
Expand Down Expand Up @@ -187,6 +188,13 @@ namespace Simulator
DefineAddress(Create, SelectAddress(0xC092A0, 0xC09B40));
DefineAddress(NPCTickAI, SelectAddress(0xC08CD0, 0xC09570));
DefineAddress(AvatarTickAI, SelectAddress(0xC03710, 0xC04020));
DefineAddress(OnJumpLand, SelectAddress(0xC044D0, 0xC04CB0));
DefineAddress(OnStartSwimming, SelectAddress(0xC04610, 0xC04DF0));
DefineAddress(Update, SelectAddress(0xC0A590, 0xC0AE30));
}

namespace Addresses(cCreatureCitizen) {
DefineAddress(Update, SelectAddress(0xC24210, 0xC24A30));
}

namespace Addresses(cCreatureBase)
Expand All @@ -209,6 +217,9 @@ namespace Simulator
DefineAddress(PlayAbility, SelectAddress(0xC1DCE0, 0xC1E5C0));
DefineAddress(DoJump, SelectAddress(0xC184A0, 0xC18CA0));
DefineAddress(ConsumeEnergy, SelectAddress(0xC15780, 0xC15F20));
DefineAddress(OnJumpLand, SelectAddress(0xC14670, 0xC14E10));
DefineAddress(OnStartSwimming, SelectAddress(0xC147D0, 0xC14F70));
DefineAddress(Update, SelectAddress(0xC20C50, 0xC21530));
}

namespace Addresses(cCropCirclesToolStrategy)
Expand Down
3 changes: 3 additions & 0 deletions Spore ModAPI/Spore/Simulator/cCreatureAnimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@ namespace Simulator
DeclareAddress(Create);
DeclareAddress(NPCTickAI); // 0xC08CD0 0xC09570
DeclareAddress(AvatarTickAI); // 0xC03710 0xC04020
DeclareAddress(OnJumpLand); // 0xC044D0 0xC04CB0
DeclareAddress(OnStartSwimming); // 0xC04610 0xC04DF0
DeclareAddress(Update); // 0xC0A590 0xC0AE30
}
}
3 changes: 3 additions & 0 deletions Spore ModAPI/Spore/Simulator/cCreatureBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,5 +411,8 @@ namespace Simulator
DeclareAddress(PlayAbility); // 0xC1DCE0 0xC1E5C0
DeclareAddress(DoJump); // 0xC184A0 0xC18CA0
DeclareAddress(ConsumeEnergy); // 0xC15780 0xC15F20
DeclareAddress(OnJumpLand); // 0xC14670 0xC14E10
DeclareAddress(OnStartSwimming); // 0xC147D0 0xC14F70
DeclareAddress(Update); // 0xC20C50 0xC21530
}
}
4 changes: 4 additions & 0 deletions Spore ModAPI/Spore/Simulator/cCreatureCitizen.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ namespace Simulator
/* 1030h */ cHitSpherePtr mpHitSphere;
};
ASSERT_SIZE(cCreatureCitizen, 0x1038);

namespace Addresses(cCreatureCitizen) {
DeclareAddress(Update); // 0xC24210 0xC24A30
}
}

0 comments on commit 2bcacf3

Please sign in to comment.