Using a Weapon Scope
FreeVector automatically captures the center of the screen each frame to be used as a scope texture. If a weapon model has a subset that uses a texture named SCOPE, then this texture will automatically be replaced with the scope image taken each frame. Below is a script snippet that controls the zoom of the scope image.
FillDIKeyBuffer();
if(ZoomInKeyDown())
{
ZoomScopeIn();
return 0;
}
if(ZoomOutKeyDown())
{
ZoomScopeOut();
return 0;
}
|