:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Mon Mar 30, 2020 4:26 pm
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum
How is TS' VeteranROF bonus actually calculated?
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
Author Message
gameaddict11707
Cyborg Soldier


Joined: 15 Jul 2011

PostPosted: Fri Oct 18, 2019 10:32 pm    Post subject:  How is TS' VeteranROF bonus actually calculated? Reply with quote

In RA2's engine, VeteranROF is directly multiplied by the weapon's ROF, rounded down to the nearest integer.

In RA2, this example would result in a promoted GTNK firing CRM60 every 90 frames.
Code:
[General]
VeteranROF=0.9

[GTNK]
Primary=CRM60
VeteranAbilities=ROF

[CRM60]
ROF=100


In TS, if it worked like RA2, this would result in BGGY firing RaiderCannon every 30 frames.
Code:
[General]
VeteranROF=0.3

[BGGY]
Primary=RaiderCannon
VeteranAbilities=ROF

[RaiderCannon]
ROF=100


In-game testing shows otherwise; the delay is greater than 30, but less than 100. I just don't know the exact number.

Confused

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Oct 19, 2019 8:16 am    Post subject: Reply with quote

Maybe the ROF is lowered by 0.3 so it would be 70?
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Sat Oct 19, 2019 9:46 am    Post subject: Reply with quote

Tutorial - https://ppmforums.com/viewtopic.php?t=30886

Consider other factors when calculating - difficulties [Easy] to [Hard], House/Country stats, secondary weapon, gamespeed and map overrides.

Back to top
View user's profile Send private message
gameaddict11707
Cyborg Soldier


Joined: 15 Jul 2011

PostPosted: Sat Oct 19, 2019 5:29 pm    Post subject: Reply with quote

Mig Eater: I tried that, but it wasn't exactly the same. 70 is faster than the actual promotion bonus.
E1 Elite: That tutorial didn't really help, unfortunately. The house stats aren't modified, neither test unit has a secondary, and I've been testing at game speeds 4 and 5. Not sure what you mean by "map overrides".

I've been using Tiberian Sun Client 5.44 for this, if that makes a difference anywhere.

I made a small test map of what I'm trying to do here. It replaces the first Nod mission in vanilla Tiberian Sun, so make a backup of the original map just in case.
The Bike's weapon was modded to be the same as the Buggy's except the ROF is 70 instead of 100, and on promotion it doesn't get an ROF bonus. Both vehicles' ROT was modded so they face their target at the same time (as closely as possible, anyway). Beyond that, nothing's been changed.


nod1a.map
 Description:
Play on Normal difficulty, game speed 4 or 5 (Fast or Faster). Order the Buggies and Bike to attack the walled-in MCV as one group.

Download
 Filename:  nod1a.map
 Filesize:  32.79 KB
 Downloaded:  2 Time(s)


Back to top
View user's profile Send private message
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Sun Oct 20, 2019 4:43 am    Post subject: Reply with quote

The tutorial is straight forward. TS Bonus is additive to the original amount while RA2 multiplier is multiplied to the original value.

For TS ROF of 100
VeteranROF=0.5 means 100/(1.0 + 0.5) = 67
VeteranROF=1.0 means 100/(1.0 + 1.0) = 50
VeteranROF=2.0 means 100/(1.0 + 2.0) = 33

Difficulty didn't matter here as it is applied to the original value.

Attaching a map, could rename it to gdi1a.map if needed or edit battle.ini for its entry. Open the map in a text editor to change values instead of FinalSun.


testrof.zip
 Description:

Download
 Filename:  testrof.zip
 Filesize:  6.23 KB
 Downloaded:  1 Time(s)


Back to top
View user's profile Send private message
gameaddict11707
Cyborg Soldier


Joined: 15 Jul 2011

PostPosted: Sun Oct 20, 2019 6:04 am    Post subject: Reply with quote

I might have figured out the big thing that's been annoying me about this.
I would have different units attack simultaneously to time their shots, to see if my math was right, but I've noticed there's a sort of de-sync that happens. And even with 3 instances of the same unit, i.e. no bonuses, everyone has the same weapons, etc., all ordered to fire at the same time, they don't always fire at the exact same moment.
Even if they do start simultaneously, the 3 units eventually get out of sync with each other, which IIRC is because the program technically can't execute multiple functions at the exact same time and has to step through each one in... whatever order it uses.

Back to top
View user's profile Send private message
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Sun Oct 20, 2019 6:40 am    Post subject: Reply with quote

Can use trigger repeat after elapsed time to perform synchronous activities.

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Sun Oct 20, 2019 9:52 am    Post subject: Reply with quote

E1 Elite wrote:

The tutorial is straight forward. TS Bonus is additive to the original amount


It's not that simple. As you demonstrated, VeteranROF is used to additively decrease ROF. AFAIK VeteranArmor is a direct multiplier to incoming damage. VeteranCombat, VeteranSpeed and VeteranArmor are used to additively increase the original value. Lastly, there's VeteranSight, which is unique as it needs to be >1 to have any effect. It could be a direct multiplier to Sight, only it cannot actually decrease Sight.

As mentioned before, RA2's system is much more straightforward.
_________________


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1533s ][ Queries: 12 (0.0089s) ][ Debug on ]