Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AirstrikeClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class NOVTABLE AirstrikeClass : public AbstractClass
void StartMission(ObjectClass* pTarget)
{ JMP_THIS(0x41D830); }

void InvalidatePointer(void* ptr)
{ JMP_THIS(0x41D540); }

//Constructor
AirstrikeClass(TechnoClass* pOwner) noexcept
: AirstrikeClass(noinit_t())
Expand Down
14 changes: 14 additions & 0 deletions TechnoClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,20 @@ class NOVTABLE TechnoClass : public RadioClass
void BaseIsAttacked(TechnoClass* pEnemy)
{ JMP_THIS(0x708080); }

void GattlingRateUp(int value)
{ JMP_THIS(0x70DE70); }

void GattlingRateDown(int value)
{ JMP_THIS(0x70E000); }

void ReleaseLocomotor(bool setTarget)
{ JMP_THIS(0x70FEE0); }

// changes locomotor to the given one, Magnetron style
// mind that this locks up the source too, Magnetron style
void ImbueLocomotor(FootClass* target, CLSID clsid)
{ JMP_THIS(0x710000); }

//Constructor
TechnoClass(HouseClass* pOwner) noexcept
: TechnoClass(noinit_t())
Expand Down
7 changes: 7 additions & 0 deletions TechnoTypeClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ class NOVTABLE TechnoTypeClass : public ObjectTypeClass
return 0u != (test & bitHouseType);
}

// weapon related
WeaponStruct* GetWeapon(int index)
{ JMP_THIS(0x7177C0); }

WeaponStruct* GetEliteWeapon(int index)
{ JMP_THIS(0x7177E0); }

// weapon related
WeaponStruct& GetWeapon(size_t const index, bool const elite) {
return elite ? this->EliteWeapon[index] : this->Weapon[index];
Expand Down
2 changes: 1 addition & 1 deletion UnitClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class NOVTABLE UnitClass : public FootClass

public:

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