Skip to content

Commit 4ce57fb

Browse files
authored
Add some new clutter (#37)
* update YRPP * oh god
1 parent e975aa8 commit 4ce57fb

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

AirstrikeClass.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class NOVTABLE AirstrikeClass : public AbstractClass
3232
void StartMission(ObjectClass* pTarget)
3333
{ JMP_THIS(0x41D830); }
3434

35+
void InvalidatePointer(void* ptr)
36+
{ JMP_THIS(0x41D540); }
37+
3538
//Constructor
3639
AirstrikeClass(TechnoClass* pOwner) noexcept
3740
: AirstrikeClass(noinit_t())

TechnoClass.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,20 @@ class NOVTABLE TechnoClass : public RadioClass
536536
void BaseIsAttacked(TechnoClass* pEnemy)
537537
{ JMP_THIS(0x708080); }
538538

539+
void GattlingRateUp(int value)
540+
{ JMP_THIS(0x70DE70); }
541+
542+
void GattlingRateDown(int value)
543+
{ JMP_THIS(0x70E000); }
544+
545+
void ReleaseLocomotor(bool setTarget)
546+
{ JMP_THIS(0x70FEE0); }
547+
548+
// changes locomotor to the given one, Magnetron style
549+
// mind that this locks up the source too, Magnetron style
550+
void ImbueLocomotor(FootClass* target, CLSID clsid)
551+
{ JMP_THIS(0x710000); }
552+
539553
//Constructor
540554
TechnoClass(HouseClass* pOwner) noexcept
541555
: TechnoClass(noinit_t())

TechnoTypeClass.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ class NOVTABLE TechnoTypeClass : public ObjectTypeClass
157157
return 0u != (test & bitHouseType);
158158
}
159159

160+
// weapon related
161+
WeaponStruct* GetWeapon(int index)
162+
{ JMP_THIS(0x7177C0); }
163+
164+
WeaponStruct* GetEliteWeapon(int index)
165+
{ JMP_THIS(0x7177E0); }
166+
160167
// weapon related
161168
WeaponStruct& GetWeapon(size_t const index, bool const elite) {
162169
return elite ? this->EliteWeapon[index] : this->Weapon[index];

UnitClass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class NOVTABLE UnitClass : public FootClass
107107

108108
public:
109109

110-
int unknown_int_6C0;
110+
int CurrentFiringFrame;
111111
UnitTypeClass* Type;
112112
UnitClass* FollowerCar; // groovy - link defined in the map's [Units] section, looked up on startup
113113
int FlagHouseIndex; // Carrying the flag of this House

0 commit comments

Comments
 (0)