Generated wilderness cells don't spawn fish
Morrowind.exe spawns instances of h2o_all_lev-2
in generated exterior cells (as opposed to cells defined in content files.)
spawnCount = random.integer(10)
if spawnCount <= 5:
# Random placement
do spawnCount iterations:
cr = leveledCreature.pick()
if cr:
r = Reference.new(cr)
r.position = vec3(cell.originX + random.integer(7892), cell.originY + random.integer(7892), -random.integer(1748))
cell.addRef(r)
else: # spawnCount > 5
# Swarm placement
cr = leveledCreature.pick()
if cr:
basePos = vec3(cell.originX + random.integer(7892), cell.originY + random.integer(7892), -random.integer(1748))
do spawnCount iterations:
r = Reference.new(cr)
direction = vec3(random.integer(1000), random.integer(1000), random.integer(1000))
direction.normalize()
r.position = basePos + 100 * direction
cell.addRef(r)
For <= 5 creatures it spawns random placed creatures, for >5 it spawns a swarm of the same creature to terrorize you. It's kind of bad where you can have basePos near 0 but the random offset places some above water I'm not sure if the placement code automatically puts them back below water In general this seems half-baked Oh, the swarm dispersion radius of 100 is clearly for small creatures and would produce a mess with most other creatures.
Edited by Evil Eye