miner

Resource generator that produces a certain material that can be repaired by marines and attacked by xenos, Intended as an objective for marines to play towards to get more req gear
Vars | |
add_tick | Tracks how many ticks have passed since we last added a sheet of material |
---|---|
dropship_bonus | Applies the actual bonus points for the dropship for each sale |
max_miner_integrity | Max health of the miner |
miner_integrity | Health for the miner we use because changing obj_integrity is apparently bad |
miner_status | Current status of the miner |
miner_upgrade_type | What type of upgrade it has installed , used to change the icon of the miner. |
mineral_value | The mineral type that's produced |
required_ticks | How many times we neeed to tick for a resource to be created, in this case this is 2* the specified amount |
stored_mineral | How many sheets of material we have stored |
Procs | |
attempt_upgrade | Called whenever someone attacks the miner with a object which is considered a upgrade.The object needs to have a uptype var. |
disable_on_hijack | Called via global signal to prevent perpetual mining |
init_marker | This proc is called during Initialize() and should be used to initially setup the minimap marker of a functional miner. |
record_miner_repair | Separate record keeping proc to reduce copy pasta |
Var Details
add_tick

Tracks how many ticks have passed since we last added a sheet of material
dropship_bonus

Applies the actual bonus points for the dropship for each sale
max_miner_integrity

Max health of the miner
miner_integrity

Health for the miner we use because changing obj_integrity is apparently bad
miner_status

Current status of the miner
miner_upgrade_type

What type of upgrade it has installed , used to change the icon of the miner.
mineral_value

The mineral type that's produced
required_ticks

How many times we neeed to tick for a resource to be created, in this case this is 2* the specified amount
stored_mineral

How many sheets of material we have stored
Proc Details
attempt_upgrade
Called whenever someone attacks the miner with a object which is considered a upgrade.The object needs to have a uptype var.
disable_on_hijack
Called via global signal to prevent perpetual mining
init_marker
This proc is called during Initialize() and should be used to initially setup the minimap marker of a functional miner.
- For a miner starting broken, it should be overridden and immediately return instead, as broken miners will automatically set their minimap marker during their first process()
record_miner_repair
Separate record keeping proc to reduce copy pasta