Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

WIP Patch: Trunk structure connector changes #1932

Open
wzdev-ci opened this issue Jun 18, 2010 · 6 comments
Open

WIP Patch: Trunk structure connector changes #1932

wzdev-ci opened this issue Jun 18, 2010 · 6 comments

Comments

@wzdev-ci
Copy link
Contributor

type_patch (an actual patch, not a request for one) | by Safety0ff


Currently in trunk, when you have more than one connector and no weapons on a structure, a ugly 2D flashing "light" will be rendered on all connectors.

Rather than fix this unused feature, I've made it so that:

  • power generators have their tesla puff animation as connector 1
  • power generators have their plasma rings as connectors 2+
  • factories have smoke puffs on all connectors ( instead of just one)

I left the default positions in as defaults when there aren't any connectors.

Also, it looked like the tesla puff was only supposed to be active when the power generator is "connected" so I added in the conditional.

I still have to remove the magic numbers that make the power rings start at connector 2 before this patch is considered close to complete.
I'm not sure where is the best place for "#define POWER_GEN_RING_CONECTOR_OFFSET 1". ;)

Misc. note: With the patch the position of the rings can be changed, but their size is still a hard-coded function.


Issue migrated from trac:1932 at 2022-04-15 22:02:55 -0700

@wzdev-ci
Copy link
Contributor Author

Safety0ff uploaded file cnectr_trnk.diff (6.8 KiB)

@wzdev-ci
Copy link
Contributor Author

Berg commented


I have been running the patch with t3 bases made and noticed the factories don't puff smoke unless you make a new one after game starts so the premade factories have no smoke.

@wzdev-ci
Copy link
Contributor Author

Safety0ff commented


Hmm, certain factories never get to that part of effectStructureUpdates(). Can you confirm that this doesn't happen without the patch? I don't think this patch would have introduced this issue.

@wzdev-ci
Copy link
Contributor Author

Berg commented


You are correct I tried 2.3.0 stable and factories on t3 have no smoke till you rebuild them

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 3, 2012

cybersphinx changed milestone from 3.0 to unspecified

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 3, 2012

cybersphinx commented


Milestone 3.0 deleted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant