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?
The Area damage gadget by KDR_11k & google_frog
Moderator: Moderators
Re: The Area damage gadget by KDR_11k & google_frog
pastebin your gadget, config and infolog.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: The Area damage gadget by KDR_11k & google_frog
These files?
http://code.google.com/p/zero-k/source/ ... damage.lua
http://code.google.com/p/zero-k/source/ ... e_defs.lua
(Of course your config file should be a bit different)
http://code.google.com/p/zero-k/source/ ... damage.lua
http://code.google.com/p/zero-k/source/ ... e_defs.lua
(Of course your config file should be a bit different)
Re: The Area damage gadget by KDR_11k & google_frog
yes those two
infolog says:
from definitions:
infolog says:
Code: Select all
[f=0000000] Loaded gadget: Area Denial <weapon_area_damage.lua>
(tried both standalone weapons and ones withing a lua definition as seen here)local weapons = {
Corroder_CorrosolThrower= { radius = 55, damage = 5, duration = 900, rangeFall = 0.3, timeFall = 0},
}
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: The Area damage gadget by KDR_11k & google_frog
Try lower case.
Re: The Area damage gadget by KDR_11k & google_frog
Works now. I could swear i tried lowercase before and it didn't work.
Thx ^^
Thx ^^
Re: The Area damage gadget by KDR_11k & google_frog
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)?
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
It's Lua, you can modify the logic in any way you want.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: The Area damage gadget by KDR_11k & google_frog
Yes to all.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)?