hardware
Vars | |
can_install | Prevents direct installation of removable media. |
---|---|
critical | Prevent disabling for important component, like the CPU. |
damage | Current damage level |
damage_failure | "Failure" threshold. When damage exceeds this value the hardware piece will not work at all. |
damage_malfunction | "Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things |
device_type | What define is used to qualify this piece of hardware? Important for upgraded versions of the same hardware. |
enabled | If the hardware is turned off set this to 0. |
expansion_hw | Hardware that fits into expansion bays. |
malfunction_probability | Chance of malfunction when the component is damaged |
max_damage | Maximal damage level. |
power_usage | If the hardware uses extra power, change this. |
removable | Whether the hardware is removable or not. |
Procs | |
can_install | Component-side compatibility check. |
check_functionality | Handles damage checks |
diagnostics | Called on multitool click, prints diagnostic information to the user. |
on_install | Called when component is installed into PC. |
on_remove | Called when component is removed from PC. |
try_eject | Called when someone tries to eject something from it - card from card reader, etc. |
try_insert | Called when someone tries to insert something in it - paper in printer, card in card reader, etc. |
Var Details
can_install
Prevents direct installation of removable media.
critical
Prevent disabling for important component, like the CPU.
damage
Current damage level
damage_failure
"Failure" threshold. When damage exceeds this value the hardware piece will not work at all.
damage_malfunction
"Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things
device_type
What define is used to qualify this piece of hardware? Important for upgraded versions of the same hardware.
enabled
If the hardware is turned off set this to 0.
expansion_hw
Hardware that fits into expansion bays.
malfunction_probability
Chance of malfunction when the component is damaged
max_damage
Maximal damage level.
power_usage
If the hardware uses extra power, change this.
removable
Whether the hardware is removable or not.
Proc Details
can_install
Component-side compatibility check.
check_functionality
Handles damage checks
diagnostics
Called on multitool click, prints diagnostic information to the user.
on_install
Called when component is installed into PC.
on_remove
Called when component is removed from PC.
try_eject
Called when someone tries to eject something from it - card from card reader, etc.
try_insert
Called when someone tries to insert something in it - paper in printer, card in card reader, etc.