Skip to content

Commit 683ad69

Browse files
committed
really quirky fix, more of a bodge... also HUD disabling for DebugFunctions
1 parent e00f5ee commit 683ad69

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Data/Base.rte/Scripts/Global/DebugFunctions.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ function DebugFunctionsScript:UpdateScript()
3232
-- Keypad 9 for HUD Toggle
3333
if UInputMan:KeyPressed(Key.KP_9) then
3434
self.HUDToggle = not self.HUDToggle and true or false;
35+
if self.HUDToggle then
36+
FrameMan:SetHudDisabled(true, 0);
37+
else
38+
FrameMan:SetHudDisabled(false, 0);
39+
end
3540
end
3641

3742
if self.HUDToggle then
@@ -108,6 +113,9 @@ function DebugFunctionsScript:UpdateScript()
108113
for actor in MovableMan.Actors do
109114
if actor:IsPlayerControlled() then
110115
MovableMan:ChangeActorTeam(actor, teamNum)
116+
if not IsACraft(actor) then
117+
actor.AIMode = Actor.AIMODE_SENTRY;
118+
end
111119
if IsACRocket(actor) or IsACDropShip(ToActor(actor)) then
112120
for item in actor.Inventory do
113121
if (IsAHuman(item) or IsACrab(item)) then

Data/Browncoats.rte/Devices/Weapons/Extinction/Extinction.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Create(self)
2323
self.reloadDelay = 200;
2424
self.origReloadTime = 900;
2525

26-
self.origStanceOffset = Vector(self.StanceOffset.X, self.StanceOffset.Y);
26+
self.origStanceOffset = Vector(math.abs(self.StanceOffset.X), self.StanceOffset.Y);
2727
self.origSharpStanceOffset = Vector(self.SharpStanceOffset.X, self.SharpStanceOffset.Y);
2828

2929
self.origShakeRange = self.ShakeRange;
@@ -347,5 +347,7 @@ function Update(self)
347347
if self.InheritedRotAngleTarget > 0 then
348348
self.InheritedRotAngleTarget = math.max(self.InheritedRotAngleTarget - TimerMan.DeltaTimeSecs, 0);
349349
end
350+
351+
print(self.origStanceOffset)
350352

351353
end

0 commit comments

Comments
 (0)