This was a port from the original Xbox.
The original Xbox game was built from DLLs as a form of modularisation. We did away with the DLLs and formed one large codebase instead. This caused us a few issues. Counters used for tracking achievements were failing to increment properly.
Stats between levels were kept as static variables, which appeared not to clear between levels. We wanted the variables to clear as they weren’t supposed to be global. It turned out that static variables in a DLL are cleared away when the DLL is unloaded. So the fix was simply to clear the static variables between levels. This was not evident in the new code at first.
I remember implementing 3D audio positioning by creating a sound cone. It wasn’t a feature on the PlayStation 3 as it was on the Xbox, which used a variation of DirectX. The sound cone allowed the volume around the player to reflect their distance and focus. It even provided fake stereo.
I had a hand in implementing the achievements. Our tester at the time was amazing and knew the game inside out, having had to complete it perfectly hundreds of times.
