Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ProjectileAttackment
类 Game.ProjectileAttackment 继承关系图:
Game.ProjectileAttackment 的协作图:

Public 成员函数

 ProjectileAttackment (Entity target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower, Projectile projectile)
 ProjectileAttackment (ComponentBody target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower, Projectile projectile)
Public 成员函数 继承自 Game.Attackment
 Attackment (Entity target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower)
 Attackment (ComponentBody target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower)
virtual float CalculateInjuryAmount ()
virtual void AddHitValueParticleSystem (float damage)
virtual void ProcessAttackmentToCreature (out float injuryAmount)
virtual void ProcessAttackmentToNonCreature (out float injuryAmount)
virtual bool DisableFriendlyFire ()
virtual void ImpulseTarget ()
virtual void StunTarget ()
virtual void ProcessAttackment ()

Public 属性

Projectile Projectile
Public 属性 继承自 Game.Attackment
Entity Target
Entity Attacker
Vector3 HitPoint
Vector3 HitDirection
float AttackPower
float? StunTimeSet
float StunTimeAdd = 0.2f
float ImpulseFactor = 2f
string CauseOfDeath
bool EnableArmorProtection = true
bool EnableResilienceFactor = true
bool EnableHitValueParticleSystem = true
string AttackSoundName = "Audio/Impacts/Body"
float AttackSoundVolume = 1f
float AttackSoundPitch
bool AllowImpulseAndStunWhenDamageIsZero = true
float? m_injuryAmount
ValuesDictionary DictionaryForOtherMods = new()
 模组可以向Dictionary里面添加内容,另一个模组可以从Dictionary读取内容,以实现模组联动效果

额外继承的成员函数

Protected 属性 继承自 Game.Attackment
Random m_random = new()
属性 继承自 Game.Attackment
virtual ComponentBody TargetBody [get, set]
virtual float ArmorProtectionDivision = 1f [get, set]
 该攻击被护甲结算时,护甲的防御值会除以ArmorProtectionDivision。 例如当ArmorProtectionDivision = 2,模组护甲的ArmorProtection = 150时,实际防御75伤害。 可以基于此设计模组生物的攻击力和护甲数值

详细描述

在文件 ProjectileAttackment.cs5 行定义.

构造及析构函数说明

◆ ProjectileAttackment() [1/2]

Game.ProjectileAttackment.ProjectileAttackment ( Entity target,
Entity attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower,
Projectile projectile )

在文件 ProjectileAttackment.cs8 行定义.

◆ ProjectileAttackment() [2/2]

Game.ProjectileAttackment.ProjectileAttackment ( ComponentBody target,
Entity attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower,
Projectile projectile )

在文件 ProjectileAttackment.cs16 行定义.

类成员变量说明

◆ Projectile

Projectile Game.ProjectileAttackment.Projectile

在文件 ProjectileAttackment.cs6 行定义.


该类的文档由以下文件生成: