找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4569|回复: 14

SubjectToWater怎么没有效果?

[复制链接]
发表于 2023-2-24 12:36:32 | 显示全部楼层 |阅读模式
我把坦克的抛射体加了这两句试了试,还是能往水面射击,是写错了还是我理解错这两句代码的作用了?

SubjectToWater=true               ; boolean

SubjectToWater.Detonate=true  ; boolean




发表于 2023-2-24 13:03:18 来自手机 | 显示全部楼层
你从哪里找到的这个语句?没有说明的吗
回复

使用道具 举报

 楼主| 发表于 2023-2-24 15:05:28 | 显示全部楼层
双杀步枪 发表于 2023-2-24 13:03
你从哪里找到的这个语句?没有说明的吗

火卫的
Projectiles blocked by land or water
It is now possible to make projectiles consider either land or water as obstacles that block their path by setting SubjectToLand/Water to true, respectively. Weapons firing such projectiles will consider targets blocked by such obstacles as out of range and will attempt to reposition themselves so they can fire without being blocked by the said obstacles before firing and if SubjectToLand/Water.Detonate is set to true, the projectiles will detonate if they somehow manage to collide with the said obstacles.

In a special case, Level=true projectiles by default, if neither SubjectToLand or SubjectToWater are set, consider tiles belonging to non-water tilesets as obstacles, but this behaviour can be overridden by setting these keys.

在rulesmd.ini中:

[SOMEPROJECTILE]              ; Projectile
SubjectToLand=                ; boolean
SubjectToLand.Detonate=true   ; boolean
SubjectToWater=               ; boolean
SubjectToWater.Detonate=true  ; boolean
回复

使用道具 举报

发表于 2023-2-24 15:22:51 | 显示全部楼层
It is now possible to make projectiles consider either land or water as obstacles that block their path
就是说抛射体会撞到水上。就像撞墙一样。
SubjectToXX,意思是物体会“撞向”XX地方。
意思不是说你设置了这个单位就不会朝水面开火了。和鱼雷的行为相反。
回复

使用道具 举报

发表于 2023-2-24 16:26:19 | 显示全部楼层
NavalTargeting=6就不能打水了
回复

使用道具 举报

 楼主| 发表于 2023-2-24 18:01:45 | 显示全部楼层
双杀步枪 发表于 2023-2-24 15:22
It is now possible to make projectiles consider either land or water as obstacles that block their p ...

撞到水上,那从岸上射击,到了岸边应该就会停下才对呀,但还是跟以前一样射到了水里。
回复

使用道具 举报

 楼主| 发表于 2023-2-24 18:05:46 | 显示全部楼层
膜术师协会 发表于 2023-2-24 16:26
NavalTargeting=6就不能打水了

单位用了kratos的自动开火和发射自身,效果是自动往前方2000距离冲锋,如果对着岸边开火,会导致单位冲到海里,然后就卡在海里了。我想着火卫的这个功能似乎能解决这个问题,冲到岸边就被水挡住提前结束。就像原版的炮弹会被围墙 悬崖等地形挡住一样。
只是没成功……
回复

使用道具 举报

发表于 2023-2-24 20:24:15 来自手机 | 显示全部楼层
那可能就是版本不对,功能没有实装
回复

使用道具 举报

 楼主| 发表于 2023-2-24 22:24:59 | 显示全部楼层
本帖最后由 jgaxmey 于 2023-2-24 22:28 编辑
双杀步枪 发表于 2023-2-24 20:24
那可能就是版本不对,功能没有实装

首页说明书里就有的,就是33版本的吧,我就是33版本
不过我突然想到kratos的发射自身配合自动向某点开火的功能,不止在对着水里射击会导致单位冲到水里面,对着悬崖射击恐怕也会冲到悬崖里。估计我要放弃组合这两种功能。

回复

使用道具 举报

发表于 2023-2-24 22:31:17 | 显示全部楼层
我还是喜欢w按死
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-4-17 04:38 , Processed in 0.074941 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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