Ravenfield

Ravenfield

353 个评价
Bot skill tweaker
   
奖励
收藏
已收藏
取消收藏
Content Type: Mutators
标签: Modded Content
文件大小
发表于
31.757 KB
2022 年 4 月 17 日 上午 6:00
1 项改动说明 ( 查看 )

订阅以下载
Bot skill tweaker

描述
This mutator allows to change skill levels of bots in each teams.





behaviour("botskilltweaker")

function botskilltweaker:Awake()
GameEvents.onActorSpawn.AddListener(self, "OnActorSpawn")
self.allylevel=self.script.mutator.GetConfigurationDropdown("allylevel")
self.enemylevel=self.script.mutator.GetConfigurationDropdown("enemylevel")
end

function botskilltweaker:OnActorSpawn(actor)
if actor.isBot then
local lev=self.allylevel
if actor.team==Team.Red then
lev=self.enemylevel
end

local sk=math.random(0,3)

if lev>0 then
sk=lev-1
end

if sk==0 then
actor.aiController.skillLevel=SkillLevel.Beginner
end
if sk==1 then
actor.aiController.skillLevel=SkillLevel.Normal
end
if sk==2 then
actor.aiController.skillLevel=SkillLevel.Veteran
end
if sk==3 then
actor.aiController.skillLevel=SkillLevel.Elite
end

end
end
热门讨论 查看全部(1)
2
2024 年 7 月 16 日 上午 7:11
The little question of the people
JohnTheProphet
106 条留言
ggggkku3234 8 月 25 日 上午 7:39 
Does this mod still work?
Karl 4 月 27 日 上午 5:20 
I already know that there's a new one
Hijong park  [作者] 4 月 19 日 下午 2:24 
Someone now made a superior one, so I don't care.
Karl 4 月 19 日 上午 5:49 
I saw a YT video which was about why you should not use this mod. In the beginning of the video, it showed examples of comments' opinions of this mod and apparently, i was one of them... (I know that no one cares but still, it suprised me really hard that i was seen in a video)
Canada 2024 年 11 月 22 日 下午 6:24 
Broken
Hijong park  [作者] 2024 年 9 月 24 日 上午 12:06 
The code is super simple, I'm sure one can just recreate it
𐃫 2024 年 9 月 23 日 下午 10:54 
R.I.P one of the best mutators ever
Bott_le 731 2024 年 8 月 31 日 上午 11:08 
s it me, or do the bots use vehicles very often, but they start shooting very poorly?
The Budginator 2024 年 8 月 9 日 下午 11:50 
The beginner drawing looks like the guy doesn’t know how to properly check if his weapon still has ammunition