Jump to content
主视角中国

Recommended Posts

Posted

M211大门的暴炸程序

local.master = spawn ScriptMaster
local.master aliascache bombtick1 sound/items/Item_Timer_01.wav soundparms 0.7 0.0 1.0 0.0 10000 10000 local loaded maps "m dm moh obj train"
local.master aliascache plantbomb1 sound/items/Item_BangaloreAssemble_01.wav soundparms 1.0 0.0 1.0 0.0 100 2000 item loaded maps "m dm m3l3 moh obj train"
local.master aliascache gas_explode1 sound/weapons/explo/Explo_GasTank1.wav soundparms 0.9 0.2 0.8 0.4 700 8000 auto loaded maps "m dm m3l3 moh obj train"

thread gateblowah
gateblowah:
//--------------------------
local.explosion1 = spawn script_model
local.explosion1 model models/animate/pulse_explosive_pickup.tik
local.explosion1.origin = ( -1967 -3180 490 )
local.explosion1 hide
//---------------
local.bomb = spawn models/items/pulse_explosive.tik
local.bomb.origin = ( -1967 -3180 490 )
local.bomb.angle = 90
local.trig = spawn trigger_use
local.trig.origin = ( -1967 -3180 490 )
local.trig setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig waittill trigger
local.bomb remove
local.explosion1 show
local.trig setthread main_gate
local.trig message "Bomb Planted"
local.trig delay 0
wait .1
local.trig remove
wait 5
local.explosion1 remove
end
//---------------------

//-------------------------
main_gate:
$main_gate playsound plantbomb1
wait 1
$main_gate loopsound bombtick1
parm.other stopwatch 4.5
wait 5
$main_gate stoploopsound
local.explosion = spawn script_model
local.explosion model models/animate/fx_mortar_higgins.tik
local.explosion scale 1
local.explosion anim start
local.explosion playsound gas_explode1
local.explosion.origin = ( -1967 -3180 490 )
$main_gate hide
$main_gate notsolid
$gate_clip remove
thread gate_message
wait 4
local.explosion remove
$main_gate loopsound train_whistle //这个声音是警报须定义
wait  20
$main_gate stoploopsound  
end

gate_message:
iprintln "Allies Have Blown The door!"
end[/code]

Posted

声音文件应在最上面

gateblowah:以下放在最下面

thread gateblowah放在

//////////////////////////
level waittill spawn
//////////////////////////[/code]

level.dmrespawning = 1 ----->在.SCR中是= 0 的改过为1即可!

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.

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