Skip to content

Commit

Permalink
Changes to sample scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrivener07 committed Mar 22, 2018
1 parent 6b2f3a4 commit 4ca4bd3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
24 changes: 6 additions & 18 deletions Data/Interface/Source/FO4_Scopes/Weapons/44/Scope.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,22 @@

public class Scope extends MovieClip
{

public function Scope()
{
super();
trace("[Custom Scope]: "+Utility.WalkMovie(this));
}
public var EndLoop:Boolean = false;


public function Steady() : *
{
addFrameScript(0, frame1);
trace("[Custom Scope] Steady()");
}


public function Unsteady() : *
{
addFrameScript(0, null);
EndLoop = false;
play();
trace("[Custom Scope] Unsteady()");
trace("[Scopes Framework][Pistol 44] Steady Invoked");
}


function frame1() : *
public function Unsteady() : *
{
stop();
EndLoop = true;
trace("[Scopes Framework][Pistol 44] Unsteady Invoked");
}


}
}
4 changes: 2 additions & 2 deletions Data/Interface/Source/FO4_Scopes/Weapons/44/Scope.fla
Git LFS file not shown
3 changes: 1 addition & 2 deletions Data/Scripts/Source/FO4_Scopes/Fallout/Scopes/Menu.psc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ string ModelPath
bool BreathPressed = false
bool Interrupted = false

int BipedWeapon = 41 Const
int BipedWeapon = 41 const


; Events
Expand Down Expand Up @@ -71,7 +71,6 @@ EndEvent

Event OnKeyUp(int keyCode, float time)
BreathPressed = false

If (Interrupted)
Interrupted = false
Else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Scriptname Fallout:ScopesTest::SampleScope extends Quest
Scriptname Fallout:ScopesTest:SampleScope extends Quest
import Fallout
import Fallout:Scopes:Menu
import Fallout:Scopes:Papyrus
Expand Down Expand Up @@ -53,11 +53,10 @@ Event Fallout:Scopes:Menu.BreathEvent(Scopes:Menu sender, var[] arguments)
Else
WriteLine(self, "Fallout:Scopes:Menu.BreathEvent : e.Breath : Unhandled Arguments "+e.Breath)
EndIf
Else
WriteLine(self, "Fallout:Scopes:Menu.BreathEvent : Event arguments are none.")
EndIf
EndEvent


; Properties
;---------------------------------------------

Expand Down

0 comments on commit 4ca4bd3

Please sign in to comment.