Skip to content

Commit

Permalink
Fix spelling and move/adjust docs for BuildingWaypoint(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Metadorius committed Feb 10, 2025
1 parent 0ee8090 commit bd177ab
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
10 changes: 10 additions & 0 deletions docs/Fixed-or-Improved-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,16 @@ Units.RepairPercent= ; floating point value, percents or absolute
Units.UseRepairCost= ; boolean
```

### Waypoints for buildings

- In vanilla, buildings are forbidden to use waypoints. Now you can allow that using the following flag.

In `rulesmd.ini`:
```ini
[General]
BuildingWaypoints=false ; boolean
```

## Particle systems

### Fire particle target coordinate adjustment when firer rotates
Expand Down
10 changes: 0 additions & 10 deletions docs/New-or-Enhanced-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -1585,16 +1585,6 @@ Convert.HumanToComputer = ; TechnoType
Convert.ComputerToHuman = ; TechnoType
```

### Waypoint for building

- In vanilla, building and aircraft is forbiddened to use waypoint. Now you can turn it on by the following flags.

In `rulesmd.ini`:
```ini
[General]
BuildingWaypoint=false ; boolean
```

## Terrain

### Destroy animation & sound
Expand Down
4 changes: 2 additions & 2 deletions src/Ext/Building/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,11 @@ DEFINE_HOOK(0x44B630, BuildingClass_MissionAttack_AnimDelayedFire, 0x6)

#pragma endregion

#pragma region BuildingWaypoint
#pragma region BuildingWaypoints

bool __fastcall BuildingTypeClass_CanUseWaypoint(BuildingTypeClass* pThis)
{
return RulesExt::Global()->BuildingWaypoint;
return RulesExt::Global()->BuildingWaypoints;
}
DEFINE_JUMP(VTABLE, 0x7E4610, GET_OFFSET(BuildingTypeClass_CanUseWaypoint))

Expand Down
4 changes: 2 additions & 2 deletions src/Ext/Rules/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
this->DropPodTrailer = droppod_trailer.Get(AnimTypeClass::Find("SMOKEY"));// Ares convention
this->PodImage = FileSystem::LoadSHPFile("POD.SHP");

this->BuildingWaypoint.Read(exINI, GameStrings::General, "BuildingWaypoint");
this->BuildingWaypoints.Read(exINI, GameStrings::General, "BuildingWaypoints");

this->Buildings_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Buildings.DefaultDigitalDisplayTypes");
this->Infantry_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Infantry.DefaultDigitalDisplayTypes");
Expand Down Expand Up @@ -403,7 +403,7 @@ void RulesExt::ExtData::Serialize(T& Stm)
.Process(this->JumpjetLevelLightMultiplier)
.Process(this->VoxelLightSource)
// .Process(this->VoxelShadowLightSource)
.Process(this->BuildingWaypoint)
.Process(this->BuildingWaypoints)
.Process(this->CombatAlert)
.Process(this->CombatAlert_Default)
.Process(this->CombatAlert_IgnoreBuilding)
Expand Down
4 changes: 2 additions & 2 deletions src/Ext/Rules/Body.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class RulesExt
Valueable<int> CombatLightDetailLevel;
Valueable<int> LightFlashAlphaImageDetailLevel;

Valueable<bool> BuildingWaypoint;
Valueable<bool> BuildingWaypoints;
Valueable<bool> BuildingTypeSelectable;

ExtData(RulesClass* OwnerObject) : Extension<RulesClass>(OwnerObject)
Expand Down Expand Up @@ -320,7 +320,7 @@ class RulesExt
, WarheadParticleAlphaImageIsLightFlash { false }
, CombatLightDetailLevel { 0 }
, LightFlashAlphaImageDetailLevel { 0 }
, BuildingWaypoint { false }
, BuildingWaypoints { false }
, BuildingTypeSelectable { false }
{ }

Expand Down

0 comments on commit bd177ab

Please sign in to comment.