调用地图事件方法:求生之路:ent_fire用法
Strippger:Source
一、地图名称
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"