Difference between revisions of "Hazardous Objects"

From Worms Knowledge Base

Jump to: navigation, search
(Created page with "The Hazardous Objects are the Mines and the Oil Drums (or Barrels). == Object Types == There can be four values : no objects, mines only, oil drums only, or both objects. == O...")
 
(How is this setting saved in a WSC file?)
Line 13: Line 13:
  
 
== How is this setting saved in a WSC file? ==
 
== How is this setting saved in a WSC file? ==
 +
 +
=== Old schemes ===
  
 
In WWP and W:A v1 schemes (and probably W:A v2 old schemes), only the hazardous object types value is saved.
 
In WWP and W:A v1 schemes (and probably W:A v2 old schemes), only the hazardous object types value is saved.
Line 18: Line 20:
 
The values are: 0x00=No objects, 0x01=Mines, 0x02=Oil Drums, 0x05=Both.
 
The values are: 0x00=No objects, 0x01=Mines, 0x02=Oil Drums, 0x05=Both.
  
In new W:A schemes, there is the setting Object Count. So both Oject Types and Count values are mixed in the same byte.
+
=== New schemes ===
 +
 
 +
In new W:A schemes, there is the setting Object Count. So both Oject Types and Count values are stored in the same byte.
 +
 
 +
==== Object Types ====
 +
 
 +
You have to modulo (%) the value by 4.
 +
 
 +
* If you get 0, there are no objects.
 +
* If you get 1, there are only mines.
 +
* If you get 2, there are only oil drums.
 +
* If you get 3, there are both objects.
 +
 
 +
'''For example :'''
 +
 
 +
You have the value "79".
 +
 
 +
79 % 4 = 3 (because 79 / 4 = 16 and the rest is 3)
 +
 
 +
So there will be both mines and oil drums in the scheme.

Revision as of 10:37, 8 October 2011

The Hazardous Objects are the Mines and the Oil Drums (or Barrels).

Object Types

There can be four values : no objects, mines only, oil drums only, or both objects.

Object Count

This value only exist in W:A. You can set how many objects can appear, from 1 to 250. For having zero objects, simply set "no objects" as the type.

However, there are not all the values from 1 to 250. Counts are: 1-30 (1 by 1), 35-100 (5 by 5), 100-250 (10 by 10).

How is this setting saved in a WSC file?

Old schemes

In WWP and W:A v1 schemes (and probably W:A v2 old schemes), only the hazardous object types value is saved.

The values are: 0x00=No objects, 0x01=Mines, 0x02=Oil Drums, 0x05=Both.

New schemes

In new W:A schemes, there is the setting Object Count. So both Oject Types and Count values are stored in the same byte.

Object Types

You have to modulo (%) the value by 4.

  • If you get 0, there are no objects.
  • If you get 1, there are only mines.
  • If you get 2, there are only oil drums.
  • If you get 3, there are both objects.

For example :

You have the value "79".

79 % 4 = 3 (because 79 / 4 = 16 and the rest is 3)

So there will be both mines and oil drums in the scheme.

Personal tools