Skip to content

[New Feature] Add OmniFire to WeaponTypes. #550

Open
@tomsons26

Description

@tomsons26

Description:

OmniFire from RA2.

The unit firing this weapon does not have to turn to face its target before firing.

Possible Implementation:

Patch IsOmniFire check at 00656F99
Replace 0064E59C IsTurretEquipped case with something like

if ( Class->IsTurretEquipped ) {
    WeaponInfoStruct *W = Get_Primary_Weapon();
    if ( TechnoClass::Weapon_Valid(w) && !w->WeaponType->OmniFire ) {
        if ( w->__TurretLocked ) {//not sure what to do with, may be new in YR
            SecondaryFacing.Set_Desired(PrimaryFacing.Current());
        } else {
            SecondaryFacing.Set_Desired(dir);
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-featureNew feature or request.

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions