File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Browncoats.rte/Activities Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,21 @@ function DebugFunctionsScript:UpdateScript()
26
26
end
27
27
end
28
28
29
+ for act in MovableMan .Actors do
30
+ if act :IsPlayerControlled () then
31
+ self .lastControlledActor = act ;
32
+ end
33
+ end
34
+
29
35
-- Hold Alt to do any of these
30
36
if UInputMan .FlagAltState then
37
+
38
+ -- Space to teleport last controlled actor to cursor
39
+ if UInputMan :KeyPressed (Key .SPACE ) then
40
+ if self .lastControlledActor then
41
+ self .lastControlledActor .Pos = CameraMan :GetScrollTarget (0 );
42
+ end
43
+ end
31
44
32
45
-- Keypad 9 for HUD Toggle
33
46
if UInputMan :KeyPressed (Key .KP_9 ) then
Original file line number Diff line number Diff line change @@ -558,14 +558,6 @@ function RefineryAssault:UpdateActivity()
558
558
self :ChangeAIFunds (1 , 200 );
559
559
end
560
560
561
- -- Brain teleport to cursor
562
- if UInputMan :KeyPressed (Key .SPACE ) then
563
- for k , brain in pairs (self .saveTable .playerBrains ) do
564
- local pos = CameraMan :GetScrollTarget (0 );
565
- brain .Pos = pos ;
566
- end
567
- end
568
-
569
561
-- Invincible brain and infinite gun
570
562
if not self .saveTable .debugInvincibleBrain and UInputMan :KeyPressed (Key .KP_6 ) then
571
563
self .saveTable .debugInvincibleBrain = true ;
You can’t perform that action at this time.
0 commit comments