Wrote this after some people on the DoD forums commented about the missing voice commands that seemed to get taken out recently. The WAV files still existed in the install, just not the ability to use them.
Simple server side plug-in re-enables them and adds some others - classics such as "Medic!" and "Drop your weapons!"
Sounds are transmitted via the normal voice channel so they fade with distance. There is also a say_team text message shown too. Players can only use the commands when their "alive" and it includes basic spam blocking. It also detects which side your on and if your British or US.
My first attempt at an AMXX plugin so its probably NOT that sleek and efficient - forgive me.
Code:
/* AMX Mod script.
*
* AMXX DoD Missing Sounds
* by Trp. Jed
*
* Re-instates some of the "missing" voice commands from earlier
* versions of DoD. Autodetects if player if allies or axis and
* plays correct language. cvar sets which allied voice to use.
*
* Settings:
* amx_dodmissingsounds 0/1 - enable the missing sounds (put in server.cfg)
*
* Usage:
* Bind a key to one of the following commands:
*
* voice_coverflanks
* voice_defendobjective (British only)
* voice_defendposition (British only)
* voice_dropguns
* voice_firmleft
* voice_firmright
* voice_medic
* voice_moveout
* voice_moveuppiat (British only)
* voice_prepare
* voice_spreadout
* voice_tankahead
* voice_takecover
* voice_takeflank
* voice_takeobjective (British only)
*
*
* Example:
* bind "o" "voice_medic"
*
*
* This file is provided as is (no warranties).
*
*/
Just bind a key to the command you want, or as an alternative, paste the following into a text file called "commandmenu.txt" and place it in your "day of defeat\dod" folder. You can then access the sounds via the command menu (which I think defaults to X)
Code:
"1" "HELP"
{
CUSTOM "1" "SERVER INFO" "!SERVERINFO"
CUSTOM "2" "MAP DESCRIPTION" "!MAPBRIEFING"
}
"2" "VOICE MESSAGES 1"
{
"1" "'Move out'" "voice_attack"
"2" "'Fall Back'" "voice_fallback"
"3" "'Covering Fire'" "voice_cover"
"4" "'I need backup'" "voice_backup"
"5" "'Hold this position'" "voice_hold"
}
"3" "VOICE MESSAGES 2"
{
"1" "'Yes Sir!'" "voice_yessir"
"2" "'Flank Left!'" "voice_left"
"3" "'Flamk Right!'" "voice_right"
"4" "'I need ammo'" "voice_needammo"
"5" "'Sniper!'" "voice_sniper"
"6" "'Grenade!'" "voice_grenade"
}
"4" "VOICE MESSAGES 3"
{
"1" "'Prepare to attack!'" "voice_prepare"
"2" "'Move Out!'" "voice_moveout"
"3" "'Cover Flanks!!'" "voice_coverflanks"
"4" "'Take Flanks!'" "voice_takeflank"
"5" "'Left!'" "voice_firmleft"
"6" "'Right!'" "voice_firmright"
}
"5" "VOICE MESSAGES 4"
{
"1" "'Spreadout!'" "voice_spreadout"
"2" "'Drop your weapons!'" "voice_dropguns"
"3" "'Tank Ahead!'" "voice_tankahead"
"4" "'Take Cover'" "voice_takecover"
"5" "'Medic!'" "voice_medic"
}
"6" "BRIT VOICE MESSAGES"
{
"1" "'Defend Objective!'" "voice_defendobjective"
"2" "'Defend Position!'" "voice_defendposition"
"3" "'Take Objective!'" "voice_takeobjective"
"4" "'Move up the PIAT!'" "voice_moveuppiat"
}
"7" "HAND SIGNALS 1"
{
"1" "'Stick Together'" "signal_sticktogether"
"2" "'Fall Back'" "signal_fallback"
"3" "'No Sir'" "signal_no"
"4" "'Yes Sir'" "signal_yes"
"5" "'Sniper!'" "signal_sniper"
"6" "'Need Backup'" "signal_backup"
"7" "'Right'" "signal_enemyright"
"8" "'Left'" "signal_enemyleft"
}
"8" "HAND SIGNALS 2"
{
"1" "'Flank Left'" "signal_flankleft"
"2" "'Flank Right'" "signal_flankright"
"3" "'Move Out'" "signal_moveout"
"4" "'Area Clear'" "signal_areaclear"
"5" "'Covering Fire'" "signal_coveringfire"
"6" "'Hold Position'" "signal_holdposition"
"7" "'Enemy Ahead'" "signal_enemyspotted"
"8" "'Grenade!'" "signal_grenade"
}