The internet is a lawless place with knowledge and sarcastic wit the pistols of this wild frontier.
Don't go out without being sufficiently armed.

~Blade

Other places

Ares (Current version: 0.B)

Ares's primary facilities have been moved elsewhere:

  • If you wish to report a bug in Ares, please proceed to its bugtracker.
  • If you'd like to request a feature, register a blueprint.
  • If you have questions or can provide answers regarding Ares's usage, visit the Q&A section.
  • Before you post a new question, you should check the FAQ, though.

Behavior

  • Mind the forum rules.
  • Due to its documentedly horrible quality, we do not offer NPatch support.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ReloadIncrement - Is it possible to have a more confusing flag?
Author Message
Private Vinifera7 Offline
Member
***
Members

Posts: 159
Joined: 4 Aug 2006
Reputation: 2
Post: #1
ReloadIncrement - Is it possible to have a more confusing flag?
I am severely confused as to what this flag actually does.

The entry from the Guide is rather vague and confusing.
Quote:This can be used to slow down or speed up the rate of this units automatic reloading (instead of being instantaneous). This should be set to the percentage amount to add at every reload increment (which can be calculated by multiplying the units Ammo= value by its PipWrap= value).

And the explanation on the Ammo page seems to be wrong.
Quote:ReloadIncrement, which controls how much ammo should be reloaded, in percent of maximum

I have never seen more than one ammo pip reload at once, so this is clearly not true (feel free to show me otherwise).

Now for the results of my testing, which I cannot make heads or tails of.

This is on a vehicle by the way, so it uses automatic reload logic. I have never gotten manual reload to work for vehicles (again, correct me if i am wrong).

Code:
PipScale=Ammo
PipWrap=5
Ammo=20
InitialAmmo=0
Reload=50
EmptyReload=100
ReloadIncrement=20

InitialAmmo seems to specify the starting ammo + 1. So if InitialAmmo=0, the vehicle will start with 1 ammo pip.
Then there seem to be two special values:
If InitialAmmo=-1, the vehicle will start with full ammo.
Furthermore, if InitialAmmo=-2, it will start with empty ammo.

EmptyReload works just as expected. It takes exactly 100 frames for the first ammo pip to reload when empty.

After that, each of the next 4 ammo pips (filling up the first pip wrap set) takes 50 frames each to reload, as expected.

The next 5 ammo pips (filling up the second pip wrap set) take 70 frames each to reload. So it would seem as if ReloadIncrement is added to Reload on the second pip wrap set.

But here's where it gets wacky. The next 5 ammo pips (filling up the third pip wrap set) take 130 frames each to reload. Where the heck did 130 come from?

On the final 5 ammo pips (the last pip wrap set) each one takes 230 frames each to reload. Again, I have no idea where 230 came from.

Hopefully someone can make sense of this. Bang head against wall

[Image: alexstand1.gif]
29.04.2008 18:48:51
Find all posts by this user Quote this message in a reply
Sergeant gordon-creAtive Offline
creAtive FreemAn
****
Moderators

Posts: 395
Joined: 15 Apr 2007
Reputation: 5
Post: #2
RE: ReloadIncrement - Is it possible to have a more confusing flag?
Quote:Hopefully someone can make sense of this
someone=DCoder. I'm pretty sure he has an answer for you.

[Image: osen2o7mpmm4jg1fs0.jpg]
29.04.2008 19:39:31
Visit this user's website Find all posts by this user Quote this message in a reply
Commander-in-Chief DCoder Offline
Not Ares Anymore
*****
Admins

Posts: 1 756
Joined: 22 Nov 2004
Reputation: 18
Post: #3
RE: ReloadIncrement - Is it possible to have a more confusing flag?
A more confusing flag? ImmuneToRadiation (among the old DZ forum threads).

As for this bit, I can give you a pseudocode of how ammo reloads work tomorrow. Though it already sounds like it will be a barrel of laughs.

29.04.2008 19:43:57
Visit this user's website Find all posts by this user Quote this message in a reply
Private Vinifera7 Offline
Member
***
Members

Posts: 159
Joined: 4 Aug 2006
Reputation: 2
Post: #4
RE: ReloadIncrement - Is it possible to have a more confusing flag?
I'm up for a laugh or two. =D

[Image: alexstand1.gif]
29.04.2008 22:22:59
Find all posts by this user Quote this message in a reply
Commander-in-Chief DCoder Offline
Not Ares Anymore
*****
Admins

Posts: 1 756
Joined: 22 Nov 2004
Reputation: 18
Post: #5
RE: ReloadIncrement - Is it possible to have a more confusing flag?
Slightly late, but here it is: http://dc.strategy-x.com/src/TechnoClass_Ammo.htm , enjoy.

01.05.2008 17:06:10
Visit this user's website Find all posts by this user Quote this message in a reply
Private Vinifera7 Offline
Member
***
Members

Posts: 159
Joined: 4 Aug 2006
Reputation: 2
Post: #6
RE: ReloadIncrement - Is it possible to have a more confusing flag?
Woo, fancy highlighting! Thanks!

[Image: alexstand1.gif]
01.05.2008 18:36:35
Find all posts by this user Quote this message in a reply
Private Vinifera7 Offline
Member
***
Members

Posts: 159
Joined: 4 Aug 2006
Reputation: 2
Post: #7
RE: ReloadIncrement - Is it possible to have a more confusing flag?

[Image: alexstand1.gif]
02.05.2008 00:04:51
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)