Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 32ca348

Browse files
committed
Added "No Scuttle" Global Script
1 parent d1188a4 commit 32ca348

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Base.rte/Scripts/Global/NoScuttle.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function NoScuttleScript:UpdateScript()
2+
for actor in MovableMan.AddedActors do
3+
if IsACDropShip(actor) or IsACRocket(actor) then
4+
ToACraft(actor).ScuttleOnDeath = false;
5+
actor:DisableScript("Base.rte/Craft/Shared/ScuttleExplosions.lua");
6+
end
7+
end
8+
end

Base.rte/Scripts/GlobalScripts.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ AddGlobalScript = GlobalScript
3737
LuaClassName = ToughCraftScript
3838

3939

40+
AddGlobalScript = GlobalScript
41+
PresetName = No Scuttle
42+
Description = Craft no longer automatically self-destruct at zero health.
43+
ScriptPath = Base.rte/Scripts/Global/NoScuttle.lua
44+
LuaClassName = NoScuttleScript
45+
46+
4047
AddGlobalScript = GlobalScript
4148
PresetName = Insta-Kill Headshots
4249
Description = One shot - one kill.

0 commit comments

Comments
 (0)