Skip to content

Commit 0cf4daa

Browse files
committed
Revert "Merge branch 'develop-test' into fryone/owner_changer"
This reverts commit 4e73b03, reversing changes made to f00d0e6.
1 parent 4e73b03 commit 0cf4daa

File tree

17 files changed

+1
-317
lines changed

17 files changed

+1
-317
lines changed

CREDITS.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@ This page lists all the individual contributions to the project by their author.
284284
- Vehicle voxel turret shadows & body multi-section shadows
285285
- **Fryone**
286286
- Customizable ElectricBolt Arcs
287-
- Sound entry on unit's creation
288-
- Offline power plant indicator
289-
- Auto-deploy/DeployBlock on ammo change
290287
- Change target Owner on warhead impact
291288
- **Ares developers**
292289
- YRpp and Syringe which are used, save/load, project foundation and generally useful code from Ares

Phobos.vcxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
<ClCompile Include="src\Ext\House\Body.cpp" />
7979
<ClCompile Include="src\Ext\House\Hooks.cpp" />
8080
<ClCompile Include="src\Ext\House\Hooks.AINavalProduction.cpp" />
81-
<ClCompile Include="src\Ext\House\Hooks.UnitFromFactory.cpp" />
8281
<ClCompile Include="src\Ext\RadSite\Body.cpp" />
8382
<ClCompile Include="src\Ext\RadSite\Hooks.cpp" />
8483
<ClCompile Include="src\Ext\Scenario\Body.cpp" />
@@ -114,7 +113,6 @@
114113
<ClCompile Include="src\Ext\Unit\Hooks.DeployFire.cpp" />
115114
<ClCompile Include="src\Ext\Unit\Hooks.DisallowMoving.cpp" />
116115
<ClCompile Include="src\Ext\Unit\Hooks.Jumpjet.cpp" />
117-
<ClCompile Include="src\Ext\Unit\Hooks.Unload.cpp" />
118116
<ClCompile Include="src\Ext\WarheadType\Detonate.cpp" />
119117
<ClCompile Include="src\Ext\Tiberium\Body.cpp" />
120118
<ClCompile Include="src\Ext\Tiberium\Hooks.cpp" />

