-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
326 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 22 additions & 1 deletion
23
projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_Script.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
local ArcingTacticalMissile = import('/lua/nomadsprojectiles.lua').ArcingTacticalMissile | ||
|
||
NTacticalMissile1_HighArc = Class(ArcingTacticalMissile) {} | ||
NTacticalMissile1_HighArc = Class(ArcingTacticalMissile) { | ||
OnCreate = function(self, inWater) | ||
ArcingTacticalMissile.OnCreate(self, inWater) | ||
|
||
self:SetTurnRate(0) | ||
self:ChangeMaxZigZag(0) | ||
self:ChangeZigZagFrequency(0) | ||
self:ForkThread(self.StageThread) | ||
end, | ||
|
||
StageThread = function(self) | ||
WaitSeconds(1.1) | ||
local bp = self:GetBlueprint().Physics | ||
self:SetTurnRate(bp.TurnRate) | ||
self:ChangeMaxZigZag(bp.MaxZigZag) | ||
self:ChangeZigZagFrequency(bp.ZigZagFrequency) | ||
WaitSeconds(1.3) | ||
self:ChangeMaxZigZag(0) | ||
self:ChangeZigZagFrequency(0) | ||
end, | ||
|
||
} | ||
|
||
TypeClass = NTacticalMissile1_HighArc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.