|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


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.cs 第 5 行定义.
| Game.ProjectileAttackment.ProjectileAttackment | ( | Entity | target, |
| Entity | attacker, | ||
| Vector3 | hitPoint, | ||
| Vector3 | hitDirection, | ||
| float | attackPower, | ||
| Projectile | projectile ) |
在文件 ProjectileAttackment.cs 第 8 行定义.
| Game.ProjectileAttackment.ProjectileAttackment | ( | ComponentBody | target, |
| Entity | attacker, | ||
| Vector3 | hitPoint, | ||
| Vector3 | hitDirection, | ||
| float | attackPower, | ||
| Projectile | projectile ) |
在文件 ProjectileAttackment.cs 第 16 行定义.
| Projectile Game.ProjectileAttackment.Projectile |
在文件 ProjectileAttackment.cs 第 6 行定义.