docs/Fixed-or-Improved-Logics.md

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -275,22 +275,6 @@ In `rulesmd.ini`:
275275
SellBuildupLength=23 ; integer, number of buildup frames to play
276276
```
277277

278-
### Offline power plant indicator
279-
280-
- If `DrawPowerOffline` is set, `POWEROFF.SHP` indicator will appear on power plants when being infiltrated or drained.
281-
- `DrawPowerOffline.Offset` is used to vertically adjust position of indicator.
282-
- `DisablePowerOfflineIcon` is used to disable indicator per building type.
283-
284-
In `rulesmd.ini`:
285-
```ini
286-
[AudioVisual]
287-
DrawPowerOffline=false ; boolean
288-
DrawPowerOffline.Offset=0 ; integer, vertical offset,
289-
290-
[SOMEBUILDING]
291-
DisablePowerOfflineIcon=false ; boolean
292-
```
293-
294278
## Projectiles
295279

296280
### Cluster scatter distance customization
@@ -522,7 +506,6 @@ In `rulesmd.ini`:
522506
[SOMETECHNO] ; TechnoType
523507
JumpjetRotateOnCrash=true ; boolean
524508
```
525-
526509
```{warning}
527510
This may subject to further changes.
528511
```
@@ -742,33 +725,6 @@ In `artmd.ini`:
742725
TurretShadow= ; boolean
743726
```
744727

745-
### IsSimpleDeployer vehicle auto-deploy / deploy block on ammo change
746-
747-
- `Ammo.AutoDeployAmount` determines amount of ammo, that converts/deploys vehicle automatically.
748-
- `Ammo.DeployUnlockAmount` determines amount of ammo, that allows vehicle converting/deploying command.
749-
750-
In `rulesmd.ini`:
751-
```ini
752-
[SOMEVEHICLE] ; VehicleType
753-
Ammo.DeployUnlockAmount=-1 ; integer, unit will be allowed to undeploy only if it has at least this much ammo
754-
Ammo.AutoDeployAmount=-1 ; integer, unit will automatically deploy after running out of ammo
755-
```
756-
757-
```{warning}
758-
`Ammo.AutoDeployAmount` feature requires `Convert.Deploy` from [Ares’ Type Conversion](https://ares-developers.github.io/Ares-docs/new/typeconversion.html) to change type. Unit without it will constantly use deploy command on self until ammo is changed.
759-
```
760-
761-
### IsSimpleDeployer vehicle ammo change on deploy
762-
763-
- `Ammo.AddOnDeploy` determines amount of ammo, added or extracted, if negative, on deploy.
764-
765-
In `rulesmd.ini`:
766-
```ini
767-
[SOMEVEHICLE] ; VehicleType
768-
Ammo.AddOnDeploy=0 ; integer, unit will receive or lose this amount of ammo on deploy
769-
```
770-
771-
772728
## VoxelAnims
773729

774730
### Customizable debris & meteor impact and warhead detonation behaviour

docs/New-or-Enhanced-Logics.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -928,20 +928,6 @@ EVA.Sold= ; EVA entry
928928
SellSound= ; sound entry
929929
```
930930

931-
### Sound entry on unit's creation
932-
933-
- When a unit is created, sound specified in `VoiceCreated` will be played for the unit owner.
934-
- If `IsVoiceCreatedGlobal` is set to true, `VoiceCreated` will be played globally instead of `EVA_UnitReady`.
935-
936-
In `rulesmd.ini`:
937-
```ini
938-
[AudioVisual]
939-
IsVoiceCreatedGlobal=false ; boolean
940-
941-
[SOMETECHNO] ; UnitType
942-
VoiceCreated=SOMEVOICEENTRY ; sound entry
943-
```
944-
945931
## Terrain
946932

947933
### Destroy animation & sound

docs/Whats-New.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,18 +320,13 @@ New:
320320
- Vehicle voxel turret shadows & body multi-section shadows (by TwinkleStar)
321321
- Crushing tilt and slowdown customization (by Starkku)
322322
- Extra warhead detonations on weapon (by Starkku)
323+
- Customizable ElectricBolt Arcs (by Fryone, Kerbiter)
323324
- Chrono sparkle animation display customization and improvements (by Starkku)
324325
- Script action to Chronoshift teams to enemy base (by Starkku)
325-
- Customizable ElectricBolt Arcs (by Fryone, Kerbiter)
326326
- Digital display of HP and SP (by ststl, FlyStar, Saigyouji, JunJacobYoung)
327327
- PipScale pip size & ammo pip frame customization (by Starkku)
328328
- `AltPalette` lighting toggle (by Starkku)
329329
- Change target Owner on warhead impact (by Fryone)
330-
- Added sound entry on unit's creation (by Fryone)
331-
- Additional sync logging in case of desync errors occuring (by Starkku)
332-
- Offline power plant indicator (by Fryone)
333-
- Auto-deploy/DeployBlock on ammo change (by Fryone)
334-
335330

336331
Vanilla fixes:
337332
- Allow AI to repair structures built from base nodes/trigger action 125/SW delivery in single player missions (by Trsdy)

src/Ext/Building/Hooks.cpp

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -430,58 +430,3 @@ DEFINE_HOOK(0x4511D6, BuildingClass_AnimationAI_SellBuildup, 0x7)
430430

431431
return pTypeExt->SellBuildupLength == pThis->Animation.Value ? Continue : Skip;
432432
}
433-
434-
//Addition to Ares' Extras
435-
DEFINE_HOOK(0x6F5347, TechnoClass_DrawExtras_OfflinePlants, 0x7)
436-
{
437-
GET(TechnoClass*, pThis, EBP);
438-
GET_STACK(RectangleStruct*, pRect, 0xA0);
439-
440-
if(auto pBld = abstract_cast<BuildingClass*>(pThis))
441-
{
442-
bool drawPowOffline = RulesExt::Global()->DrawPowerOffline;
443-
if(!drawPowOffline)
444-
{
445-
R->ESI(pRect);
446-
return 0x6F534E;
447-
}
448-
449-
const auto pBldExt = BuildingTypeExt::ExtMap.Find(pBld->Type);
450-
bool showLowPower = FileSystem::POWEROFF_SHP
451-
&& (pBld->Type->PowerBonus > 0)
452-
&& (pBld->Factory == nullptr)
453-
&& (pBld->IsPowerOnline() == false || pBld->IsBeingDrained())
454-
&& (pBld->IsBeingWarpedOut() == false)
455-
&& (pBld->WarpingOut == false)
456-
&& (pBldExt->DisablePowerOfflineIcon == false)
457-
&& ((pBld->GetCurrentMission() != Mission::Selling) && (pBld->GetCurrentMission() != Mission::Construction))
458-
&& (pBld->CloakState == CloakState::Uncloaked);
459-
460-
if(showLowPower) {
461-
auto cell = pBld->GetMapCoords();
462-
463-
if(!MapClass::Instance->GetCellAt(cell)->IsShrouded()) {
464-
auto crd = pBld->GetRenderCoords();
465-
466-
Point2D nPoint;
467-
TacticalClass::Instance->CoordsToClient(crd, &nPoint);
468-
469-
Point2D ptPower = nPoint;
470-
471-
ptPower.Y += 22; //wrench offset
472-
ptPower.Y -= RulesExt::Global()->DrawPowerOffline_Offset;
473-
474-
int speed = GameOptionsClass::Instance->GetAnimSpeed(14) / 4;
475-
if(speed < 2) {
476-
speed = 2;
477-
}
478-
479-
int frame = (FileSystem::POWEROFF_SHP->Frames * (Unsorted::CurrentFrame % speed)) / speed;
480-
DSurface::Temp->DrawSHP(FileSystem::MOUSE_PAL, FileSystem::POWEROFF_SHP, frame, &ptPower, pRect, BlitterFlags(0xE00), 0, 0, ZGradient::Ground, 1000, 0, 0, 0, 0, 0);
481-
482-
}
483-
}
484-
}
485-
R->ESI(pRect);
486-
return 0x6F534E;
487-
}

