In the server.cs file of a gun, in the
//weapon image section, I added the code
setFov = 30;
to try to make the field of view zoom in a little when using the weapon.
So part of my weapon image code now looks like this...
//weapon image
mountPoint = 0;
offset = "0 0 0";
eyeOffset="0 0.9 -0.07";
rotation = eulerToMatrix( "0 0 0" );
setFov = 30;
The problem is, nothing happens in the game.
How do I change field of view when a weapon is out?
---
Edit:
Solved thanks to
MunkeyFinal code solution:
function MP40Image2::onMount(%this,%obj,%slot)
{
setFov(30);
}
function MP40Image2::onUnMount(%this,%obj,%slot)
{
setFov(90);
}