if((bitmask & 0x0040) != 0) {
x = Utils.shortValue(data, offset);
y = Utils.shortValue(data, offset + 2);
z = Utils.shortValue(data, offset + 4);
offset = offset + 6;
player.setDeltaAngles(new Angles((float)(180.0 / 32768.0 * x), (float)(180.0 / 32768.0 * y), (float)(180.0 / 32768.0 * z)));
}
if((bitmask & 0x0080) != 0) {
x = (int)data[offset];
y = (int)data[offset + 1];
z = (int)data[offset + 2];
if(x < 0) x = x + 256;
if(y < 0) y = y + 256;
if(z < 0) z = z + 256;
offset = offset + 3;
player.setViewOffset(new Origin(x, y, z));
}
if((bitmask & 0x0100) != 0) {
x = Utils.shortValue(data, offset);
y = Utils.shortValue(data, offset + 2);
z = Utils.shortValue(data, offset + 4);
offset = offset + 6;
player.setViewAngles(new Angles((float)(180.0 / 32768.0 * x), (float)(180.0 / 32768.0 * y), (float)(180.0 / 32768.0 * z)));
}
if((bitmask & 0x0200) != 0) {
x = (int)data[offset];
y = (int)data[offset + 1];
z = (int)data[offset + 2];
if(x < 0) x = x + 256;
if(y < 0) y = y + 256;
if(z < 0) z = z + 256;
offset = offset + 3;
player.setKickAngles(new Angles(x, y, z));
}
}