The Area damage gadget by KDR_11k & google_frog

The Area damage gadget by KDR_11k & google_frog

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

The Area damage gadget by KDR_11k & google_frog

Post 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?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: The Area damage gadget by KDR_11k & google_frog

Post by FLOZi »

pastebin your gadget, config and infolog.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: The Area damage gadget by KDR_11k & google_frog

Post by Google_Frog »

User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: The Area damage gadget by KDR_11k & google_frog

Post 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)
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: The Area damage gadget by KDR_11k & google_frog

Post by Google_Frog »

Try lower case.
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: The Area damage gadget by KDR_11k & google_frog

Post by Erik »

Works now. I could swear i tried lowercase before and it didn't work.
Thx ^^
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: The Area damage gadget by KDR_11k & google_frog

Post 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)?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: The Area damage gadget by KDR_11k & google_frog

Post by KDR_11k »

It's Lua, you can modify the logic in any way you want.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: The Area damage gadget by KDR_11k & google_frog

Post 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.
Post Reply

Return to “Game Development”