Hi,

I'm creating a random moving sight of sniper rifle (like in Hitman). I'm
using this code at the begining of CAM_Think() in in_camera.cpp:

      vec3_t viewangles;

        if (sniping==1) //sniping is a variable set by message from server (it
works because it's used to set up a sight sprite)
        {
                CONPRINT("Sniping\n");
                viewangles[PITCH]=gEngfuncs.pfnRandomFloat(-3,3);
                viewangles[ YAW ]=gEngfuncs.pfnRandomFloat(-3,3);
        } else
        {
                viewangles[PITCH]=0;
                viewangles[ YAW ]=0;

        }



But it doesn't work. Screen is still this same.

Bodek

http://softhit.ath.cx


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to