Jump to content
主视角中国

Recommended Posts

Posted

声音的加入

解压在V0.9内的PK0.PK3会看到有一个SOUND的文件,

进入后有2个文件,

用记事本打开其中一个会看到一堆类似以下的程序:

...................省略

aliascache jeep_snd_idle sound/vehicle/veh_jeep_idle.wav soundparms 0.5 0.0 1.0 0.0 800 4000 auto loaded maps " dm obj t m " //这里是举例JEEP声

...................省略

这就是声音文件,很多的游戏声音很精彩!

(注:有一些声音不工作,是不是D版的缘故,还是用别的程序这里不谈)

下面是用法:

用记事本打开MAP.SCR

main

local.master= spawn scriptmaster //

local.master aliascache jeep_snd_idle sound/vehicle/veh_jeep_idle.wav soundparms 0.5 0.0 1.0 0.0 800 4000 auto loaded maps " dm obj t m " //JEEP声

level waittill spawn //

local.JEEP = spawn script_model //这是JEEP的模型

local.JEEP model " vehicles/jeep.tik "

local.JEEP.origin = ( X YZ )

local.JEEP.angles = ( 0 0 0 )

local.JEEP solid

local.JEEP loopsound jeep_snd_idle   //声音开始

   wait 20 //响20秒

local.JEEP stoploopsound //STOP

Posted

有不工作的声音文件是因为没有在 ubersound.scr 里面指定该声音可用于多人地图。

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.

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