typedef struct
{
char unk[xxx];
float Recoil[3]; //3D Recoil vector
} ViewMatrix_T;
mov eax, dword_XXXXXXXX; //where dword_XXXXXXXX is the offset for viewmatrix, this is an example, this might not be your case
00 01 02 03 04 05 06 06 06 07 07 07 08 08 08 x????xxxxxxxxx
\x00\x01\x02\x03\x04\x05\x06\x06\x06\x07\x07\x07\x08\x08\x08 x????xxxxxxxxx
00 ? ? ? ? 05 06 06 06 07 07 07 08 08 08
mov eax, dword_YXYXYXYX; //Your new offset
ViewMatrix_T* cView = (ViewMatrix_T*)0xYXYXYXYX;
for( int i = 0; i < 3; i++ ) cView->Recoil[ i ] = 0.f;