1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-26 20:54:12 +02:00

FACTO-176: Fixed remaining projectiles from causing biters to attack

each other
This commit is contained in:
Aaron Veden 2022-06-17 21:32:55 -07:00
parent 76cd725c4e
commit 32e547fe8e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ function beamUtils.makeLaser(attributes)
flags = {"not-on-map"},
collision_box = attributes.collisionBox or {{-0.3, -1.1}, {0.3, 1.1}},
acceleration = attributes.acceleration or 0.03,
force_condition = (settings.startup["rampant--disableCollidingProjectiles"].value and "not-same") or nil,
action =
{
type = "direct",

View File

@ -1156,6 +1156,7 @@ function biterUtils.createProjectileAttack(attributes, projectile, animation)
warmup = attributes.warmup,
cooldown_deviation = 0.15,
projectile_creation_distance = 0.6,
force_condition = (settings.startup["rampant--disableCollidingProjectiles"].value and "not-same") or nil,
range = attributes.range or 20,
min_attack_distance = (attributes.range and (attributes.range - 2)) or 20,
lead_target_for_projectile_speed = 0.95,

View File

@ -261,6 +261,7 @@ function droneUtils.createCapsuleProjectile(attributes, entityName)
collision_mask = attributes.collisionMask,
direction_only = attributes.attackDirectionOnly,
piercing_damage = attributes.piercingDamage or 0,
force_condition = (settings.startup["rampant--disableCollidingProjectiles"].value and "not-same") or nil,
acceleration = attributes.acceleration or 0.01,
action = actions,
light = {intensity = 0.5, size = 4},