use correct attack range
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:deddf3d0e097d9052eff3ac8feee9297b0979df6155d3957a1f29eae5e38b337
|
||||
size 530552580
|
||||
oid sha256:d65e91db1cb97407e9a8fdce24e68da42381afff7d140dc60231b93ab2779c99
|
||||
size 530552731
|
||||
|
||||
@@ -1748,8 +1748,7 @@ namespace BrewMonster
|
||||
{
|
||||
fRange = m_ExtProps.ak.AttackRange * 0.7f;
|
||||
}
|
||||
// TO DO: fix later
|
||||
fRange = 1f;
|
||||
|
||||
if (fDist - fTargetRad <= fRange)
|
||||
return true;
|
||||
|
||||
|
||||
@@ -206,6 +206,7 @@ public partial class CECPlayer
|
||||
{
|
||||
var subTypeDataWeapon = (WEAPON_SUB_TYPE)subTypeData;
|
||||
m_uAttackType = subTypeDataWeapon.action_type;
|
||||
m_ExtProps.ak.AttackRange = weaponData.attack_range;
|
||||
}
|
||||
string fileModelRight = AFile.NormalizePath(weaponData.FileModelRight, true).ToLower();
|
||||
string fileModelLeft = AFile.NormalizePath(weaponData.FileModelLeft, true).ToLower();
|
||||
|
||||
Reference in New Issue
Block a user