• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

VS plugin mod for Basic Armour


Commit MetaInfo

Révisione4669b1980077b0282b8938cd0902eae5e7d6717 (tree)
l'heure2019-08-01 07:46:31
Auteurmelchior <melchior@user...>
Commitermelchior

Message de Log

important notes for future shield deflection...

Change Summary

Modification

--- 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