Skip to content

Commit 2bcacf3

Browse files
committed
Add OnJumpLand(), OnStartSwimming(), and Update() addresses to cCreatureBase, cCreatureAnimal, cCreatureCitizen
1 parent ff7d72b commit 2bcacf3

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <Spore\Simulator\cCelestialBody.h>
99
#include <Spore\Simulator\cCreatureAbility.h>
1010
#include <Spore\Simulator\cCreatureAnimal.h>
11+
#include <Spore\Simulator\cCreatureCitizen.h>
1112
#include <Spore\Simulator\cCreatureBase.h>
1213
#include <Spore\Simulator\cCropCirclesToolStrategy.h>
1314
#include <Spore\Simulator\cDeepSpaceProjectileToolStrategy.h>
@@ -187,6 +188,13 @@ namespace Simulator
187188
DefineAddress(Create, SelectAddress(0xC092A0, 0xC09B40));
188189
DefineAddress(NPCTickAI, SelectAddress(0xC08CD0, 0xC09570));
189190
DefineAddress(AvatarTickAI, SelectAddress(0xC03710, 0xC04020));
191+
DefineAddress(OnJumpLand, SelectAddress(0xC044D0, 0xC04CB0));
192+
DefineAddress(OnStartSwimming, SelectAddress(0xC04610, 0xC04DF0));
193+
DefineAddress(Update, SelectAddress(0xC0A590, 0xC0AE30));
194+
}
195+
196+
namespace Addresses(cCreatureCitizen) {
197+
DefineAddress(Update, SelectAddress(0xC24210, 0xC24A30));
190198
}
191199

192200
namespace Addresses(cCreatureBase)
@@ -209,6 +217,9 @@ namespace Simulator
209217
DefineAddress(PlayAbility, SelectAddress(0xC1DCE0, 0xC1E5C0));
210218
DefineAddress(DoJump, SelectAddress(0xC184A0, 0xC18CA0));
211219
DefineAddress(ConsumeEnergy, SelectAddress(0xC15780, 0xC15F20));
220+
DefineAddress(OnJumpLand, SelectAddress(0xC14670, 0xC14E10));
221+
DefineAddress(OnStartSwimming, SelectAddress(0xC147D0, 0xC14F70));
222+
DefineAddress(Update, SelectAddress(0xC20C50, 0xC21530));
212223
}
213224

214225
namespace Addresses(cCropCirclesToolStrategy)

Spore ModAPI/Spore/Simulator/cCreatureAnimal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,8 @@ namespace Simulator
8989
DeclareAddress(Create);
9090
DeclareAddress(NPCTickAI); // 0xC08CD0 0xC09570
9191
DeclareAddress(AvatarTickAI); // 0xC03710 0xC04020
92+
DeclareAddress(OnJumpLand); // 0xC044D0 0xC04CB0
93+
DeclareAddress(OnStartSwimming); // 0xC04610 0xC04DF0
94+
DeclareAddress(Update); // 0xC0A590 0xC0AE30
9295
}
9396
}

Spore ModAPI/Spore/Simulator/cCreatureBase.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,5 +411,8 @@ namespace Simulator
411411
DeclareAddress(PlayAbility); // 0xC1DCE0 0xC1E5C0
412412
DeclareAddress(DoJump); // 0xC184A0 0xC18CA0
413413
DeclareAddress(ConsumeEnergy); // 0xC15780 0xC15F20
414+
DeclareAddress(OnJumpLand); // 0xC14670 0xC14E10
415+
DeclareAddress(OnStartSwimming); // 0xC147D0 0xC14F70
416+
DeclareAddress(Update); // 0xC20C50 0xC21530
414417
}
415418
}

Spore ModAPI/Spore/Simulator/cCreatureCitizen.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ namespace Simulator
4141
/* 1030h */ cHitSpherePtr mpHitSphere;
4242
};
4343
ASSERT_SIZE(cCreatureCitizen, 0x1038);
44+
45+
namespace Addresses(cCreatureCitizen) {
46+
DeclareAddress(Update); // 0xC24210 0xC24A30
47+
}
4448
}

0 commit comments

Comments
 (0)