waves
Moderator: Moderators
-
newt
rotatexup howmanydegrees
rotateyup howmanydegrees
rotatezup howmanydegrees
rotatexdown howmanydegrees
rotateydown howmanydegrees
rotatezdown howmanydegrees
(make sure you put $myrocker in front of those rotates
)
after you add that in your script-
you can add
EITHER
$myrocker time X //define the exact time it takes to move that amount
OR
$myrocker speed X //units per second
after you put in everything you want, you can use
EITHER
$myrocker move //start moving
OR
$myrocker waitmove //start moving and wait till finished before continuing with script
rotateyup howmanydegrees
rotatezup howmanydegrees
rotatexdown howmanydegrees
rotateydown howmanydegrees
rotatezdown howmanydegrees
(make sure you put $myrocker in front of those rotates
after you add that in your script-
you can add
EITHER
$myrocker time X //define the exact time it takes to move that amount
OR
$myrocker speed X //units per second
after you put in everything you want, you can use
EITHER
$myrocker move //start moving
OR
$myrocker waitmove //start moving and wait till finished before continuing with script
-
newt
-
newt
which
// D-Day Specialty Shaders
textures/misc_outside/sf_deepbluesea
{
qer_editorimage textures/misc_outside/ocean2.tga
qer_trans .4
surfaceParm trans
surfaceParm water
surfaceParm noimpact
cull none
tessSize 128
// deformVertexes wave 1000 sin 100 80 1 .3
deformVertexes move 0 2 2 sin -3 1 0 .1
deformVertexes move 0 2 2 sin 0 5 0 .05
// deformVertexes bulge -6.2831853 16 .8
deformVertexes bulge -6 6 .3
// bulge = numberoftimesrepeatedpertexture amplitude frequency
{
map textures/misc_outside/ocean2.tga
blendFunc blend
depthWrite
rgbGen identity
alphaGen dot .1 .6
tcMod scroll .01 0
tcMod scale 9 7
tcMod turb 0 .08 0 .08
}
{
map textures/misc_outside/ocean2.tga
blendFunc add
depthWrite
rgbGen identity
rgbGen const .95 .94 1
alphaGen dot .1 .6
tcMod scroll -.01 .002
tcMod turb 0 .005 0 .008
tcMod scale 10 9
}
{
map textures/misc_outside/froth.tga
blendFunc blend
alphaGen dot .1 .6.
tcMod scroll .01 .01
tcMod turb 0 .01 0 .05
tcMod scale 9 7
}
{
map $lightmap
rgbGen Identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
AND
wake
{
qer_editorimage textures/misc_outside/wake.tga
qer_keyword natural
qer_keyword liquid
qer_keyword ocean
qer_trans .4
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
cull none
nopicmip
deformvertexes wave 30 sin 0 10 0 .2
{
map textures/misc_outside/oceandday.tga
//blendFunc GL_ONE GL_ONE
rgbGen identity
tcMod scroll .2 .7
}
{
map textures/misc_outside/oceandday1.tga
blendfunc add
tcMod scroll 0 .9
nextbundle
map textures/misc_outside/oceandday1.tga
tcMod scroll 0 .5
}
{
map $lightmap
rgbGen Identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
// D-Day Specialty Shaders
textures/misc_outside/sf_deepbluesea
{
qer_editorimage textures/misc_outside/ocean2.tga
qer_trans .4
surfaceParm trans
surfaceParm water
surfaceParm noimpact
cull none
tessSize 128
// deformVertexes wave 1000 sin 100 80 1 .3
deformVertexes move 0 2 2 sin -3 1 0 .1
deformVertexes move 0 2 2 sin 0 5 0 .05
// deformVertexes bulge -6.2831853 16 .8
deformVertexes bulge -6 6 .3
// bulge = numberoftimesrepeatedpertexture amplitude frequency
{
map textures/misc_outside/ocean2.tga
blendFunc blend
depthWrite
rgbGen identity
alphaGen dot .1 .6
tcMod scroll .01 0
tcMod scale 9 7
tcMod turb 0 .08 0 .08
}
{
map textures/misc_outside/ocean2.tga
blendFunc add
depthWrite
rgbGen identity
rgbGen const .95 .94 1
alphaGen dot .1 .6
tcMod scroll -.01 .002
tcMod turb 0 .005 0 .008
tcMod scale 10 9
}
{
map textures/misc_outside/froth.tga
blendFunc blend
alphaGen dot .1 .6.
tcMod scroll .01 .01
tcMod turb 0 .01 0 .05
tcMod scale 9 7
}
{
map $lightmap
rgbGen Identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
AND
wake
{
qer_editorimage textures/misc_outside/wake.tga
qer_keyword natural
qer_keyword liquid
qer_keyword ocean
qer_trans .4
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
cull none
nopicmip
deformvertexes wave 30 sin 0 10 0 .2
{
map textures/misc_outside/oceandday.tga
//blendFunc GL_ONE GL_ONE
rgbGen identity
tcMod scroll .2 .7
}
{
map textures/misc_outside/oceandday1.tga
blendfunc add
tcMod scroll 0 .9
nextbundle
map textures/misc_outside/oceandday1.tga
tcMod scroll 0 .5
}
{
map $lightmap
rgbGen Identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
Here is one that I made that has very small waves, try to change the values on the deformVertexes lines. Or else go with deepbluesea if you like the look of that.
Code: Select all
textures/**** add a name of your choice here ****/an_ocean
{
qer_editorimage textures/misc_outside/ocean2.tga
qer_keyword natural
qer_keyword liquid
qer_keyword ocean
qer_trans .4
surfaceParm trans
surfaceParm water
surfaceParm noimpact
cull none
tessSize 256
deformVertexes move 0 2 2 sin -3 1 0 .1 // Change here
deformVertexes move 0 2 2 sin 0 5 0 .05 // Change here
deformVertexes bulge -6 6 .3 // Change here
//bulge = numberoftimesrepeatedpertexture amplitude frequency
{
map textures/misc_outside/ocean2.tga
blendFunc blend
depthWrite
rgbGen identity
alphaGen dot .8 .8
tcMod scroll .01 0
tcMod scale 1 1
tcMod turb 0 .08 0 .08
}
{
map textures/misc_outside/froth.tga
blendFunc blend
rgbGen const (0.6 0.3 0.5)
alphaGen dot .5 .5
tcMod scroll .01 .01
tcMod turb 0 .01 0 .05
tcMod scale 1 1
}
{
map $lightmap
rgbGen Identity
blendFunc GL_DST_COLOR GL_ZERO
}
}
Looking for a good game? Play GO the ancient asian game of strategy.
newt wrote:this is just a ship not the whole map
$myrocker rotatexup howmanydegrees
$myrocker rotatezdown howmanydegrees
?
any way to make big waves?
$myrocker is not the whole map. its the targetname of whatever you want to 'rock'. i tried to make it self explanatory, but i guess i failed. 'howmanydegrees' should be replaced by a number explaining, well, 'how many degrees' to rock.
-
newt