VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Hey guys,
I'm working on a mission where you have to destroy a dam to get to the other side of the map, to the enemy base. But i need help with the scripting, the "change water over time" stuff and those scripts. Could anyone give me a little info on this one?

Thanks
Rank up!
Sponsor
NewNightmare
14 years ago
if you want to add the bigass wave effect, you have to edit Gamedata.ini, and copy one of the chunks of already-exisiting waves, and set settings appropriately
here's the code from China mission 3
  ;the following are for vertex animated water
  VertexWaterAvailableMaps2       = Maps\CHI03\CHI03.map
  VertexWaterHeightClampLow2      = 0.0
  VertexWaterHeightClampHi2       = 31.2
  VertexWaterAngle2               = -12    ;in degrees
  VertexWaterXPosition2           = 282.0
  VertexWaterYPosition2           = -20.0
  VertexWaterZPosition2           = 3.0
  VertexWaterXGridCells2          = 100
  VertexWaterYGridCells2          = 200
  VertexWaterGridSize2            = 11.0
  VertexWaterAttenuationA2        = 1.0
  VertexWaterAttenuationB2        = 0.0
  VertexWaterAttenuationC2        = 0.0
  VertexWaterAttenuationRange2    = 20.0
the '2' at the end is there because it's a second one in the file (notice there's not 'End's)
If not added before, you should have 4 by default, so yours would be with 5s at the end.
Note: This requires some waypoints in-game, can't remember which, open any mission in WB with destroyable dam and look for stand-alone waypoints near the dam
I think I found it, WaveGuide1 its called in Chi03
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Yes I've seen and read that page you liked before, but it didn't work for me, maybe I did something wrong. Thanks for the code, is it one from the basic ZHINI put into a self-made INI in the map folder?

Thanks
Rank up!
NewNightmare
14 years ago

is it one from the basic ZHINI put into a self-made INI in the map folder?


It's located in Gamedata.ini in INIZH.Big // INI.big and what you have to do is copy that piece of code over, add 1 to the number @ the end of each of the "VertexBlahX" codes, and put in the values, all in gamedata.ini
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Oh I see, thanks.
Rank up!