Skip to content

Commit 7a543a0

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into force-weapon-by-type
# Conflicts: # CREDITS.md
2 parents 5b4225b + 11205db commit 7a543a0

File tree

132 files changed

+7637
-4462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+7637
-4462
lines changed

CREDITS.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ This page lists all the individual contributions to the project by their author.
4848
- Ability to disable shadow for debris & meteor animations
4949
- Voxel light source position customization
5050
- `UseFixedVoxelLighting`
51+
- Warhead activation target health thresholds
5152
- **Uranusian (Thrifinesma)**:
5253
- Mind Control enhancement
5354
- Custom warhead splash list
@@ -69,6 +70,7 @@ This page lists all the individual contributions to the project by their author.
6970
- Ability for deployed infantry to use both weapons
7071
- Observer PCX loading screen
7172
- Original `Arcing` elevation inaccuracy fix
73+
- Display banner improvement
7274
- Official CN docs for Build#29 and previous versions
7375
- **secsome (SEC-SOME)**:
7476
- Debug info dump hotkey
@@ -144,6 +146,7 @@ This page lists all the individual contributions to the project by their author.
144146
- Map Events 604 & 605 for checking if a specific Techno enters in a cell
145147
- Warhead that can not kill
146148
- `Pips.HideIfNoStrength` and `SelfHealing.EnabledBy` additions for shields
149+
- Warhead activation target health thresholds enhancements
147150
- **Starkku**:
148151
- Misc. minor bugfixes & improvements
149152
- AI script actions:
@@ -286,6 +289,7 @@ This page lists all the individual contributions to the project by their author.
286289
- `601 House owns TechnoType` and `602 House doesn't own TechnoType` trigger events
287290
- Voxel light source position customization
288291
- Extending `Power` to all TechnoTypes
292+
- Display banner by triggers
289293
- Help with docs
290294
- **ChrisLv_CN** (work relicensed under [following permission](https://github.com/Phobos-developers/Phobos/blob/develop/images/ChrisLv-relicense.png)):
291295
- General assistance
@@ -369,6 +373,7 @@ This page lists all the individual contributions to the project by their author.
369373
- Fix the issue where some units crashed after the deployment transformation
370374
- Turretless vehicles with `Voxel=no` support use `FireUp` like infantry
371375
- Infantry support `IsGattling=yes`
376+
- Support for more optional weapons
372377
- **NetsuNegi**:
373378
- Forbidding parallel AI queues by type
374379
- Jumpjet crash speed fix when crashing onto building
@@ -409,6 +414,11 @@ This page lists all the individual contributions to the project by their author.
409414
- Fix the bug that AlphaImage remained after unit entered tunnel
410415
- Weapon target filtering by health percentage
411416
- Fix the bug that `DamageSelf` and `AllowDamageOnSelf` are ineffective on airforce
417+
- Customize limit when engineer repair a building
418+
- Fix the bug that damaged particle dont disappear after building has repaired by engineer
419+
- Display banner improvement
420+
- Electric/RadBeam trail for laser tails
421+
- Ground line for select box
412422
- **Apollo** - Translucent SHP drawing patches
413423
- **ststl**:
414424
- Customizable `ShowTimer` priority of superweapons
@@ -417,6 +427,7 @@ This page lists all the individual contributions to the project by their author.
417427
- Unlimited `AlternateFLH` entries
418428
- Build limit group
419429
- Customizing whether passengers are kicked out when an aircraft fires
430+
- Display banner by triggers
420431
- New SuperWeapon Type template
421432
- Fix the issue where some units crashed after the deployment transformation
422433
- **TwinkleStar**:
@@ -487,22 +498,25 @@ This page lists all the individual contributions to the project by their author.
487498
- Exclusive SuperWeapon Sidebar
488499
- Fix an issue that the widespread damage caused by detonation on the bridge/ground cannot affect objects on the ground/bridge who are in the opposite case
489500
- Several new Infotypes, no display in specific status and a new single frame display method
501+
- Customizable spawn delay of `VoxelAnim`'s `TrailerAnim` and fix its incorrect position
502+
- Add `DebrisMinimums` to keep the count of debris within a certain range
490503
- **Ollerus**:
491504
- Build limit group enhancement
492505
- Customizable rocker amplitude
493-
- Allowed `AuxBuilding` and Ares' `SW.Aux/NegBuildings` to count building upgrades
506+
- Allow `AuxBuilding` and Ares' `SW.Aux/NegBuildings` to count building upgrades
494507
- Type select for buildings (doc)
495508
- Enhanced Bombard trajectory
496509
- Shield armor inheritance customization
497510
- Fix `DefaultDisguise` showing wrong house colors for different players
498511
- Fire weapon when Warhead kills something
499512
- Promotion animation deglobalization
500-
- Forcing specific weapon by range
513+
- Forcing specific weapon by range and target type
501514
- Passenger-based insignias
502515
- Use `InsigniaType` to set the properties of insignia in a batch
503-
- Allowed player's self-healing effects to be benefited by allied or `PlayerControl=true` houses
516+
- Allow player's self-healing effects to be benefited by allied or `PlayerControl=true` houses
504517
- Power plant damage factor
505-
- Forcing specific weapon by range and target type
518+
- Allow faking digital display for `InfoType=Health` at disguise
519+
- Display banner improvement and doc
506520
- **NaotoYuuki** - Vertical & meteor trajectory projectile prototypes
507521
- **handama** - AI script action to `16005 Jump Back To Previous Script`
508522
- **TaranDahl (航味麻酱)**:
@@ -536,6 +550,8 @@ This page lists all the individual contributions to the project by their author.
536550
- Customize the scatter caused by aircraft attack mission
537551
- Customize whether `Crater=yes` animation would destroy tiberium
538552
- Targeting limitation for berzerk technos
553+
- Allows refineries to use multiple ActiveAnim simultaneously
554+
- Several attackmove related enhancement
539555
- **tyuah8**:
540556
- Drive/Jumpjet/Ship/Teleport locomotor did not power on when it is un-piggybacked bugfix
541557
- Destroyed unit leaves sensors bugfix

Phobos.vcxproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
</ItemGroup>
2020
<ItemGroup>
2121
<ClCompile Include="src\Ext\Infantry\Hooks.Firing.cpp" />
22+
<ClCompile Include="src\Ext\TechnoType\Hooks.MultiWeapon.cpp" />
2223
<ClCompile Include="src\Ext\Unit\Hooks.Firing.cpp" />
24+
<ClCompile Include="src\Ext\EBolt\Body.cpp" />
25+
<ClCompile Include="src\Ext\EBolt\Hooks.cpp" />
2326
<ClCompile Include="src\New\Type\Affiliated\CreateUnitTypeClass.cpp" />
2427
<ClCompile Include="src\Blowfish\blowfish.cpp" />
2528
<ClCompile Include="src\Blowfish\Hooks.Blowfish.cpp" />
@@ -89,8 +92,10 @@
8992
<ClCompile Include="src\Misc\Hooks.VeinholeMonster.cpp" />
9093
<ClCompile Include="src\Misc\PhobosToolTip.cpp" />
9194
<ClCompile Include="src\Misc\TextInput.cpp" />
95+
<ClCompile Include="src\New\Entity\BannerClass.cpp" />
9296
<ClCompile Include="src\New\Entity\ShieldClass.cpp" />
9397
<ClCompile Include="src\Misc\RetryDialog.cpp" />
98+
<ClCompile Include="src\New\Type\BannerTypeClass.cpp" />
9499
<ClCompile Include="src\New\Type\Affiliated\DroppodTypeClass.cpp" />
95100
<ClCompile Include="src\New\Type\DigitalDisplayTypeClass.cpp" />
96101
<ClCompile Include="src\New\Type\InsigniaTypeClass.cpp" />
@@ -165,7 +170,6 @@
165170
<ClCompile Include="src\Ext\VoxelAnim\Body.cpp" />
166171
<ClCompile Include="src\Ext\VoxelAnim\Hooks.cpp" />
167172
<ClCompile Include="src\Ext\WeaponType\Body.cpp" />
168-
<ClCompile Include="src\Ext\WeaponType\Hook.EBolt.cpp" />
169173
<ClCompile Include="src\Ext\WeaponType\Hooks.cpp" />
170174
<ClCompile Include="src\Ext\WeaponType\Hooks.DiskLaserRadius.cpp" />
171175
<ClCompile Include="src\Misc\BlittersFix.cpp" />
@@ -204,6 +208,7 @@
204208
<ClCompile Include="YRpp\StaticInits.cpp" />
205209
</ItemGroup>
206210
<ItemGroup>
211+
<ClInclude Include="src\Ext\EBolt\Body.h" />
207212
<ClInclude Include="src\New\Type\Affiliated\CreateUnitTypeClass.h" />
208213
<ClInclude Include="src\Blowfish\blowfish.h" />
209214
<ClInclude Include="src\Ext\Cell\Body.h" />
@@ -246,6 +251,8 @@
246251
<ClInclude Include="src\Misc\FlyingStrings.h" />
247252
<ClInclude Include="src\Misc\PhobosToolTip.h" />
248253
<ClInclude Include="src\Misc\SyncLogging.h" />
254+
<ClInclude Include="src\New\Entity\BannerClass.h" />
255+
<ClInclude Include="src\New\Type\BannerTypeClass.h" />
249256
<ClInclude Include="src\New\Type\Affiliated\TypeConvertGroup.h" />
250257
<ClInclude Include="src\New\Type\Affiliated\DroppodTypeClass.h" />
251258
<ClInclude Include="src\New\Type\DigitalDisplayTypeClass.h" />

YRpp

docs/AI-Scripting-and-Mapping.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,47 @@ ID=ActionCount,[Action1],608,0,0,[HouseIndex],0,0,0,A,[ActionX]
666666
...
667667
```
668668

669+
### `800-802` Display Banner
670+
671+
- Display a 'banner' at a fixed location that is relative to the screen.
672+
- Action `800` will create a new banner or replace the banner with the same Banner ID if it exists. Using a local variable's value when displaying a text banner.
673+
- Action `801` will create a new banner or replace the banner with the same Banner ID if it exists. Using a global variable's value when displaying a text banner.
674+
- Action `802` will delete the banner corresponding to the set Banner ID.
675+
- To make use of this, you need to set the properties of a `BannerType` in your ini file. The banner can either be a `PCX` file, a Shape (`SHP`) file or a `CSF` text. If multiple are set the first one in the above listed order takes effect.
676+
- `SHP.Palette` controls the palette that'll be used when drawing a banner for Shape file.
677+
- `CSF.Color` controls the color of the text that'll be used when drawing a text banner.
678+
- `CSF.Background` controls whether a black background will be displayed below the text banner.
679+
- `CSF.VariableFormat` controls the way to print a variable together with the text banner.
680+
- `none` will make the text banner not display the variable.
681+
- `variable` will make the text banner display the variable alone and will ignore the text in `CSF`.
682+
- `prefix`/`prefixed` will make the text banner display the variable before any other text.
683+
- `surfix`/`surfixed` will make the text banner display the variable after any other text.
684+
685+
In `rulesmd.ini`:
686+
```ini
687+
[BannerTypes]
688+
0=SOMEBANNER
689+
690+
[SOMEBANNER] ; BannerType
691+
PCX= ; filename - excluding the .pcx extension
692+
SHP= ; filename - excluding the .shp extension
693+
SHP.Palette=palette.pal ; filename - excluding the .pal extension
694+
CSF= ; CSF entry key
695+
CSF.Color= ; integer - R,G,B, defaults to MessageTextColor of the owner Side
696+
CSF.Background=false ; boolean
697+
CSF.VariableFormat=none ; List of Variable Format Enumeration (none|variable|prefix/prefixed|surfix/surfixed)
698+
```
699+
700+
In `mycampaign.map`:
701+
```ini
702+
[Actions]
703+
...
704+
ID=ActionCount,[Action1],800,4,[SOMEBANNER],[Unique ID],[Horizontal position],[Vertical position],[VariableIndex],A,[ActionX]
705+
ID=ActionCount,[Action1],801,4,[SOMEBANNER],[Unique ID],[Horizontal position],[Vertical position],[VariableIndex],A,[ActionX]
706+
ID=ActionCount,[Action1],802,0,[Unique ID],0,0,0,0,A,[ActionX]
707+
...
708+
```
709+
669710
## Trigger events
670711

671712
### `500-511` Variable comparation

0 commit comments

Comments
 (0)