PDA

View Full Version : How to edit voice radio message?


oofishg
11-06-2009, 08:41 AM
How to edit voice radio message?

ex:
voice_gogogo
(Voice) oofish : Go Go Go!



(Voice) oofish : Guys,GoGoGo!

or any

?

Dr.G
11-06-2009, 12:03 PM
You cant. Its a sound file that only says gogogo. You would need to find or create a new sound file, and after that you would have to make a new command for playing it.

oofishg
11-06-2009, 12:17 PM
You cant. Its a sound file that only says gogogo. You would need to find or create a new sound file, and after that you would have to make a new command for playing it.

@@
not sound

the voice radio message(msg)

oofishg
11-08-2009, 05:02 AM
:(

i know CS can do it , but DOD i can't ..


public color_radio(msgid, msgDest, msgEnt){
new argNum = get_msg_args()
if (argNum!=5) return PLUGIN_CONTINUE
if (get_msg_argtype(1)!=ARG_BYTE) return PLUGIN_CONTINUE
new arg1=get_msg_arg_int(1)
if (arg1!=5) return PLUGIN_CONTINUE
new arg3[256]
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_Radio")){
new arg4[33],arg5[129]
get_msg_arg_string(4,arg4,32)
get_msg_arg_string(5,arg5,128)
new saymsg[255]
if(equal(arg5,"#Go_go_go")){//Msg GoGoGo
format(saymsg,192,"^x03%s :^x04 衝啊..!",arg4)
}
else if(equal(arg5,"#Stick_together_team")){
format(saymsg,255,"^x03%s :^x04 一起走吧! 各位..",arg4)
}
else if(equal(arg5,"#Team_fall_back")){
format(saymsg,255,"^x03%s :^x04 快撤退啊!",arg4)
}
else if(equal(arg5,"#Cover_me")){
format(saymsg,255,"^x03%s :^x04 掩護我!",arg4)
}
else if(equal(arg5,"#You_take_the_point")){
format(saymsg,255,"^x03%s :^x04 你守住這個位置",arg4)
}
else if(equal(arg5,"#Hold_this_position")){
format(saymsg,255,"^x03%s :^x04 各單位保持現在的位置",arg4)
}
else if(equal(arg5,"#Regroup_team")){
format(saymsg,255,"^x03%s :^x04 重新組合隊形",arg4)
}
else if(equal(arg5,"#Follow_me")){
format(saymsg,255,"^x03%s :^x04 跟我來...",arg4)
}
else if(equal(arg5,"#Taking_fire")){
format(saymsg,255,"^x03%s :^x04 開火啊..需要支援!",arg4)
}
else if(equal(arg5,"#Get_in_position_and_wait")){
format(saymsg,255,"^x03%s :^x04 全隊就定位,等我衝出去時掩護我",arg4)
}
else if(equal(arg5,"#Storm_the_front")){
format(saymsg,255,"^x03%s :^x04 全隊正面快攻!",arg4)
}
else if(equal(arg5,"#Report_in_team")){
format(saymsg,255,"^x03%s :^x04 回報行動是否準備OK",arg4)
}
else if(equal(arg5,"#Affirmative")){
format(saymsg,255,"^x03%s :^x04 收到",arg4)
}
else if(equal(arg5,"#Roger_that")){
format(saymsg,255,"^x03%s :^x04 了解",arg4)
}
else if(equal(arg5,"#Enemy_spotted")){
format(saymsg,255,"^x03%s :^x04 發現敵人",arg4)
}
else if(equal(arg5,"#Need_backup")){
format(saymsg,255,"^x03%s :^x04 我需要支援",arg4)
}
else if(equal(arg5,"#Sector_clear")){
format(saymsg,255,"^x03%s :^x04 此區域安全",arg4)
}
else if(equal(arg5,"#In_position")){
format(saymsg,255,"^x03%s :^x04 我已經就定位",arg4)
}
else if(equal(arg5,"#Reporting_in")){
format(saymsg,255,"^x03%s :^x04 回報行動準備OK",arg4)
}
else if(equal(arg5,"#Get_out_of_there")){
format(saymsg,255,"^x03%s :^x04 炸彈要爆炸了.閃人閃人閃人!",arg4)
}
else if(equal(arg5,"#Negative")){
format(saymsg,255,"^x03%s :^x04 想的美咧",arg4)
}
else if(equal(arg5,"#Enemy_down")){
format(saymsg,255,"^x03%s :^x04 敵人死了",arg4)
}
else if(equal(arg5,"#Hostage_down")){
format(saymsg,255,"^x03%s :^x04 人質死了= =..",arg4)
}
else if(equal(arg5,"#Fire_in_the_hole")){
format(saymsg,255,"^x03%s :^x04 我要丟啦..小心被噴到!",arg4)
}
else {
return PLUGIN_CONTINUE
//format(saymsg,random_num(0,255),"^x03%s : ^x04What are you saying!",arg4)
}
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, msgEnt)
write_byte(msgEnt)
write_string(saymsg)
message_end()
//client_color(0,msgEnt,saymsg)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE

Vet
11-08-2009, 08:44 PM
In DoD, the voices are done with EVENTS (events 30 and 31 to be exact), not messages. Its like Dr.G said, you'd need to create your replacement sound bites and upload them to your clients. Then trap all the client voice_* and voice_menu* commands and issue the corresponding voice file via an emit_sound or spk command.

meathead
11-09-2009, 03:11 AM
Sorry but beer is making me but in. Can you not just change the .wav file or something. Never looked at a radio file. would that just screw up the .bsp?

Vet
11-09-2009, 09:32 AM
Yes, you could change the wav to play on your local machine. I assumed, perhaps erroneously, he wanted to change the wavs for everyone entering his server via a plugin. And since you can't force a client to upload an existing file, you'd need different filenames.

diamond-optic
11-09-2009, 03:17 PM
what i gather from this.. is that he doesnt wanna change the sound.. but he wants to change the text printed to the chat

Vet
11-09-2009, 11:56 PM
lol, oh ya. I guess I oughta learn how to read.