Ravenfield

Ravenfield

456 个评价
AI effective range decreaser
4
3
7
3
3
2
   
奖励
收藏
已收藏
取消收藏
Content Type: Mutators
标签: Modded Content
文件大小
发表于
更新日期
7.029 KB
2022 年 3 月 29 日 下午 9:18
2022 年 5 月 3 日 下午 4:41
8 项改动说明 ( 查看 )

订阅以下载
AI effective range decreaser

描述
This is my attempt to Fix Super human AI snipers who kills you with pistol or rocket launcher from far away.

It simply decreases all bot weapons' effective range to assigned divided value on spawn.

You can set the minimun effective range as well to prevent some weapons being used in too close.

Maybe if you want to improve this mutator try this source :




behaviour("effectiverangedecreaser")

function effectiverangedecreaser:Awake()
self.divide=self.script.mutator.GetConfigurationRange("dividevalue")
self.mint=self.script.mutator.GetConfigurationFloat("minthres")
self.maxt=self.script.mutator.GetConfigurationFloat("maxthres")

for i=1,#WeaponManager.allWeapons do
local weapon=WeaponManager.allWeapons.prefabWeapon
weapon.effectiveRange = weapon.effectiveRange/self.divide
if weapon.effectiveRange>self.maxt then
weapon.effectiveRange=self.maxt
end
if weapon.effectiveRange<self.mint then
weapon.effectiveRange=self.mint
end
end
self.gameObject.Destroy(self.gameObject)
end
热门讨论 查看全部(1)
1
2022 年 5 月 3 日 下午 4:48
help
alf
117 条留言
KatzenSindKool 8 月 8 日 上午 5:02 
bless
dedsoap 8 月 5 日 下午 8:26 
if bots seem to only attack you at very close range, try increasing the minimum effective range
King of Partrea 5 月 4 日 下午 10:27 
THIS IS SO ANNOYING IN-GAME, THANK YOU FOR MAKING THIS MOD BRO!
Meltryllis 2024 年 10 月 5 日 上午 2:02 
Hey Author! i'm working on my vietnam war mod config, giving the enemy team AK-47 (300 metres effective range) i want the realistic and non super human or too easy effective range,
could you give me the numbers? i want to enjoy the semi realistic battle of vietnam war's chaotic firefight

Effective range dividing value:
Maximum effective range threshold:
Minimum effective range threshold:

thanks alot!
ggggkku3234 2024 年 10 月 1 日 上午 4:50 
Thanks for letting me know, you are the best modder ever!
Hijong park  [作者] 2024 年 10 月 1 日 上午 2:34 
If I were you trying to enjoy musket battle I would set split value as 1, maximum range as 100, and minimum value as 0.
ggggkku3234 2024 年 10 月 1 日 上午 12:32 
Could you please help me? If possible, please do this
Valid range split value:

Maximum range threshold:

Minimum range threshold:
Please write it as shown. Thank you!
Hijong park  [作者] 2024 年 9 月 30 日 下午 8:44 
dividing value divides the weapon's original effective range to the assigned value. if dividing value is 2 and the weapon's default range is 1000 the result will be 500.

If you want to let bots use musket at zero distance, just set Minimum range threshold to 0.
ggggkku3234 2024 年 9 月 30 日 下午 7:08 
I have a question. Do I just write 100 as the "Maximum Range Threshold"? And how do I adjust the "Valid Range Split Value"? And how do I adjust the "Minimum Range Threshold"?
Hijong park  [作者] 2024 年 9 月 30 日 下午 2:49 
it prevents bots using the weapons within such range