Nugget (modding)

From Cosmoteer Wiki
< Modding‎ | Resources (modding)Modding/Resources/Nugget
Jump to navigation Jump to search

Code locations (what's this?):

Cosmoteer.Resources.Nugget
Cosmoteer.Resources.NuggetFlags
Cosmoteer.Resources.NuggetRules

A single "nugget" of resource floating in space that can be picked up by crew.

Stores global resource nugget rules.

Alias "NuggetRules".

This is how resources exist in space outside of ships and parts, and possibly in visible storage in parts.

Inherits from SimObject.

Parameters (complete list)
Name Type Required? Default value Description
LinearDamping float Yes - How much drag affects the movement of the floating resource until it comes to a complete stop.

Higher values slow it down faster.

AngularDamping float Yes - How much drag affects the rotation of the floating resource until it comes to a complete stop.

Higher values slow it down faster.

DropLinearVelocity Range<float> Yes - Presumably how fast the resource moves forward when first spawned in space.
DropAngularVelocity Range<Angle> Yes - Presumably how fast the resource rotates around its own center when first spawned in space.
SelectionRadius float Yes - Presumably, the higher this is, the further away your mouse can be to successfully select it.

Notes

  • Shares some parameters with projectiles, so you can look at their values for reference.
  • There is an enum NuggetFlags set to :
    • 0 if the resource is unowned ("None")
    • 1 if the resource is owned ("BelongsToPlayer")

Examples

CalloutIconWarning.pngWork in Progress
This subsection is currently work-in-progress: Some things may be missing.

Feel free to contribute to make it better!

See also