|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
A DamageType is intended to define and describe a particular form of damage and to provide an avenue for customizing responses to damage from various sources. More...
Public Member Functions | |
Functions | |
| void | SetbCausedByWorld (bool Value) |
| True if this damagetype is caused by the world (falling off level, into lava, etc). | |
| bool | GetbScaleMomentumByMass () const |
| True to scale imparted momentum by the receiving pawn's mass for pawns using character movement. | |
| void | SetbScaleMomentumByMass (bool Value) |
| True to scale imparted momentum by the receiving pawn's mass for pawns using character movement. | |
| bool | GetbRadialDamageVelChange () const |
| When applying radial impulses, whether to treat as impulse or velocity change. | |
| void | SetbRadialDamageVelChange (bool Value) |
| When applying radial impulses, whether to treat as impulse or velocity change. | |
| bool | GetbCausedByWorld () const |
| True if this damagetype is caused by the world (falling off level, into lava, etc). | |
| 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 UObject | |
| static UClass | StaticClass () |
Public Attributes | |
DamageType | |
| bool | bCausedByWorld |
| True if this damagetype is caused by the world (falling off level, into lava, etc). | |
| float32 | DamageFalloff |
| Damage fall-off for radius damage (exponent). Default 1.0=linear, 2.0=square of distance, etc. | |
| bool | bScaleMomentumByMass |
| True to scale imparted momentum by the receiving pawn's mass for pawns using character movement. | |
Destruction | |
| float32 | DestructibleDamageSpreadScale |
| How much the damage spreads on a destructible mesh. | |
| float32 | DestructibleImpulse |
| How large the impulse should be applied to destructible meshes. | |
RigidBody | |
| bool | bRadialDamageVelChange |
| When applying radial impulses, whether to treat as impulse or velocity change. | |
| float32 | DamageImpulse |
| The magnitude of impulse to apply to the Actors damaged by this type. | |
| 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 |
A DamageType is intended to define and describe a particular form of damage and to provide an avenue for customizing responses to damage from various sources.
For example, a game could make a DamageType_Fire set it up to ignite the damaged actor.
DamageTypes are never instanced and should be treated as immutable data holders with static code functionality. They should never be stateful.
| bool GetbCausedByWorld | ( | ) | const |
True if this damagetype is caused by the world (falling off level, into lava, etc).
| bool GetbRadialDamageVelChange | ( | ) | const |
When applying radial impulses, whether to treat as impulse or velocity change.
| bool GetbScaleMomentumByMass | ( | ) | const |
True to scale imparted momentum by the receiving pawn's mass for pawns using character movement.
| void SetbCausedByWorld | ( | bool | Value | ) |
True if this damagetype is caused by the world (falling off level, into lava, etc).
| void SetbRadialDamageVelChange | ( | bool | Value | ) |
When applying radial impulses, whether to treat as impulse or velocity change.
| void SetbScaleMomentumByMass | ( | bool | Value | ) |
True to scale imparted momentum by the receiving pawn's mass for pawns using character movement.
|
static |
| bool bCausedByWorld |
True if this damagetype is caused by the world (falling off level, into lava, etc).
| bool bRadialDamageVelChange |
When applying radial impulses, whether to treat as impulse or velocity change.
| bool bScaleMomentumByMass |
True to scale imparted momentum by the receiving pawn's mass for pawns using character movement.
| float32 DamageFalloff |
Damage fall-off for radius damage (exponent). Default 1.0=linear, 2.0=square of distance, etc.
| float32 DamageImpulse |
The magnitude of impulse to apply to the Actors damaged by this type.
| float32 DestructibleDamageSpreadScale |
How much the damage spreads on a destructible mesh.
| float32 DestructibleImpulse |
How large the impulse should be applied to destructible meshes.