| MCS' Coding Tips "Success!" |
![]() |
Removing the hit wall and spacebar sound Written by MCS Tested by Quinnsey |
| Main Page News Wolfenstein 3D Texture Library MCS' Coding Tips - "Success"! Utilities Spear Resurrection Wolfendoom Wolf Collection Original Wolf 3D Doom/Duke maps Other Stuff Links Questions? Email us! |
| When you rub in to the walls looking for secret areas, or when you press the space bar to open doors or secret passages, the engine plays some crackling sound that gets quite annoying at times. Besides, the sound can slow down both music playing and movement significantly when running into walls or sprites on certain computer configurations. There's a simple way to prevent the engine from playing these sounds. Doing so will also free a pair of Adlib sound slots in AUDIOT.WL6 that can be used for other purposes. Open WL_AGENT.C and do the following: 1. To remove the "hit wall" sound: Locate the lines if (!SD_SoundPlaying()) SD_PlaySound (HITWALLSND); Remove them or comment them out. 2. To remove the "space bar" sound: Locate the lines else SD_PlaySound (DONOTHINGSND); Remove them or comment them out. Compile and link up. Then start your new EXE. Things should be pretty quiet now. Success! MCS |