骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 200|回复: 0

[功能与代码] OSP战团霜息代码 战团寒带雪景的呼吸特效

[复制链接]

6

主题

46

回帖

36

积分

扈从

Rank: 2Rank: 2

UID
3319238
第纳尔
688
精华
0
互助
2
荣誉
1
贡献
10
魅力
231
注册时间
2022-1-28
鲜花(19) 鸡蛋(0)
发表于 2026-7-20 14:37:23 | 显示全部楼层 |阅读模式
本帖最后由 殇垣 于 2026-8-3 10:25 编辑

战场触发器MT


# 呵气凝雾 玩家呼吸    #breathe condense
breathe_condense_player =(1, 0, 1, [   (eq, "$breathe_condense", 1),],#1个获取地形的全局变量
    [
     (get_player_agent_no, ":player_agent"),  # 获取玩家演员代理
(try_begin),
       (agent_is_alive, ":player_agent"),
       (agent_get_bone_position, pos2, ":player_agent", 9, 1),  #获取agent的骨骼头部位置
(copy_position, pos3, pos2),#复制骨骼位置到 生成所需位置
(position_move_z, pos3, 19), #头的前 移 cm
(position_move_y, pos3, -1), #头的下 移 cm
(particle_system_burst, "psys_food_steam", pos3, 5),#粒子效果 食物热烟   # 5 is power.力度
(try_end),
    ])





# 室内 呵气凝雾 全员    #breathe condense
breathe_condense_indoor =(1, 0, 1, [   (eq, "$breathe_condense", 1),],
    [
      (try_for_agents, ":agents_no"),
        (agent_is_human, ":agents_no"),  # Source Agent is not horse 是人类 不是马
(agent_is_alive, ":agents_no"),
        (agent_get_bone_position, pos2, ":agents_no", 9, 1),  #获取agent的骨骼头部位置
(copy_position, pos3, pos2),#复制骨骼位置到 生成所需位置
(position_move_z, pos3, 19), #头的前 移 cm
(position_move_y, pos3, -1), #头的下 移 cm
(particle_system_burst, "psys_food_steam", pos3, 3),#粒子效果 食物热烟   # 3 is power.力度
(try_end),
    ])####呼吸吐纳结束






脚本SP  添加四处    搜索脚本原文,添加红字部分


(点击展开 / 收起)

(点击展开 / 收起)

(点击展开 / 收起)

(点击展开 / 收起)






然后在战触 MT 需要的地方加入 两者中的其中一个。根据需求情况,只能二选一。



        breathe_condense_player, #仅玩家 呵气凝雾
       breathe_condense_indoor, #室内全员 呵气凝雾


领主大厅,酒吧等人数少,战斗少的情况下,可以全员有效果。
只有玩家有效果的,往往是大规模战场,为减少卡顿做的性能优化。

例如 这样
(点击展开 / 收起)



拒绝任何潘德的预言相关mod及其改版使用
署名为:瓮海











评分

参与人数 1第纳尔 +20 互助 +1 魅力 +10 收起 理由
Aomine Daiki + 20 + 1 + 10 您的帖子很有价值!

查看全部评分

您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2026-8-5 05:53 , Processed in 0.064187 second(s), 20 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表