• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

VS plugin mod for Basic Armour


Commit MetaInfo

修订版e4669b1980077b0282b8938cd0902eae5e7d6717 (tree)
时间2019-08-01 07:46:31
作者melchior <melchior@user...>
Commitermelchior

Log Message

important notes for future shield deflection...

更改概述

差异

--- a/ArmourMod/Armour/EntityArmourPlayer.cs
+++ b/ArmourMod/Armour/EntityArmourPlayer.cs
@@ -150,7 +150,17 @@ namespace ArmourMod
150150 float beforeDamage = damage;
151151 //TODO: evaluate postion vector of strike to determine WHEN position of armour offers protection
152152
153- #if DEBUG
153+ /*
154+ you can probably get the dot product of sourceEntity.LocalPos.Motion.Copy().Normalize() and targetEntity.LocalPos.AheadCopy(1)
155+
156+ which is 0 when the arrow hits dead front
157+
158+ and abs(dp)>=1 for angles greater than 90 degrees
159+
160+ https://en.wikipedia.org/wiki/Dot_product#Geometric_definition
161+ GetViewVector()
162+ */
163+#if DEBUG
154164 Logger.VerboseDebug($"DamageSource:{damageSource.Source} HitPos:{damageSource.HitPosition} Type: {damageSource.Type} Entity: {damageSource.SourceEntity} Block: {damageSource.sourceBlock} ORIGIN : {damageSource.sourcePos} ");
155165 #endif
156166