VCS Fire Spawn

Fire Spawning
is a very simple and easy process using only two lines of code per fire.

{| cellpadding="1" cellspacing="1" class="pbNotSortable" style="width: 942px; height: 19px;"
 * bgcolor="#333333" style="background-color: rgb(51, 51, 51);"|

Starting Address
pfire = 0x08BE3A20;
 * }

This will allow you to use pfire later on in the creation of fires. Add + 0x40 for each new fire to be spawned.

{| cellpadding="1" cellspacing="1" class="pbNotSortable" style="width: 942px; height: 19px;"
 * bgcolor="#333333" style="background-color: rgb(51, 51, 51);"|

Visibility
pfire + 0x00 char/boolean
 * }

Set this to 0 for it to be invisible, any non zero value for it to be visible.

{| cellpadding="1" cellspacing="1" class="pbNotSortable" style="width: 942px; height: 19px;"
 * bgcolor="#333333" style="background-color: rgb(51, 51, 51);"|

Location
pfire + 0x10 float
 * }

This controls where the fire where be placed in X, Y, Z format.

Here is an example:

pfire is a variable that holds the address to the first fire we are spawning.

0x08BE3A20 is the location of the first fire in memory.

Spawning a fire uses these two simple lines:

The first line makes the fire visible.

The second line simply moves the fire to the given X, Y, Z coordinates.

For each new fire after that you must move 0x40 in memory, so use this line: pfire += 0x40; From VCS Cracked Open