Skip to content
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

Added eight new RTS commands related to sector editing #583

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

akaAgar
Copy link
Contributor

@akaAgar akaAgar commented Oct 11, 2023

New commands are:

  • DAMAGE_SECTOR (tag) (sourceSpecialType): Copies the damage parameters (amount, damage type, delay, flash color, etc) from an existing special sector type defined in SECTORS.DDF and applies it to all sectors with a given tag. Use special sector type 0 (or any non-damaging special sector type) to disable damage.

  • DRAG_SECTOR (tag) (factor) [ABSOLUTE]: Changes the drag factor of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current drag.

  • FLAG_SECTOR (tag) (flag) (true/false): Sets/unsets a given flag in all sectors with a given tag. Available flags are AIRLESS, PROPORTIONAL, PUSH_ALL, PUSH_CONSTANT, REVERB_SFX, SUBMERGED_SFX, SWIMMING, VACCUM_SFX and WHOLE_REGION. True means the flag must be set, false that it must be unset

  • FRICTION_SECTOR (tag) (factor) [ABSOLUTE]: Changes the friction factor of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current friction.

  • GRAVITY_SECTOR (tag) (factor) [ABSOLUTE]: Changes the gravity multiplier of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current gravity.

  • PUSH_ANGLE_SECTOR (tag) (angle) [ABSOLUTE]: Changes the push angle (in degrees) of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current push angle.

  • PUSH_SPEED_SECTOR (tag) (speed) [ABSOLUTE]: Changes the push speed of of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current push speed.

  • VISCOSITY_SECTOR (tag) (factor) [ABSOLUTE]: Changes the viscosity factor of all sectors with a given tag. In absence of the ABSOLUTE optional parameter, value is relative and added to the current viscosity.

New commands are :
AIRLESS_SECTOR <tag> <TRUE or FALSE>
DAMAGE_SECTOR <tag> <sourceSpecialType>
DRAG_SECTOR <tag> <factor> [ABSOLUTE]
FRICTION_SECTOR <tag> <factor> [ABSOLUTE]
GRAVITY_SECTOR <tag> <factor> [ABSOLUTE]
VISCOSITY_SECTOR <tag> <factor> [ABSOLUTE]
Format is now FLAG_SECTOR <tag> <flag> <true/false> where :
- tag is the sector(s) tag
- flag is the flag to set (AIRLESS, PROPORTIONAL, PUSH_ALL, PUSH_CONSTANT, REVERB_SFX, SUBMERGED_SFX, SWIMMING, VACCUM_SFX, WHOLE_REGION)
- true means the flag must be set, false that it must be unset
Command format is :
- PUSH_ANGLE_SECTOR <tag> <angle> [ABSOLUTE]
- PUSH_SPEED_SECTOR <tag> <speed> [ABSOLUTE]
@dashodanger dashodanger added enhancement New feature or request needs testing Changes that are large in nature or could affect compatibility labels Oct 11, 2023
Copy link
Member

@dashodanger dashodanger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(outdated post)

@dashodanger dashodanger dismissed their stale review November 14, 2023 23:48

No longer applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs testing Changes that are large in nature or could affect compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants