[游戏技术] Stripper:source地图事件说明

本文详细介绍了《求生之路》(Left 4 Dead)地图事件,包括不同章节如"No Mercy"、"Crash Course"、"Death Toll"、"Dead Air"和"Blood Harvest"等中的关键地点和事件触发,如旅馆、地铁、医院、屋顶、发电机门按钮、升降梯、呼叫营救电台等,并讲解了如何使用ent_fire命令调用地图事件。
摘要由CSDN通过智能技术生成

调用地图事件方法:求生之路:ent_fire用法

一、地图名称

I.毫不留情 No Mercy

旅馆 The apartments

地铁 The subway

1.发电机门按钮,二次触发

{
   
"targetname" "filter_generator"
"Negated" "Allow entities that match criteria"
"classname" "filter_activator_team"
"OnPass" "light_generator,TurnOn,,2,-1"	//发电机控灯开关,关闭Turnoff
"OnPass" "generator_sprites,ShowSprite,,2,-1"
"OnPass" "door_sliding,Open,,2,-1"	//开门
"OnPass" "generator_redcagelight,Skin,1,2,-1"
"OnPass" "generator_ceilinglights,Skin,0,2,-1"
"OnPass" "generator_machine1,SetAnimation,rev_up,0,-1"
"OnPass" "generator_sound_startup,PlaySound,,0,-1"
"OnPass" "director,PanicEvent,,2.5,-1"	//尸潮
"OnPass" "generator_door_move_sound,PlaySound,,2,-1"
"OnPass" "generator_spark1,SparkOnce,,0,-1"
"OnPass" "generator_switch,SetAnimation,on,0,-1"
"OnPass" "generator_start_shake,StartShake,,0,-1"
"OnPass" "switch_glow_red,HideSprite,,2,-1"
"OnPass" "switch_glow_green,ShowSprite,,2,-1"
"OnPass" "generatorlamp_spark1,SparkOnce,,2,-1"
"OnPass" "generator_soundscape_relay,Trigger,,0.5,-1"
"OnPass" "generator_machine1,SetAnimation,spin,5,-1"
}

下水道The sewer

1.升降梯机关

"targetname" "washer_lift_panic_relay" //触发尸潮事件(不启动升降机)
//触发升降机
"targetname" "washer_lift_button2"
"OnPressed" "washer_lift_up_relay,Trigger,,0,-1"

医院 The hospital

屋顶 Rooftop finale

1.呼叫营救电台
真正触发尸潮事件的呼叫电台是有由第一次触发事件创造出来的,所以直接创建第二个电台,再触发它

//电台按钮(第一次触发)
{
   
"model" "*82"
"targetname" "radio_button"
"classname" "func_button"
"OnPressed" "pilot_radio_setup_lcs,Start,,0.25,-1" //创建第二次呼叫电台
"OnPressed" "radio_button,Kill,,0.1,-1"	//删除"targetname" "radio_button"按钮触发
"OnPressed" "pilot_radio_pickup_timer,Disable,,0,-1"
"OnPressed" "pilot_radio_pickup_lcs*,Cancel,,0.1,-1"
"OnPressed" "radio_game_event_started,GenerateGameEvent,,0,-1"
"OnPressed" "radio_game_event_pre,Kill,,0,-1"
}
//第二次呼叫电台
{
   
"origin" "5903.59 8321 5979.19"
"targetname" "pilot_radio_setup_lcs"
"SceneFile" "scenes/npcs/pilot_radio_setup.vcd"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值