Page 1 of 1

The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 13:12
by Erik
How to get it to work?

I have the main file in /gadgets folder and the definition file in /Configs folder with the weapon names inside, i does not work however.

Am i missing something?

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 14:55
by FLOZi
pastebin your gadget, config and infolog.

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 15:59
by Google_Frog

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 16:18
by Erik
yes those two

infolog says:

Code: Select all

[f=0000000] Loaded gadget:  Area Denial         <weapon_area_damage.lua>
from definitions:
local weapons = {
Corroder_CorrosolThrower= { radius = 55, damage = 5, duration = 900, rangeFall = 0.3, timeFall = 0},
}
(tried both standalone weapons and ones withing a lua definition as seen here)

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 17:47
by Google_Frog
Try lower case.

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 23 Aug 2011, 18:14
by Erik
Works now. I could swear i tried lowercase before and it didn't work.
Thx ^^

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 29 Aug 2011, 13:53
by Erik
Some more questions/suggestions/ideas regarding this:

Is it possible to intercept the damage done, for example to make certain units immune?

Is it possible to exclude certain unit types (VTOL i.e.)?

Is there a way to check wether a unit touches an area with its hit(whatever) or footprint instead of the current behaviour which means the unit centre must be in the zone (example: big building - small radius of zone, when the zone is created at the borders of the hitbox it wont do anything)?

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 29 Aug 2011, 17:57
by KDR_11k
It's Lua, you can modify the logic in any way you want.

Re: The Area damage gadget by KDR_11k & google_frog

Posted: 30 Aug 2011, 07:27
by Google_Frog
Erik wrote:Some more questions/suggestions/ideas regarding this:

Is it possible to intercept the damage done, for example to make certain units immune?

Is it possible to exclude certain unit types (VTOL i.e.)?

Is there a way to check wether a unit touches an area with its hit(whatever) or footprint instead of the current behaviour which means the unit centre must be in the zone (example: big building - small radius of zone, when the zone is created at the borders of the hitbox it wont do anything)?
Yes to all.