Jump to content
主视角中国

Recommended Posts

Posted
thread radiobomb

radiobomb:
local.bomba = spawn script_model "targetname" "tima"
local.bomba model "models/items/explosive.tik"          //炸药隐藏
local.bomba.origin = ( x y z )      
local.bomba.angle = 90
$tima notsolid
$tima hide    
local.bomb = spawn models/items/pulse_explosive.tik  //炸药闪烁
local.bomb.origin = ( x y z )
local.bomb.angle = 90
local.trig = spawn trigger_use
local.trig.origin = ( x y z )
local.trig setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig waittill trigger
local.player = parm.other
if (local.player.dmteam=="allies"    //他是盟军
{
local.bomb remove   //炸药闪烁移除
$tima show  //炸药现出
local.trig setthread radioroom
local.trig message "Bomb Planted"
local.trig delay 0
wait .1
local.trig remove
}
end

radioroom:
//$explodertrigger playsound plantbomb1
wait 1
//$explodertrigger loopsound bombtick1
wait 5
$explodertrigger stoploopsound
$explodertrigger remove
local.explosion = spawn script_model
local.explosion model models/animate/fx_mortar_higgins.tik  //爆炸火光出现
local.explosion scale 1
local.explosion anim start
$tima remove // 炸药移除
local.explosion playsound gas_explode1
local.explosion.origin = (  x y z  )
$exploderfire show
thread gate_message
wait 4
local.explosion remove //爆炸火光移除

end

gate_message:
iprintln "allies have blown a radio room"  //
end[/code]

Posted

//$explodertrigger playsound plantbomb1

wait 1

//$explodertrigger loopsound bombtick1

local.explosion playsound gas_explode1

这是导入声音如何导入有文章介绍在这里删掉了

plantbomb1 表计时

gas_explode1 爆炸

bombtick1 安炸弹

Posted

声音

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"[/code] 还有一种简单的方法,不用这样的麻烦,那就是借助任务版的文件,将模型名替换 成固定的名称如$88mm_explosive1~$88mm_explosive5(5个任务够多吗?)
[code]       $88mm_explosive1 thread global/obj_dm.scr::bomb_thinker
       $88mm_explosive2 thread global/obj_dm.scr::bomb_thinker
       $88mm_explosive3 thread global/obj_dm.scr::bomb_thinker
       $88mm_explosive4 thread global/obj_dm.scr::bomb_thinker
       $88mm_explosive5 thread global/obj_dm.scr::bomb_thinker

这是双方可互相安装拆卸的那种,不知会不会带来死机,目前在TEST(俺的M211)

Posted

实在是水平有限,我看了半天,还是知道怎么去改,能不能作一个现成的,并告诉我贴在什么位置.我需要奥玛哈海滩炸铁丝网的那个,拜托了!

Posted

实在是水平有限,我看了半天,还是知道怎么去改,能不能作一个现成的,并告诉我贴在什么位置.我需要奥玛哈海滩炸铁丝网的那个,拜托了!

那个奥玛哈海滩炸铁丝网,俺看了,没有代码即:

"targetname"----->removeclass targetname,

这样子的铁丝网,只有"classname"

目前俺还没方法移除(也许别人会)...

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.

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