Animated Scope -- Run through anim once?
Moderator: Moderators
Animated Scope -- Run through anim once?
I have my animated scope, but I only want it to run through the animation once. I think it has something to do with the "blendFunc blend" but I can't figure this out. Any help will be greatly appreciated.
Oh, h/o here's my script.
textures/hud/zoomoverlay
{
surfaceparm nolightmap
nomipmaps
nopicmip
{
clampmap textures/hud/zoomoverlay.tga
clampmap textures/hud/zoomoverlay0.tga
clampmap textures/hud/zoomoverlay1.tga
clampmap textures/hud/zoomoverlay2.tga
clampmap textures/hud/zoomoverlay3.tga
clampmap textures/hud/zoomoverlay4.tga
clampmap textures/hud/zoomoverlay5.tga
clampmap textures/hud/zoomoverlay6.tga
clampmap textures/hud/zoomoverlay7.tga
clampmap textures/hud/zoomoverlay9.tga
clampmap textures/hud/zoomoverlay10.tga
animmap 10 textures/hud/zoomoverlay.tga textures/hud/zoomoverlay0.tga textures/hud/zoomoverlay1.tga textures/hud/zoomoverlay2.tga textures/hud/zoomoverlay3.tga textures/hud/zoomoverlay4.tga textures/hud/zoomoverlay5.tga textures/hud/zoomoverlay6.tga textures/hud/zoomoverlay7.tga textures/hud/zoomoverlay9.tga textures/hud/zoomoverlay10.tga
blendFunc blend
alphaGen oneMinusVertex
rgbGen Vertex
}
}
textures/hud/zoomoverlay
{
surfaceparm nolightmap
nomipmaps
nopicmip
{
clampmap textures/hud/zoomoverlay.tga
clampmap textures/hud/zoomoverlay0.tga
clampmap textures/hud/zoomoverlay1.tga
clampmap textures/hud/zoomoverlay2.tga
clampmap textures/hud/zoomoverlay3.tga
clampmap textures/hud/zoomoverlay4.tga
clampmap textures/hud/zoomoverlay5.tga
clampmap textures/hud/zoomoverlay6.tga
clampmap textures/hud/zoomoverlay7.tga
clampmap textures/hud/zoomoverlay9.tga
clampmap textures/hud/zoomoverlay10.tga
animmap 10 textures/hud/zoomoverlay.tga textures/hud/zoomoverlay0.tga textures/hud/zoomoverlay1.tga textures/hud/zoomoverlay2.tga textures/hud/zoomoverlay3.tga textures/hud/zoomoverlay4.tga textures/hud/zoomoverlay5.tga textures/hud/zoomoverlay6.tga textures/hud/zoomoverlay7.tga textures/hud/zoomoverlay9.tga textures/hud/zoomoverlay10.tga
blendFunc blend
alphaGen oneMinusVertex
rgbGen Vertex
}
}
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
I think someone did this once change frames in a shader . This is from the SDK docs . If you don't add a frequency and do this it may work but I don't know how you are going to know when the player uses the scope .
scriptshader( String shaderCommand, Float argument1, [ Float argument2 ] )
alias for shader command, change a specific shader parameter for the entity.
Valid shader commands are:
translation [trans_x] [trans_y] - change the texture translation
offset [offset_x] [offset_y] - change the texture offset
rotation [rot_speed] - change the texture rotation speed
frame [frame_num] - change the animated texture frame
wavebase [base] - change the base parameter of the wave function
waveamp [amp] - change the amp parameter of the wave function
wavebase [phase] - change the phase parameter of the wave function
wavefreq [freq] - change the frequency parameter of the wave function
scriptshader( String shaderCommand, Float argument1, [ Float argument2 ] )
alias for shader command, change a specific shader parameter for the entity.
Valid shader commands are:
translation [trans_x] [trans_y] - change the texture translation
offset [offset_x] [offset_y] - change the texture offset
rotation [rot_speed] - change the texture rotation speed
frame [frame_num] - change the animated texture frame
wavebase [base] - change the base parameter of the wave function
waveamp [amp] - change the amp parameter of the wave function
wavebase [phase] - change the phase parameter of the wave function
wavefreq [freq] - change the frequency parameter of the wave function

