They are related yes, but are different concepts. That is why I am looking for ideas :)
Regarding my other post - in it I am trying to make ONE type of unit receive less damage from all attacks. (I am exploring a damage reduction buff on that unit that checks for distance from enemy attacks via validators)
Regarding this post - This is a weapon on ONE type of unit that reduces/increases its damage output, based on distance to the target.
I am thinking of making 3-5 identical hidden weapons, each with different range and damage. I add them to the same unit and based on the distance, it will fire the appropriate weapon. The player won't notice that the unit has 5 weapons.
They are related yes, but are different concepts. That is why I am looking for ideas :)
Regarding my other post - in it I am trying to make ONE type of unit receive less damage from all attacks. (I am exploring a damage reduction buff on that unit that checks for distance from enemy attacks via validators)
Regarding this post - This is a weapon on ONE type of unit that reduces/increases its damage output, based on distance to the target.
I am thinking of making 3-5 identical hidden weapons, each with different range and damage. I add them to the same unit and based on the distance, it will fire the appropriate weapon. The player won't notice that the unit has 5 weapons.
But maybe there are better ways?
Let's use the Marine as an example.
If the Marine is attacking an enemy from range 5, it deals normal damage.
If the Marine is attacking an enemy from range 3-4, it deals more damage.
If the Marine is attacking an enemy from range 1-2, it deals double damage.
Any ideas how to make this work?