Final DOOM: Evilution - MAP31: How to fix the missing yellow keycard?

Solution 1:

I couldn't get any method suggested in the comments to work so I used the cheat code IDKFA to give myself the keycards.

Using noclip doesn't work as there are two triggers, the first is with the opening of the yellow gate.