5.3. env_sprite angles fix

env_sprite has an issue where its angles are sometimes swapped in-game. This usually isn't a problem, but it can be frustrating when working with oriented sprites or models. This behavior provides an automated workaround for this problem.

The underlying cause is an old Worldcraft-era hack in Half-Life's game code that swaps yaw and roll if roll is zero. This behavior automatically sets roll to 360 if it's 0 to avoid triggering that hack.

Configuration

The following global (defined in mess.config) can be used to control this behavior:

global effect
MTL_DISABLE_SPRITE_ANGLES_FIX = 1 Disables theenv_sprite angles fix.