src/Ext/BuildingType/Body.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ void BuildingTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI)
146146

147147
this->ConsideredVehicle.Read(exINI, pSection, "ConsideredVehicle");
148148
this->SellBuildupLength.Read(exINI, pSection, "SellBuildupLength");
149-
this->DisablePowerOfflineIcon.Read(exINI, pSection, "DisablePowerOfflineIcon");
150149

151150
// Ares tag
152151
this->SpyEffect_Custom.Read(exINI, pSection, "SpyEffect.Custom");
@@ -234,7 +233,6 @@ void BuildingTypeExt::ExtData::Serialize(T& Stm)
234233
.Process(this->ConsideredVehicle)
235234
.Process(this->ZShapePointMove_OnBuildup)
236235
.Process(this->SellBuildupLength)
237-
.Process(this->DisablePowerOfflineIcon)
238236
;
239237
}
240238

src/Ext/BuildingType/Body.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class BuildingTypeExt
6060
Nullable<bool> ConsideredVehicle;
6161
Valueable<bool> ZShapePointMove_OnBuildup;
6262
Valueable<int> SellBuildupLength;
63-
Valueable<bool> DisablePowerOfflineIcon;
6463

6564
ExtData(BuildingTypeClass* OwnerObject) : Extension<BuildingTypeClass>(OwnerObject)
6665
, PowersUp_Owner { AffectedHouse::Owner }
@@ -97,7 +96,6 @@ class BuildingTypeExt
9796
, ConsideredVehicle {}
9897
, ZShapePointMove_OnBuildup { false }
9998
, SellBuildupLength { 23 }
100-
, DisablePowerOfflineIcon { false }
10199
{ }
102100

103101
// Ares 0.A functions

src/Ext/House/Hooks.UnitFromFactory.cpp

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Ext/Rules/Body.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
105105
this->DrawTurretShadow.Read(exINI, GameStrings::AudioVisual, "DrawTurretShadow");
106106
this->AnimRemapDefaultColorScheme.Read(exINI, GameStrings::AudioVisual, "AnimRemapDefaultColorScheme");
107107

108-
this->DrawPowerOffline.Read(exINI, GameStrings::AudioVisual, "DrawPowerOffline");
109-
this->DrawPowerOffline_Offset.Read(exINI, GameStrings::AudioVisual, "DrawPowerOffline.Offset");
110-
111108
this->AllowParallelAIQueues.Read(exINI, "GlobalControls", "AllowParallelAIQueues");
112109
this->ForbidParallelAIQueues_Aircraft.Read(exINI, "GlobalControls", "ForbidParallelAIQueues.Infantry");
113110
this->ForbidParallelAIQueues_Building.Read(exINI, "GlobalControls", "ForbidParallelAIQueues.Building");
@@ -132,8 +129,6 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
132129
this->Vehicles_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Vehicles.DefaultDigitalDisplayTypes");
133130
this->Aircraft_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Aircraft.DefaultDigitalDisplayTypes");
134131

135-
this->IsVoiceCreatedGlobal.Read(exINI, GameStrings::AudioVisual, "IsVoiceCreatedGlobal");
136-
137132
// Section AITargetTypes
138133
int itemsCount = pINI->GetKeyCount(sectionAITargetTypes);
139134
for (int i = 0; i < itemsCount; ++i)
@@ -254,13 +249,10 @@ void RulesExt::ExtData::Serialize(T& Stm)
254249
.Process(this->RadialIndicatorVisibility)
255250
.Process(this->DrawTurretShadow)
256251
.Process(this->AnimRemapDefaultColorScheme)
257-
.Process(this->DrawPowerOffline)
258-
.Process(this->DrawPowerOffline_Offset)
259252
.Process(this->Buildings_DefaultDigitalDisplayTypes)
260253
.Process(this->Infantry_DefaultDigitalDisplayTypes)
261254
.Process(this->Vehicles_DefaultDigitalDisplayTypes)
262255
.Process(this->Aircraft_DefaultDigitalDisplayTypes)
263-
.Process(this->IsVoiceCreatedGlobal)
264256
;
265257
}
266258

0 commit comments

Comments
 (0)