Common tasks

Make mining twice as effective. The factor is kept only until the next scene load, so set it again after each load.

Weapons.SetHitFactor(Mod.Id, HitTarget.Mining, 2f);

Give a small hit a chance to land one more point instead of always rounding.

Weapons.SetHitFactor(Mod.Id, HitTarget.Chopping, 1.3f, true);

Remove every hit factor your mod has set.

Weapons.ClearHitFactors(Mod.Id);

Count the Batteries D (item 10580) the player carries, and reload the weapon in the right hand.

Log.Info("Batteries D: " + Weapons.Ammo(10580));
if (Weapons.Reload()) Log.Info("Reloading.");

Turn the flashlight on, if the player holds one.

if (Weapons.FlashlightOn() == false) Weapons.SetFlashlightOn(true);
Log.Info("Charge: " + Weapons.FlashlightCharge());

Read the osrat.

Log.Info("Osrat signal " + Osrats.Strength + ", beeping: " + Osrats.IsBeeping);