Forged Alliance Forever Forged Alliance Forever Forums 2017-01-21T16:48:10+02:00 /feed.php?f=40&t=13871 2017-01-21T16:48:10+02:00 2017-01-21T16:48:10+02:00 /viewtopic.php?t=13871&p=142381#p142381 <![CDATA[Re: Buffs applied weirdly?]]> Or more generally, I want weapon buffs to work on enemy units "on impact"

Statistics: Posted by Dudekahedron — 21 Jan 2017, 16:48


]]>
2017-01-21T07:39:47+02:00 2017-01-21T07:39:47+02:00 /viewtopic.php?t=13871&p=142371#p142371 <![CDATA[Re: Buffs applied weirdly?]]> Statistics: Posted by Sprouto — 21 Jan 2017, 07:39


]]>
2017-01-21T06:39:58+02:00 2017-01-21T06:39:58+02:00 /viewtopic.php?t=13871&p=142369#p142369 <![CDATA[Re: Buffs applied weirdly?]]>
It seems really odd to me that OnFire would affect enemy units correctly (in radius of the muzzle) but OnImpact would only affect allied units (in radius of the target). As far as I can tell, the CollisionBeam.lua and Projectile.lua in lua.nx2 have the same code to determine what the beam weapon is applied to as well.

Any idea how I should go about "fixing" this part of supcom?

Statistics: Posted by Dudekahedron — 21 Jan 2017, 06:39


]]>
2017-01-21T04:11:05+02:00 2017-01-21T04:11:05+02:00 /viewtopic.php?t=13871&p=142367#p142367 <![CDATA[Re: Buffs applied weirdly?]]> Statistics: Posted by Sprouto — 21 Jan 2017, 04:11


]]>
2017-01-21T03:12:36+02:00 2017-01-21T03:12:36+02:00 /viewtopic.php?t=13871&p=142366#p142366 <![CDATA[Re: Buffs applied weirdly?]]>
Code:
                    AppliedToTarget = false,
also i would disable onfire and only to it onimpact.
take this as an example (from equilibrium):
Code:
Buffs = {
                {
                    Add = {
                        ImpactTypeDisallow = {
                            'Shield',
                        },                   
                        OnImpact = true,
                    },
                    AppliedToTarget = true,
                    BuffType = 'STUN',
                    Duration = 3.5,
                    Radius = 12,
                    TargetAllow = 'TECH1',
                    TargetDisallow = 'TECH2,WALL',
                },
                {
                    Add = {
                        ImpactTypeDisallow = {
                            'Shield',
                        },                   
                        OnImpact = true,
                    },
                    AppliedToTarget = true,
                    BuffType = 'STUN',
                    Duration = 2.5,
                    Radius = 12,
                    TargetAllow = 'TECH2',
                    TargetDisallow = 'WALL',
                },
                {
                    Add = {
                        ImpactTypeDisallow = {
                            'Shield',
                        },                   
                        OnImpact = true,
                    },
                    AppliedToTarget = true,
                    BuffType = 'STUN',
                    Duration = 1.5,
                    Radius = 12,
                    TargetAllow = 'TECH3',
                    TargetDisallow = 'WALL',
                },
            },


if that doesnt work it might just be beam things, since thats from a projectile.

Statistics: Posted by Exotic_Retard — 21 Jan 2017, 03:12


]]>
2017-01-21T00:14:32+02:00 2017-01-21T00:14:32+02:00 /viewtopic.php?t=13871&p=142362#p142362 <![CDATA[Buffs applied weirdly?]]> I've been attempting to clean up my EMP-beam tank unit. All its supposed to do is fire a beam at a target thereby stunning it.
Except I get weird stun application:
Image

At target, the stun is applied to my units and not the enemy's. Where the beam starts from the stun is applied to enemy targets.!? (Look closely in image for the stun symbol). Only the two blue tanks on the right are firing.
In the DUL301_unit.bp there are two things that seem to control it; "OnFire" and "OnImpact". Disabling one or the other removes the above effects but doesn't fix them.
Code:
            Buffs = {
                {
                    Add = {
                       OnFire = true,
                        OnImpact = true,
                    },
                    AppliedToTarget = false,
                    BuffType = 'STUN',
                    Duration = 2,
                    Radius = 5,
                    TargetAllow = 'ALLUNITS',
                    TargetDisallow = 'COMMAND',
                },
            },
            CollideFriendly = false,


How do I get the OnImpact part to work properly and affect enemy units? Thanks!

Statistics: Posted by Dudekahedron — 21 Jan 2017, 00:14


]]>