Ravenfield

Ravenfield

90 个评价
Vision occluder remover
   
奖励
收藏
已收藏
取消收藏
Content Type: Mutators
标签: Modded Content
文件大小
发表于
更新日期
35.109 KB
2022 年 7 月 16 日 下午 10:44
2022 年 7 月 19 日 下午 4:33
3 项改动说明 ( 查看 )

订阅以下载
Vision occluder remover

描述
This mutator removes all vision occluders (usually trees) on the map, and replace capturepoints to resupply zones.

Use this if there are too many trees dropping the framerate, or the map is suffering serious lack of resupply crates.



behaviour("mapremover")

function mapremover:Awake()
local goArray = GameObject.FindObjectsOfType(GameObject);
for i=1,#goArray do
if self.script.mutator.GetConfigurationBool("point") and goArray.GetComponent(ResupplyCrate)~=nil then
self.gameObject.Destroy(goArray)
end
if self.script.mutator.GetConfigurationBool("vision") and goArray.layer==23 then
local dt=goArray
if goArray.transform.parent~=nil then
dt=goArray.transform.parent.gameObject
end
self.gameObject.Destroy(dt)
end
end

if self.script.mutator.GetConfigurationBool("point") then
for i=1,#ActorManager.capturePoints do
local laserHit = Physics.Raycast(Ray(ActorManager.capturePoints.transform.position+Vector3(0,30,0), Vector3(0,-1,0)), 100, RaycastTarget.Opaque)
if laserHit ~= nil then
self.gameObject.Instantiate(self.targets.resupplyzone, ActorManager.capturePoints.transform.position+Vector3(0,30-1*laserHit.distance, 0), Quaternion.Euler(-90,ActorManager.capturePoints.transform.eulerAngles.y,0))
end

for c=1,ActorManager.capturePoints.transform.childCount do
ActorManager.capturePoints.transform.GetChild(c-1).gameObject.SetActive(false)
end
end
end
self.gameObject.Destroy(self.gameObject)
end
15 条留言
Space ★ 2022 年 11 月 25 日 上午 11:52 
Hey, noticed a bug where the first option box would glitch TOW launcher turrets as well as sometimes the stands of MG turrets
I love this mod, it's pretty handy but is there some way to fix that?
Snaz 2022 年 7 月 29 日 上午 11:27 
Deforestation, the mutator. :steamthumbsup:
MURP 2022 年 7 月 22 日 下午 6:32 
idk if you can do this but can you pls make a mod that can change mag size dmg balance damage
Tony 2022 年 7 月 21 日 上午 10:48 
Literally gave me +10 fps in sofa's overlord wth, Im not expecting that.
1650th 2022 年 7 月 20 日 上午 5:36 
Nice
吾乃白丁MR500 2022 年 7 月 19 日 下午 6:48 
great!!!!!!
Titanus 2022 年 7 月 17 日 下午 10:37 
Noice
Hijong park  [作者] 2022 年 7 月 17 日 下午 8:54 
How would that mutator work ?
Jake 2022 年 7 月 17 日 上午 7:55 
hey can we get a seperate flag resupply mutator?
NOOB 2022 年 7 月 17 日 上午 5:55 
프레임 올라가서 좋네요