Skip to content

MultiWeapon #1630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 32 commits into
base: develop
Choose a base branch
from
Open

MultiWeapon #1630

wants to merge 32 commits into from

Conversation

a851903106
Copy link
Contributor

@a851903106 a851903106 commented Apr 16, 2025

Technology types are free to enable WeaponX and use them as usable weapons.

  • TechnoType reads WeaponX as their weapon when MultiWeapon=yes, be careful not to forget WeaponCount.
  • MultiWeapon.IsSecondary can only be used for infantry and is responsible for determining which weapons should use SecondaryFire in the Sequence.
  • MultiWeapon.SelectWeapon determines how many weapons can be selected. maximum value is 4, minimum value is 1, defaults to 2.

In rulesmd.ini:

[SOMETECHNO]          ; TechnoType
MultiWeapon=          ; boolean
MultiWeapon.SelectWeapon=          ; integer

[SOMEINFANTRY]                 ; InfantryType
MultiWeapon.IsSecondary=       ; List of integers

科技类型可以自由启用WeaponX并将它们作为可用武器使用。

  • MultiWeapon=yes时科技类型会读取WeaponX作为它的武器,同时注意不要忘记写WeaponCount
  • MultiWeapon.IsSecondary只对步兵有效,它会负责判断哪些武器开火时播放副武器动作帧。
  • MultiWeapon.SelectWeapon决定哪些武器可以被选择。最大值为4,最小值为1,默认2。

Copy link

github-actions bot commented Apr 16, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@a851903106 a851903106 changed the title [Multi Weapon] Free use of WeaponX [Multi Weapon] Use WeaponX Apr 16, 2025
@a851903106 a851903106 changed the title [Multi Weapon] Use WeaponX [MultiWeapon] Use WeaponX Apr 16, 2025
@TaranDahl TaranDahl added ❓New feature ⚙️T2 T2 maintainer review is sufficient labels Apr 16, 2025
@Coronia Coronia added the Tested label Apr 17, 2025
@a851903106 a851903106 changed the title [MultiWeapon] Use WeaponX [MultiWeapon] MultiWeapon May 2, 2025
@a851903106 a851903106 changed the title [MultiWeapon] MultiWeapon MultiWeapon May 2, 2025
@Coronia Coronia requested a review from CrimRecya May 6, 2025 07:11
@Threepeater-E
Copy link

Fabulous invention! But I still wonder how it interacts with tags that determine primary or secondary weapon selection... like ForceWeapon, etc.

@a851903106
Copy link
Contributor Author

Fabulous invention! But I still wonder how it interacts with tags that determine primary or secondary weapon selection... like ForceWeapon, etc.

ForceWeapon is high priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓New feature ⚙️T2 T2 maintainer review is sufficient Tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants