Mafia II weather is selected by template name rather than a numeric ID. Each template combines sky, lighting, fog, precipitation, and seasonal presentation for a particular time of day.
Weather is authoritative server state. World.setWeather() replicates the selected template to connected players, while World.setTime() controls the synchronized clock independently.
// Clear summer weather at 08:15.
World.setWeather("DTFreeRideDay");
World.setTime(8, 15);
// Optional: force rain intensity from 0 through 100.
World.setRainIntensity(35);
Pass the exact, case-sensitive template name shown below. Use World.getWeather() to read the active template. A negative rain intensity disables the override and returns control to the template itself.
The normalized game-time value ranges from 0 at midnight to 0.5 at noon. The clock column is the same value converted into hours and minutes for use with World.setTime(hour, minute).
| Template | Game time | Clock | Conditions | Preview |
|---|---|---|---|---|
DT_RTRclear_day_night |
0.000 | 00:00 | Clear | ![]() |
DTFreerideNight |
0.000 | 00:00 | Clear | ![]() |
DT07part04night_bordel |
0.000 | 00:01 | Clear | ![]() |
DT11part01 |
0.294316 | 07:07 | Foggy | ![]() |
DT_RTRfoggy_day_morning |
0.310024 | 07:30 | Foggy | ![]() |
DT_RTRfoggy_day_early_morn1 |
0.313921 | 07:34 | Foggy | ![]() |
DT_RTRclear_day_early_morn1 |
0.320318 | 07:44 | Clear | ![]() |
DT_RTRrainy_day_early_morn |
0.328117 | 07:56 | Raining | ![]() |
DT07part01fromprison |
0.338523 | 08:10 | Clear | ![]() |
DTFreeRideDay |
0.341236 | 08:15 | Clear | ![]() |
DTFreeRideDayRain |
0.341018 | 08:15 | Raining | ![]() |
DT_RTRclear_day_early_morn2 |
0.346315 | 08:22 | Clear | ![]() |
DT06part03 |
0.348216 | 08:25 | Clear | ![]() |
DT_RTRrainy_day_morning |
0.362028 | 08:45 | Raining | ![]() |
DT06part02 |
0.397121 | 09:36 | Foggy | ![]() |
DT13part01death |
0.403714 | 09:45 | Clear | ![]() |
DT_RTRclear_day_morning |
0.416776 | 10:03 | Clear | ![]() |
DT09part1VitosFlat |
0.416817 | 10:03 | Clear | ![]() |
DT06part01 |
0.422942 | 10:12 | Raining | ![]() |
DT11part02 |
0.424717 | 10:15 | Foggy | ![]() |
DT08part01cigarettesriver |
0.447927 | 10:48 | Clear | ![]() |
DT09part2MalteseFalcone |
0.482623 | 11:39 | Clear | ![]() |
DT_RTRclear_day_noon |
0.489940 | 11:49 | Clear | ![]() |
DT_RTRfoggy_day_noon |
0.490646 | 11:51 | Foggy | ![]() |
DT14part1_6 |
0.505515 | 12:12 | Clear | ![]() |
DT15 |
0.510414 | 12:20 | Raining | ![]() |
DT15end |
0.510413 | 12:20 | Raining | ![]() |
DT_RTRrainy_day_noon |
0.518224 | 12:31 | Raining | ![]() |
DT15_interier |
0.518815 | 12:31 | Foggy | ![]() |
DT07part02dereksubquest |
0.528755 | 12:46 | Clear | ![]() |
DT_RTRfoggy_day_afternoon |
0.565219 | 13:39 | Foggy | ![]() |
DT10part02Roof |
0.567719 | 13:42 | Clear | ![]() |
DT08part02cigarettesmill |
0.576539 | 13:55 | Clear | ![]() |
DT09part3SlaughterHouseAfter |
0.578222 | 13:58 | Clear | ![]() |
DT12_part_all |
0.588315 | 14:13 | Clear | ![]() |
DT13part02 |
0.588514 | 14:13 | Clear | ![]() |
DT01part01sicily_svit |
0.593820 | 14:20 | Clear | ![]() |
DT_RTRrainy_day_afternoon |
0.595024 | 14:23 | Raining | ![]() |
DT09part4MalteseFalcone2 |
0.600717 | 14:30 | Clear | ![]() |
DT_RTRclear_day_afternoon |
0.632987 | 15:16 | Clear | ![]() |
DT11part03 |
0.648526 | 15:40 | Raining | ![]() |
DT_RTRfoggy_day_late_afternoon |
0.725421 | 17:31 | Foggy | ![]() |
DT_RTRclear_day_late_afternoon |
0.734423 | 17:44 | Clear | ![]() |
DT_RTRrainy_day_late_afternoon |
0.734415 | 17:44 | Raining | ![]() |
DT14part7_10 |
0.739513 | 17:52 | Clear | ![]() |
DT07part03prepadrestaurcie |
0.744817 | 17:59 | Clear | ![]() |
DT_RTRrainy_day_evening |
0.750026 | 18:07 | Raining | ![]() |
DT10part03Evening |
0.757914 | 18:18 | Clear | ![]() |
DT_RTRfoggy_day_evening |
0.794544 | 19:11 | Foggy | ![]() |
DT08part03crazyhorse |
0.797021 | 19:16 | Clear | ![]() |
DT08part04subquestwarning |
0.804712 | 19:26 | Clear | ![]() |
DT11part04 |
0.808127 | 19:32 | Raining | ![]() |
DT_RTRclear_day_evening |
0.812517 | 19:37 | Clear | ![]() |
DT_RTRclear_day_late_even |
0.843816 | 20:22 | Clear | ![]() |
DT_RTRfoggy_day_night |
0.846320 | 20:27 | Foggy | ![]() |
DT_RTRfoggy_day_late_even |
0.847344 | 20:28 | Foggy | ![]() |
DT_RTRrainy_day_late_even |
0.851615 | 20:34 | Raining | ![]() |
DT10part02bSUNOFF |
0.875042 | 21:09 | Clear | ![]() |
DT10part03Subquest |
0.878615 | 21:13 | Foggy | ![]() |
DT01part02sicily |
0.911616 | 22:01 | Foggy | ![]() |
DT14part11 |
0.929721 | 22:27 | Clear | ![]() |
DT_RTRrainy_day_night |
0.947977 | 22:53 | Raining | ![]() |
DT11part05 |
0.971315 | 23:28 | Clear | ![]() |
| Template | Game time | Clock | Conditions | Preview |
|---|---|---|---|---|
DTFreeRideNightSnow |
0.000 | 00:00 | Clear | ![]() |
DTFreeRideDaySnow |
0.341014 | 08:15 | Clear | ![]() |
DT05part01JoesFlat |
0.375915 | 09:04 | Clear | ![]() |
DT05part02FreddysBar |
0.427212 | 10:19 | Clear | ![]() |
DT05part04Distillery |
0.432218 | 10:27 | Foggy | ![]() |
DT05part03HarrysGunshop |
0.440253 | 10:38 | Clear | ![]() |
DT03part01JoesFlat |
0.471424 | 11:23 | Clear | ![]() |
DTFreeRideDayWinter |
0.518217 | 12:31 | Clear | ![]() |
DT05part05ElGreco |
0.583318 | 14:05 | Foggy | ![]() |
DT02part01Railwaystation |
0.588701 | 14:13 | Clear | ![]() |
DT04part01JoesFlat |
0.625315 | 15:06 | Foggy | ![]() |
DT02part02JoesFlat |
0.627017 | 15:09 | Clear | ![]() |
DT03part02FreddysBar |
0.646516 | 15:37 | Foggy | ![]() |
DT02part03Charlie |
0.656083 | 15:51 | Foggy | ![]() |
DT02part04Giuseppe |
0.687523 | 16:36 | Clear | ![]() |
DT05part06Francesca |
0.743920 | 17:57 | Clear | ![]() |
DT02NewStart1 |
0.768221 | 18:34 | Clear | ![]() |
DT03part03MariaAgnelo |
0.773717 | 18:41 | Clear | ![]() |
DT02NewStart2 |
0.776479 | 18:45 | Clear | ![]() |
DT02part05Derek |
0.781326 | 18:52 | Clear | ![]() |
DT03part04PriceOffice |
0.815118 | 19:42 | Clear | ![]() |
DT04part02 |
0.928518 | 22:25 | Clear | ![]() |
DT05Distillery_inside |
0.981817 | 23:42 | Foggy | ![]() |