Cat_SeqCond_CinematicModeActive

#Kismet

Check if the player is in Cinematic Mode or is in a Conversation!

Use this to check if the player is in Cinematic Mode or is having a Conversation with someone!

It's just drag and drop in your classes folder and it'll work, find it in the Pawn tab in the Kismet Conditions!

Made by CatCube, but with help from Nerketur cuz they helped with another script that I used some code from for this!

Enjoy!

Cat_SeqCond_CinematicModeActive.uc

[RAW] [Download]

class Cat_SeqCond_CinematicModeActive extends SequenceCondition;
 
var Actor Target;
 
event Activated()
{
    local bool IsCinematicModeActive;
    local Hat_PlayerController PC;
 
    PC = Hat_PlayerController(Target); // cast
 
    if (PC.bCinematicMode == true || PC.IsTalking())
    {
        IsCinematicModeActive = true;
    }
 
    OutputLinks[IsCinematicModeActive ? 0 : 1].bHasImpulse = true;
}
 
defaultproperties
{
    ObjName="Is Cinematic Mode Active"
    ObjCategory="Pawn"
 
    OutputLinks(0)=(LinkDesc="True")
    OutputLinks(1)=(LinkDesc="False")
    VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="Target",PropertyName=Target,MinVars=1,MaxVars=1)
}