- 好友
- 2
- 在线时间
- 6 小时
- 最后登录
- 2025-7-8
扈从
 
- UID
- 2549269
- 第纳尔
- 831
- 精华
- 0
- 互助
- 12
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2015-6-28
  
 鲜花( 2)  鸡蛋( 0)
|
本帖最后由 嘻嘻嘻嘻 于 2025-7-1 20:43 编辑
众所周知竞技大会玩家一旦被击倒,要么杀2个以上可以继续下一轮,要么就淘汰,即使团队快杀光场上的人了,只要没杀够2个玩家还是得滚蛋,非常不合理。以下代码改动可以让玩家被击倒后可以继续观战,只要团队最终获胜也能晋级下一轮。
module_mission_templates.py
搜索
(1, 4, ti_once, [(eq, "$g_mt_mode", abm_tournament),
(1, 4, ti_once, [(eq, "$g_mt_mode", abm_tournament),
(this_or_next|main_hero_fallen), 这里直接#掉
(num_active_teams_le, 1)],
[
(try_begin),
(neg|main_hero_fallen), 改为(all_enemies_defeated),
(call_script, "script_end_tournament_fight", 1),
(call_script, "script_play_victorious_sound"),
(finish_mission),
(stop_all_sounds), #ambient_end_sound
(else_try),
(call_script, "script_end_tournament_fight", 0),
(finish_mission),
(stop_all_sounds), #ambient_end_sound
(try_end),
]),
最终得到
(1, 4, ti_once, [(eq, "$g_mt_mode", abm_tournament),
#(this_or_next|main_hero_fallen),
(num_active_teams_le, 1)],
[
(try_begin),
(all_enemies_defeated),
(call_script, "script_end_tournament_fight", 1),
(call_script, "script_play_victorious_sound"),
(finish_mission),
(stop_all_sounds), #ambient_end_sound
(else_try),
(call_script, "script_end_tournament_fight", 0),
(finish_mission),
(stop_all_sounds), #ambient_end_sound
(try_end),
]),
这样一来玩家被击倒后就可以继续观战了,不想继续看下去按tab放弃即可。即使团队没站到最后,只要杀了2个依然可以继续晋级。 |
|