G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
USpellConfig Class Reference

Public Member Functions

Functions
FColor GetSpellColor () const
void ChangeCameraBehaviour_Scriptable (bool moving)
FCameraBehaviour GetCameraBehaviour () const
ESpellManaUsage GetManaUsage () const
FName GetSpawnLocationSocketName () const
float32 GetSpellAreaAngle () const
float32 GetSpellAreaRange () const
FGameplayTag GetSpellCategoryTag () const
TSubclassOf< UScriptGameplayAbility > GetSpellClass (int SpellLevel=0) const
void AddSpellLevel (float32 NewCastManaCost, float32 NewCastTime, float32 NewManaCostSc, TSubclassOf< UScriptGameplayAbility > SpellClass, TSubclassOf< USpellConfigLevelData > SpellConfigLevelData=nullptr)
 Adds a spell level to the spell configuration. Once casting a spell it will start from first spell level and if player continues progressing the spell (maintaining the attack button pressed) will change to the next spell level and so on. With different spell levels we can increase the spell power for each level and attach new visuals to it. Refer to Fireball as a case with more than one spell level.
TSubclassOf< USpellConfigLevelData > GetSpellConfigLevelData (int SpellLevel=0) const
const FSpellLevelRange & GetSpellLevel (int SpellLevel=0) const
int GetSpellLevels () const
int GetSpellLevels_Scriptable () const
ESpellTargetType GetSpellTargetType () const
float32 GetTimePercentageFromWhichCantCancelSpell () const
bool IsTargetReachable_Scriptable (const AGothicCharacter instigator, const AGothicCharacter target) const
Public Member Functions inherited from UObject
bool MarkPackageDirty () const
void RemoveFromRoot ()
bool GetIsRooted () const
bool IsTransient () const
bool Modify (bool bAlwaysMarkDirty=true)
void SetTransactional (bool bTransactional)
bool IsSupportedForNetworking () const
UClass GetClass () const
UObject GetOuter () const
UObject GetTypedOuter (TSubclassOf< UObject > Target) const
 Traverses the outer chain searching for the next object of a certain type.
UPackage GetOutermost () const
UPackage GetPackage () const
void AddToRoot ()
UWorld GetWorld () const
FName GetName () const
FString GetFullName (const UObject StopOuter=nullptr) const
FString GetPathName (const UObject StopOuter=nullptr) const
bool IsA (const UClass Class) const
 Returns true if this object is of the specified type, or a child of that type.
void SaveConfig ()
void LoadConfig ()
void ReloadConfig ()
void CopyScriptPropertiesFrom (const UObject OtherObject)
void opCast (?&Address) const
FString ToString () const

Static Public Member Functions

Static Functions
static UClass StaticClass ()
Static Public Member Functions inherited from UGothicBaseConfig
static UClass StaticClass ()
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Public Attributes

Config
float32 m_AreaRange
ESpellTargetType m_SpellTargetType
 How will this spell get its target?
ESpellManaUsage m_SpellManaUsage
 How will mana be consumed? Normal, Continous, Rechargable, Target Level See wiki for more info.
TArray< FSpellLevelRange > m_SpellLevels
float32 m_TimePercentageFromWhichCantCancelSpell
 During casting time the spell can be cancelled except if casting time its above this percentage value before launch.
float32 m_AreaAngle
FCameraBehaviour m_CameraBehaviour
FName m_SpawnLocationSocket
FGameplayTag m_SpellCategoryTag
FColor m_Color
SpellConfig
USpellItemAnimConfig m_SpellItemAnimConfig
Variables
const FCameraBehaviour CameraBehaviour
const ESpellManaUsage ManaUsage
const FName SpawnLocationSocketName
const float32 SpellAreaAngle
const float32 SpellAreaRange
const FGameplayTag SpellCategoryTag
const FColor SpellColor
const int SpellLevels
const int SpellLevels_Scriptable
const ESpellTargetType SpellTargetType
const float32 TimePercentageFromWhichCantCancelSpell
Public Attributes inherited from UObject
const UClass Class
const UObject Outer
const UPackage Outermost
const UPackage Package
const UWorld World
const FName Name
const bool IsRooted

Member Function Documentation

◆ AddSpellLevel()

