Skip to content

OCLSpecialPower option USE_OWNER_OBJECT creates a new Transport instead of using the Owner Object as transport #3273

Description

@WWB2-account

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

The OCLSpecialPower module has the option to set CreateLocation = USE_OWNER_OBJECT, like so:

 Behavior    = OCLSpecialPower ModuleTag_ExamplePower
  SpecialPowerTemplate = SuperweaponCrateDrop
  OCL                  = SUPERWEAPON_CrateDrop
  CreateLocation       = USE_OWNER_OBJECT
 End

The intended effect of this, in the original devs' words:

  ;SCRIPTED SUPPORT: These special powers are triggered directly 
  ;from the transport without creating a transport. This is done 
  ;via new code support and CreateLocation USE_OWNER_OBJECT -- 
  ;which also prevents creating the payload transport.

The problem arises when this is actually scripted and used. In vGEN, this works exactly like intended. You place the object, script it to fire a power and it will do so. No issues.
In ZH however, the object will spawn a new transport nearby that will perform the special power. The original object will do nothing.

Reproduction Steps

Load this map and open it both in vGEN and ZH and observe the difference. The originally placed plane is flashing white for extra clarity what is what.

NB: the behavior of the crates is a data difference and not relevant for this report

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facing⚠️ TriageIssues requiring initial review and prioritization

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions