Difference between revisions of "057C"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{Icon|VC}}
+
{{Icon|VC}} '''SET_ALLOW_HURRICANES'''
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
Line 9: Line 9:
 
:: Weather table, either 0 or 1
 
:: 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.Config|VC:Weather]]. The value set with this opcode is saved in block 19 of the [[Saves (GTA VC)|save file]].
+
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.Config|VC:Weather]]. The value set with this opcode is saved in block 19 of the [[Saves (GTA VC)|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 tables ==
These are the data in the weather tables, which use [[01B6#Vice_City|these values]] for weather.
+
Weather is actually not random in Vice City. These are the data in the weather tables, which use [[01B6#Vice_City|these values]] for weather.
 
{|
 
{|
 
! Table 1 (default) || Table 0
 
! Table 1 (default) || Table 0
Line 32: Line 32:
 
|}
 
|}
  
==Keywords==
+
== Keywords ==
set, weather, table, pattern
+
set, weather, table, pattern, hurricane
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 20:55, 28 December 2014

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