-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.* | ||
!.gitignore | ||
!HappyBug/** | ||
!Engine/Classes/RUSeqEvent_CinematicActivated.uc |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class RUSeqEvent_CinematicActivated extends SequenceEvent; | ||
|
||
var() name CinematicName; | ||
var bool bRunning; | ||
|
||
DefaultProperties | ||
{ | ||
ObjName="Cinematic Activated" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
class HappyBugPlayerController extends PlayerController; | ||
|
||
DefaultProperties | ||
{ | ||
} | ||
|
||
exec function HBCinematic(string CinematicName) | ||
{ | ||
local Sequence GameSeq; | ||
local array<SequenceObject> CinematicObjects; | ||
local SequenceObject CinematicObject; | ||
local RUSeqEvent_CinematicActivated Cinematic; | ||
|
||
GameSeq = WorldInfo.GetGameSequence(); | ||
if (GameSeq != none) | ||
{ | ||
|
||
GameSeq.FindSeqObjectsByClass(class'RUSeqEvent_CinematicActivated', true, CinematicObjects); | ||
foreach CinematicObjects(CinematicObject) | ||
{ | ||
Cinematic = RUSeqEvent_CinematicActivated(CinematicObject); | ||
if (CinematicName == string(Cinematic.CinematicName)) | ||
{ | ||
ClientMessage("Activated!"); | ||
Cinematic.CheckActivate(Self, Self); | ||
return; | ||
} | ||
} | ||
|
||
ClientMessage("Available cinematics:"); | ||
foreach CinematicObjects(CinematicObject) | ||
{ | ||
Cinematic = RUSeqEvent_CinematicActivated(CinematicObject); | ||
ClientMessage(Cinematic.CinematicName); | ||
} | ||
} | ||
} |