Jump to content
主视角中国

Recommended Posts

Posted

在MOHAA的main/sound/music/下

那是整段的MP3音乐,不过,不是很好听

有几段还可以,它是mus_berlin.mp3,和mus_NorthAfrica_01a.mps。。。。

如何播放呐?

引用一下就可以了!

格式是这样子

local.master = spawn ScriptMaster
local.master aliascache mp388 sound/music/mus_berlin.mp3 soundparms 1.2 0.0 1.0 0.0 300 12000 auto loaded maps "dm obj"[/code] 注:mp388是自己瞎起的名,没有特别的要求,用时对应起的名称即可! 在.scr中,要放入上面的代码,如下,要指定那个东东发出这个MP3音乐
[code]// SOUTHERN FRANCE
// ARCHITECTURE: SENN
// SCRIPTING: POWZER

main:
local.master = spawn ScriptMaster
local.master aliascache mp388 sound/music/mus_berlin.mp3 soundparms 1.2 0.0 1.0 0.0 300 12000 auto loaded maps "dm obj"
//Mix Maps mod by Crow King
setcvar "g_gametype" "2" //TDM

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm1"

// call additional stuff for playing this map round based is needed
if(level.roundbased)
 thread roundbasedthread
 
level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1

//exec global/ambient.scr mohdm2

//$world farplane 5000
//$world farplane_color (.333 .333 .329)

level waittill spawn

$radio playsound mp388  //〈-------加在这里

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end

$radio 要定义是什么东东,见盟军窃图纸PK3,定义图纸$用法

playsound 是声音循环一次停止

loopsound是声音无限循环

$radio loopsound mp388

wait 10

$radio stoploopsound //声音停止

在MOHAA的main/sound/music/下的MP3有10多种,

各取所爱,立体声呀!。。。。嘿嘿。。。

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

登录

Already have an account? Sign in here.

现在登录
×
×
  • 创建新的...