Use a Sourceport that Supports Modding: GZDoom, for example, supports a wide range of custom content through its built-in ACS scripting and compatibility with various WAD formats.
Program in ACS: For interactive features, use the ACS (Ars Scripta Compiler) scripting language, which allows for the creation of custom behaviors in game.