Negative damage
Moderator: Moderators
Negative damage
I've tried setting a weapon's default damage to a negative value, it doesn't seem to work. Can this be fixed? I can think of quite a few uses. If you can do it, just be sure to make sure the "damage" caused can't exceed a unit's health.
Thanks
Thanks
Depends on the implementation. Suppose you made a nuke launcher which fires a "nano bomb". Fire it at an area, it repairs everything. Nukes and certain other units aren't subject to the "no firing at friendlies" rule.j5mello wrote:not to mention wouldn't you have to change the targeting/aiming code to allow you to fire at ur own units????
;_;
The reason my patch isn't in yet is that armorzones hate me.
They are getting removed.
I will have my patch done in a couple of days.
It has negative damage that can't exceed max HP.
The current spring limits damage to a unit to always be positive. I remove that, put in checks for max health, and make experience work properly, specifically by giving it a multiplier to give units .1 * what the experience would be for doing that much damage (note that paralysis weapons get 0.1x experience, so I copied that)
The reason my patch isn't in yet is that armorzones hate me.
They are getting removed.
I will have my patch done in a couple of days.
It has negative damage that can't exceed max HP.
The current spring limits damage to a unit to always be positive. I remove that, put in checks for max health, and make experience work properly, specifically by giving it a multiplier to give units .1 * what the experience would be for doing that much damage (note that paralysis weapons get 0.1x experience, so I copied that)
Nah, nothing needed. You can already set base damage to be negative, btw, and it will charge shields and such. But it's in the final subtraction of damage from hp that it's limited right now, so it should work exactly as expected with my patch.Caydr wrote:Awesome, please post details on usage (if applicable) when it's in. Much appreciated. This is going to be a really neat feature.