I'm using this gadget, in conjunction with this widget:
https://code.google.com/p/evolutionrts/ ... mander.lua
And is has been working fine until spring 93+. At which point, it started erroring out like crazy. This was due to an old version I was using, so I updated it to the latest in ZK.
Now all of a sudden the emp is paralyzing my own units too QQ.
What am I doing wrong?
For anyone else who doesn't understand... simply make this change:[22:12:41] <[Evo]Forboding_Angel> hey car
[22:12:48] <[Evo]Forboding_Angel> could you help me with this?
[22:12:57] <CarRepairer> depends
[22:12:57] <[Evo]Forboding_Angel> http://springrts.com/phpbb/viewtopic.php?f=14&t=29985
[22:13:11] <[Evo]Forboding_Angel> I don't understand why it's not working
[22:13:25] <[Evo]Forboding_Angel> the gadget just checks to see if the customparam is set
[22:13:40] <[Evo]Forboding_Angel> at which point it shoudl work, shouldn't it?
[22:14:49] <[Evo]Forboding_Angel> As you know the emp is all aoe
[22:14:59] <[Evo]Forboding_Angel> does that make a difference now?
[22:28:09] <CarRepairer> did you modify the gadget?
[22:28:34] <CarRepairer> oh i know
[22:28:41] <CarRepairer> the unitpredamaged has changed in spring 94
[22:28:44] <CarRepairer> go yell at #sy
[22:33:37] <[Evo]Forboding_Angel> ohy?
[22:33:41] * [Evo]Forboding_Angel Slaps CarRepairer around with a large PeeWee!
[22:33:49] <[Evo]Forboding_Angel> Sorry had to run to the -------
[22:33:50] ** SATO_S left the channel( Quit ).
[22:34:39] <[Evo]Forboding_Angel> looks like an arg was added to it
[22:37:20] <[Evo]Forboding_Angel> interesting
[22:37:26] <[Evo]Forboding_Angel> the changelog lists weapondefID
[22:37:35] <[Evo]Forboding_Angel> but the gadget is using weaponID?
[22:37:36] <[Evo]Forboding_Angel> O_o
[22:38:30] <[Evo]Forboding_Angel> That fixed it..
[22:38:33] <[Evo]Forboding_Angel> thanks car
[22:38:46] <[Evo]Forboding_Angel> I jsut added projectileID to the arg list
Code: Select all
function gadget:UnitPreDamaged(unitID, unitDefID, unitTeam, damage, paralyzer,
weaponID, attackerID, attackerDefID, attackerTeam)
Code: Select all
function gadget:UnitPreDamaged(unitID, unitDefID, unitTeam, damage, paralyzer,
weaponID, projectileID, attackerID, attackerDefID, attackerTeam)