057C

From GTAMods Wiki
Revision as of 20:55, 28 December 2014 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

Vice City SET_ALLOW_HURRICANES


Description

Sets the current weather table to use

Syntax

057C: set_weather_table [int]

Parameter

[int]
Weather table, either 0 or 1

This opcode sets which weather table to use. There are two weather tables available to use: 0 or 1. By default, the game uses weather table 1. The main difference between the tables is that table 0 has stormy weather while table 1 has rainy weather. The data within the weather table can be edited using VC:Weather. The value set with this opcode is saved in block 19 of the save file. The original script called this opcode only once, after completion of "Phnom Penh '86" and signaling the end of the hurricane threat in the city.

Weather tables

Weather is actually not random in Vice City. These are the data in the weather tables, which use these values for weather.

Table 1 (default) Table 0
04 04 04 04 04 04 04 04 00 00 00 04
04 04 00 00 00 04 04 04 04 00 00 04
04 04 04 04 04 04 04 04 04 04 00 00
00 00 00 00 00 00 00 01 02 02 02 02
01 00 00 00 00 04 04 04 04 04 04 04
04 04 04 04
04 04 04 04 04 04 04 04 00 00 00 04
04 04 00 00 00 04 04 01 05 05 01 00
04 04 04 04 04 04 04 04 04 04 00 00
00 00 00 00 00 00 00 00 01 05 05 05
01 00 00 00 00 04 04 04 04 04 04 04
04 04 04 04

Keywords

set, weather, table, pattern, hurricane