站内搜索

搜索
热搜: 活动 交友 discuz

iFAction 世界需要你的想象力!

[原创] 【元气万岁】自动瞄准MOD-2.0完全教程及实例

8

主题

59

帖子

669

积分

iF村庄

Rank: 5Rank: 5

积分
669

摩点支持者内测用户

发表于 2020-7-27 21:44:53 | 显示全部楼层 |阅读模式
本帖最后由 MCCF 于 2020-7-29 20:23 编辑


自动瞄准MOD-2.0

Maybe I will release an English version, but now there is only a Chinese version of this mod.
一、简介 / Introduction
自动瞄准MOD是一个用于使远程攻击拥有自动瞄准最近敌人的能力的MOD。
Auto aiming mod is a mod used to enable long-range attacks to automatically target the nearest enemy.
本MOD兼容ARPG及ACT框架,同时支持PC端、Web端及手机端均可正常使用。
The mod is compatible with ARPG and ACT framework, and supports PC, web and mobile phone.
它既可以用来实现酣畅淋漓的快速射击,也可以利用独特的精准度系统实现对敌人的精准攻击。
It can not only be used to achieve the rapid shooting, but also can use the unique accuracy system to achieve the precision attack.
以及更多细节性的处理,使得本MOD足够作为实现一个射击类动作游戏的基础。
As well as more detailed processing, making this mod can become the basic of a shooting action game.
二、用法 / Instructions
中文
English

1. 基本自瞄处理
为了使用本MOD,我们首先需要了解本MOD的具体工作机制。
本MOD的主要用途为,使角色或敌人不再固定朝一个方向射击,而是自动瞄准周围离自己最近的敌人。这样,即可使战斗系统更为灵活,同时使玩法大大增加。
同时,本MOD还提供了精准度的系统。本系统的核心是利用一个数值来表示某次自瞄射击的瞄准精确度,而该数值即为自动瞄准时上下浮动的角度值。例如,角色瞄准到50°处的一个敌人,但如果精准度设置为20,则实际射击角度在30°到70°之间浮动。由此可知,精准度不能小于0,也不应大于180。因此,精确度数值的减小实际意味着射击更为精确,且小于0的值会被自动修正为0(即100%精确)。这样,精确度即可作为一个全新的武器属性加入游戏之中。比如,一个武器带来-20的精确度修正,即表明其使得角色射击的角度精确了40°。而一个负面状态或一把冲锋枪类的武器则可能带来诸如10的精确度修正,则角色的射击精确程度实际上相应减小了。
现在,我们规定角色是否启用自瞄的必要前提为打开角色自瞄的开关(可利用触发器指令开关)。同时,如果角色本身设定了“基础精确度”,或装备了设定了精确度的武器(不包含防具),则我们认为该角色当前为启用自动瞄准功能。同样,判定敌人是否启动自瞄,即是判定此敌人是否设置了基础精确度,且打开了敌人自瞄的开关。注意,打开敌人自瞄开关并不意味着所有敌人均开启自瞄。
2. 配置说明
首先,进入MOD并找到AutoAimingConfig脚本项。
其中,actorEnabled及enemyEnabled即为上述角色自瞄和敌人自瞄的总开关。true为打开,false为关闭。也可以中途通过触发器指令进行修改。
而autoSkills是一个技能ID的数组,ID包含在数组内的技能发动时将也会进行自动瞄准,且无视其余任何限制。ID间以","隔开。
而MOD中“数据”部分则是根据ID依次设定角色、敌人、武器及状态的精准度基础值及修正值。例如,在“武器精准度加成”中可以设置某个ID的武器的精准度修正,以此类推。
1. Basic Auto Aiming Processing
In order to use this mod, we first need to understand the specific working mechanism of this mod.
The main purpose of this mod is to make the character or enemy no longer shoot in one direction, but automatically aim at the nearest enemy around him.
In this way, the battle system will be more flexible and the playing methods will be greatly increased.
At the same time, the mod also provides a accuracy system. The core of the system is to use a numerical value to represent the aiming accuracy of a certain auto aiming fire, and the value is the floating angle value when aiming automatically.
For example, a character aims at an enemy at 50 degrees, but if accuracy is set to 20, the actual firing angle is between 30 degrees and 70 degrees. Therefore, the accuracy should not be less than 0 or more than 180.
So, the reduction of the accuracy value actually means that the shooting is more accurate, and the value less than 0 will be automatically corrected to 0 (i.e. 100% accurate). In this way, accuracy can be added to the game as a new weapon attribute.
For example, a weapon brings a - 20 accuracy correction, which means that it makes the angle of the character's shot accurate by 40 degrees.
A debuff or a submachine gun weapon may result in an accuracy correction such as 10, and the shooting accuracy of the character is actually reduced accordingly.
Now, we specify that the necessary prerequisite for the actor to enable auto aiming is to turn on the actor's auto aiming switch (which can be switched on using the trigger command).
At the same time, if the actor itself has "base accuracy" set, or is equipped with a accuracy set weapon (excluding armor), we think the actor is currently enabled with auto aiming.
In the same way, judging whether the enemy starts auto aiming is to determine whether the enemy has set the basic accuracy and turn on the enemy auto aiming switch. Note that turning on the enemy auto aiming switch does not mean that all enemies turn on auto aiming.
2. Configuration Instructions
First, go to mod and find the autoaimingconfig script entry.
Among them, actorEnabled and enemyEnabled are the main switches of the above actor's auto aiming and enemy's auto aiming. True is on, false is off. It can also be modified by trigger command.
autoSkills is an array of skill ids. Skills with id in the array will also be aimed automatically when they are launched, regardless of any other restrictions. Ids are separated by ",".
The data part of mod is to set the accuracy basic value and correction value of actor, enemy, weapon and state in turn according to id. For example, in "Weapon Accuracy Correction", you can set the accuracy correction of a weapon with a certain id, and so on.

10

主题

48

帖子

318

积分

iF平原

次元文明-Original Sin

Rank: 4

积分
318
发表于 2020-7-29 10:45:34 | 显示全部楼层
azhe,完全没看懂

点评

oh i is a english men!(wrong wrong too much(Chinglish is the best language in the world!  发表于 2020-7-29 20:20

1

主题

20

帖子

827

积分

iF村庄

Rank: 5Rank: 5

积分
827
发表于 2020-7-30 08:12:49 | 显示全部楼层
牛逼牛逼
FEI

60

主题

331

帖子

1917

积分

管理员

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

积分
1917
发表于 2020-8-4 00:13:16 | 显示全部楼层
所以吧……没有英文版MOD其实……他们看不到你的翻译说明的……

点评

找时间做英文版吧 等我做完仓库MOD先  发表于 2020-8-4 10:17
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们
QQ群:977585123
iFAction下载
Windows客户端
反馈
意见建议
iFAction

iFAction

京ICP备15053274号-1

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.