Ravenfield

Ravenfield

205 个评价
Stormtrooper maker
3
   
奖励
收藏
已收藏
取消收藏
Content Type: Mutators
标签: Modded Content
文件大小
发表于
更新日期
34.177 KB
2022 年 5 月 9 日 下午 3:32
2022 年 5 月 11 日 下午 6:09
2 项改动说明 ( 查看 )

订阅以下载
Stormtrooper maker

描述
This mutator turns bots into highly trained stormtroopers.





behaviour("stormtroopermaker")

function stormtroopermaker:Awake()
GameEvents.onActorSpawn.AddListener(self, "OnActorSpawn")
self.divide=self.script.mutator.GetConfigurationRange("scalevalue")
self.newsp=self.script.mutator.GetConfigurationFloat("spread")
self.divide2=self.script.mutator.GetConfigurationRange("scalevalue2")
self.newsp2=self.script.mutator.GetConfigurationFloat("spread2")
end

function stormtroopermaker:OnActorSpawn(actor)
if actor.isBot then
if actor.team==Player.enemyTeam then
for i=1,#actor.weaponSlots do
if actor.weaponSlots.baseSpread==0 then
actor.weaponSlots.baseSpread=self.newsp
end
actor.weaponSlots.baseSpread=actor.weaponSlots.baseSpread*self.divide
actor.weaponSlots.followupSpread.maxSpreadAim=actor.weaponSlots.followupSpread.maxSpreadAim*self.divide
actor.weaponSlots.followupSpread.maxSpreadHip=actor.weaponSlots.followupSpread.maxSpreadHip*self.divide
actor.weaponSlots.followupSpread.spreadGain=actor.weaponSlots.followupSpread.spreadGain*self.divide
end
else
for i=1,#actor.weaponSlots do
if actor.weaponSlots.baseSpread==0 then
actor.weaponSlots.baseSpread=self.newsp2
end
actor.weaponSlots.baseSpread=actor.weaponSlots.baseSpread*self.divide
actor.weaponSlots.followupSpread.maxSpreadAim=actor.weaponSlots.followupSpread.maxSpreadAim*self.divide2
actor.weaponSlots.followupSpread.maxSpreadHip=actor.weaponSlots.followupSpread.maxSpreadHip*self.divide2
actor.weaponSlots.followupSpread.spreadGain=actor.weaponSlots.followupSpread.spreadGain*self.divide2
end
end
end
end
83 条留言
TAB_SILENCE 8 月 29 日 上午 11:36 
So I usually have to set this to like super high.
The only gun I've noticed to have majorly been affected is the Extas AK74
TitanVDK 8 月 4 日 上午 11:16 
I am playing as Raven in spec ops and it's not working.
TAB_SILENCE 8 月 1 日 上午 11:21 
Finally, I can play Spec Ops mode and feel cool
SirGreen 7 月 3 日 上午 8:53 
highly trained lol
Desert Rat 4 月 20 日 上午 9:26 
This doesn't seem to work?
jango bett 2024 年 12 月 6 日 下午 9:26 
played without it for a while and it made me realize how terrible this game is without mods
clonefrog | TTV 2024 年 10 月 19 日 上午 3:52 
@RAGE their weapon dispersion IS their accuracy. AI will always be pointing directly at you when shooting at you in games, and making their weapons more or less accurate is how developers tweak their "aiming" accuracy. It's extremely tricky and frankly impractical to code some kind of system that makes them genuinely not aim their weapon at you correctly when you could just lower their bullet accuracy to simulate it.
Mihaly A Shilage 2024 年 9 月 23 日 上午 7:42 
if im correct @Hijong park the difference between the two is that accuracy is merely editing the ai's chance of hitting. whilst the weapon dispersion value increases/decreases the value or chance that the weapon will land a hit on a selected target. weather it be an actor. a target or both
Hijong park  [作者] 2024 年 7 月 5 日 下午 3:06 
The friendly team is based on your selected team before starting the game.
Karl 2024 年 7 月 4 日 下午 2:04 
So, do make my Allies more skillfull than the enemy, Do i have to change spread scale of "Friendly"? I was a little confused of which team am i choosing that one of them have more advantage