Hi, I want to move the crosshair & shooting direction as wiimote does. I have defined a global variable in the client to save the crosshair angle and set the crosshair position. Then modified the GetAutoaimVector (add the gun offset angle to forward vector) so that the when shooting, the shooting direction will be modified according the crosshair angle.
However, the modified direction is not the crosshair pointed at, there is more errors when more off the center of the screen. the error is caused when YAW is not 0, but it is accurate when YAW is 0 (Pitch is or is not 0). Could some one tell me the reason? or where should I modified? here is some code I added in getautoaimvector(): angles[PITCH] -= cmd->gunoffsetangle[PITCH]; angles[YAW] += cmd->gunoffsetangle[YAW]; commented out the angle restriction GetActiveWeapon()->SetAbsAngles(m_vecAutoAim);//it seems no effect too -- SparrowHawk http://sprhawk.spaces.live.com/ _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