void AddSpellLevel ( float32 NewCastManaCost,
float32 NewCastTime,
float32 NewManaCostSc,
TSubclassOf< UScriptGameplayAbility > SpellClass,
TSubclassOf< USpellConfigLevelData > SpellConfigLevelData = nullptr )

Adds a spell level to the spell configuration. Once casting a spell it will start from first spell level and if player continues progressing the spell (maintaining the attack button pressed) will change to the next spell level and so on. With different spell levels we can increase the spell power for each level and attach new visuals to it. Refer to Fireball as a case with more than one spell level.

◆ ChangeCameraBehaviour_Scriptable()

void ChangeCameraBehaviour_Scriptable ( bool moving)

◆ GetCameraBehaviour()

FCameraBehaviour GetCameraBehaviour ( ) const

◆ GetManaUsage()

ESpellManaUsage GetManaUsage ( ) const

◆ GetSpawnLocationSocketName()

FName GetSpawnLocationSocketName ( ) const

◆ GetSpellAreaAngle()

float32 GetSpellAreaAngle ( ) const

◆ GetSpellAreaRange()

float32 GetSpellAreaRange ( ) const

◆ GetSpellCategoryTag()

FGameplayTag GetSpellCategoryTag ( ) const

◆ GetSpellClass()

TSubclassOf< UScriptGameplayAbility > GetSpellClass ( int SpellLevel = 0) const

◆ GetSpellColor()

FColor GetSpellColor ( ) const

◆ GetSpellConfigLevelData()

TSubclassOf< USpellConfigLevelData > GetSpellConfigLevelData ( int SpellLevel = 0) const

◆ GetSpellLevel()

const FSpellLevelRange & GetSpellLevel ( int SpellLevel = 0) const

◆ GetSpellLevels()

int GetSpellLevels ( ) const

◆ GetSpellLevels_Scriptable()

int GetSpellLevels_Scriptable ( ) const

◆ GetSpellTargetType()

ESpellTargetType GetSpellTargetType ( ) const

◆ GetTimePercentageFromWhichCantCancelSpell()

float32 GetTimePercentageFromWhichCantCancelSpell ( ) const

◆ IsTargetReachable_Scriptable()

bool IsTargetReachable_Scriptable ( const AGothicCharacter instigator,
const AGothicCharacter target ) const

◆ StaticClass()

UClass StaticClass ( )
static

Member Data Documentation

◆ CameraBehaviour

const FCameraBehaviour CameraBehaviour

◆ m_AreaAngle

float32 m_AreaAngle

◆ m_AreaRange

float32 m_AreaRange

◆ m_CameraBehaviour

FCameraBehaviour m_CameraBehaviour

◆ m_Color

FColor m_Color

◆ m_SpawnLocationSocket

FName m_SpawnLocationSocket

◆ m_SpellCategoryTag

FGameplayTag m_SpellCategoryTag

◆ m_SpellItemAnimConfig

USpellItemAnimConfig m_SpellItemAnimConfig

◆ m_SpellLevels

TArray<FSpellLevelRange> m_SpellLevels

◆ m_SpellManaUsage

ESpellManaUsage m_SpellManaUsage

How will mana be consumed? Normal, Continous, Rechargable, Target Level See wiki for more info.

◆ m_SpellTargetType

ESpellTargetType m_SpellTargetType

How will this spell get its target?

◆ m_TimePercentageFromWhichCantCancelSpell

float32 m_TimePercentageFromWhichCantCancelSpell

During casting time the spell can be cancelled except if casting time its above this percentage value before launch.

◆ ManaUsage

const ESpellManaUsage ManaUsage

◆ SpawnLocationSocketName

const FName SpawnLocationSocketName

◆ SpellAreaAngle

const float32 SpellAreaAngle

◆ SpellAreaRange

const float32 SpellAreaRange

◆ SpellCategoryTag

const FGameplayTag SpellCategoryTag

◆ SpellColor

const FColor SpellColor

◆ SpellLevels

const int SpellLevels

◆ SpellLevels_Scriptable

const int SpellLevels_Scriptable

◆ SpellTargetType

const ESpellTargetType SpellTargetType

◆ TimePercentageFromWhichCantCancelSpell

const float32 TimePercentageFromWhichCantCancelSpell