Code center > Suggestions
Shot code cleanup
abyaly:
.shootval does not work properly.
http://www.darwinbots.com/Forum/index.php?...ic=2590&hl=
shots do not do consistent damage based on rob size.
http://www.darwinbots.com/Forum/index.php?...ic=2572&hl=
.shotrange , .shotspread and .shotpower sysvars are still on the wishlist and could be lumped in.
.shotrange and .shotpower could work as follows:
Values are modded into the range [1, 100]
1 would be 10% of normal range/power
100 would be 1000% of normal range/power
This means that the possible multipliers for shot power/range are in the range [.1,10]
Cost could simply be modified by the square of the multiplier.
.shotspread could work as follows:
.shotspread defaults to the current spread at birth (15 units, perhaps?)
Values are mod 618
Shots randomly spread between the following angles: [0 - .shotspread, 0 + .shotspread]
0 means shots fire in the exact same direction every time.
617 means they fire in a random direction (except directly backwards)
abyaly:
PS: with the current shot code, a -1 shot fired by a bot with 1000 body point blank at a bot with 1000 body may do (and has done) twice as much damage as a -1 shot fired by a bot with 1000 body at a bot with 1000 body.
This level of inconsistency is bad.
Numsgil:
--- Quote from: abyaly ---PS: with the current shot code, a -1 shot fired by a bot with 1000 body point blank at a bot with 1000 body may do (and has done) twice as much damage as a -1 shot fired by a bot with 1000 body at a bot with 1000 body.
This level of inconsistency is bad.
--- End quote ---
Am I missing something or did you just say that 2 * x = x?
abyaly:
I am saying that a DB operation results in X and that the same DB operation results in 2X.
There is clearly some voodoo going on behind the scenes not related to energy, body, or range that causes damage to double.
Numsgil:
As I read it, you're saying that the exact same circumstances results in wildly different results for some reason?
There is some degradation of shot strength as the shot ages, but it should have 90% of it's strength left when it is 90% towards death. As the shot gets ever closer to death, it begins to drastically lose strength. Could that be what you're seeing, or were they at point blank both times?
Navigation
[0] Message Index
[#] Next page
Go to full version