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:
parent
76cd725c4e
commit
32e547fe8e
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user