I wanted to adjust the Tundra biome so that it was actually colder like real Tundra, but my map is covered in nothing but the Tundra biome and I'm constantly sitting at 17.67°C. No matter if it's env.month 12 or env.month 8, I'm the same temperature. Why is this even a server command/convar if it doesn't actually change the season? Trying to get my map a bit colder without going full-on arctic and what seems logical to make that happen doesn't do anything.
What is the point of env.month?
The angle of the sun changes for the seasons, so you occasionally have to switch your solar panels orientation. I think that's about it though.
JimDeadlock
The angle of the sun changes for the seasons, so you occasionally have to switch your solar panels orientation. I think that's about it though.
Yeah, I'm wanting it to change map temperature. Oh well.
JackReigns
Yeah, I'm wanting it to change map temperature. Oh well.
check out class PlayerMetabolism
How about this:
Disable Temperature Functions
you could copy this code, save it as TemperatureControl.cs and see if this does it. Not sure if you can set the temperature directly like this.
using System;
using Oxide.Core;
using Oxide.Core.Plugins;
using UnityEngine;
namespace Oxide.Plugins
{
[Info("TemperatureControl", "YourName", "1.0.0")]
[Description("Changes the map temperature to -25°C everywhere.")]
public class TemperatureControl : RustPlugin
{
private const float targetTemperature = -25f; // Target temperature in Celsius
// Called when the plugin is loaded
void OnServerInitialized()
{
// Adjust the global temperature after server is initialized
SetTemperature(targetTemperature);
}
// Function to set temperature to all zones
private void SetTemperature(float temperature)
{
// Iterate through all the terrain zones and set the temperature
foreach (var zone in TerrainMeta.Zones)
{
zone.temperature = temperature;
}
// Optional: Log a message when the temperature has been adjusted
Puts($"Map temperature set to {temperature}°C everywhere.");
}
}
}