I'm looking to add Arcing lightning to lightningcannons in my mod PA. I'd like Lightning Cannons to hit their targets and then for another effect to be drawn(probably with lups) to the next closest unit in range as it also takes damage through a gadget and then continues the arc. I don't have any idea how to approach this however.
I only need help with actually drawing the effect. Has anyone done anything like this before that I could use or alternatively could anyone offer me some advice as to how to approach it.
The idea is that when a unit is hit by a specfiy weapon, you get the units that are near the hit unit. Then you loop through those units and deal damage to them. And draw some effects with gl or by spamming cegs.
of course endless possibilies to customize that... ie change the -1 to weaponID in Spring.AddUnitDamage (nearUnits[i], damage/2, 0, attackerID, -1) and you get damage that jumps from unit to unit to unit to unit... will need some condition to jump that or its endless recursion=spring hangs.
local nearUnits = Spring.GetUnitsInCylinder (x,z, 500, unitTeam) 500=range change the team to make it also deal damage to allies. Or spells like in DOTA etc where damaging an enemy heals near allies or whatever.
2 planes that are stacked into each other, read more about it at this blog. For the laserthing it would be horinzontal of course. some more examples: The shields in zeroK draw lines to other shields to show linkage. math can be stolen here for curved arcs: The bases in some kernel panic mode are linked with funky arcs iirc. zeroK jumpsets show a 3d arc preview of the flightpath.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum