Kartik Scripts

Temperature & Environment

The world has a temperature, and your body responds to it.

Checked every 10 seconds.


🌦️ What sets the ambient temperature

Weather

Weather°C
Extra Sunny32
Clear26
Neutral24
Smog25
Clouds21
Overcast18
Clearing17
Foggy15
Rain14
Thunder12
Halloween12
Snow Light0
Snow−3
Christmas−4
Blizzard−10

Modifiers

Effect
Night (22:00 – 06:00)−7 °C
Altitude−0.65 °C per 100 m
SwimmingWater is 11 °C
Inside any interior21 °C
Inside a closed vehicle20 °C
Wet clothes (after swimming)Cold hits 1.8× faster
Wearing a jacketProtection from the cold

Jackets are identified by their clothing drawable IDs in Config.Environment.warmClothing. Add your custom clothing packs there.


🥶 Cold

Below 6 °C you start losing body heat, 0.08 °C per check at the threshold, faster the colder it gets.

At 35.0 °C body temperature you get hypothermia.

Hypothermia stageAfterSymptoms
1immediatelyShivering, fatigue
25 minutesShivering, severe cold, confusion, steady health loss

Severe cold drops your heart rate by 18, your breathing rate by 4, your temperature by 3 °C and your blood pressure by 12.

The cure

A thermal blanket. One dose, and 4 minutes of recovery.

Thermal blankets are $40 at any pharmacy. A player heading up Mount Chiliad in a blizzard should be carrying one.


🥵 Heat

Above 36 °C there is a 4% chance per check of becoming dehydrated.

Dehydration stageAfterSymptoms
1immediatelyFatigue, headache
215 minutesDizziness, passing out, low blood pressure

The cure

Saline IV, small saline, or an electrolyte drink ($15 at any pharmacy).


🌍 Realistic scenarios

SituationResult
Swimming at night in the rainWater at 11 °C, night −7, wet ×1.8, hypothermia fast
Top of Mount Chiliad in snow−3 weather, roughly −6 from altitude, −7 at night
Running the desert at midday in Extra Sunny32 °C plus, dehydration rolls every 10 seconds
Sitting in a carA flat 20 °C, cars are shelter

🔧 For developers

Ask the script what the player's environment is:

exports['kartik-ambulancejob']:getAmbientTemperature()
-- returns: ambient °C, sheltered, wet, warmClothes

Useful for survival scripts, thirst systems or weather HUDs.


🛑 Turning it off

Config.Environment.enabled = false

Turns off ambient temperature, hypothermia and heat dehydration entirely. Every threshold, offset and weather value is editable if you would rather tune it than disable it.

On this page