Vinifera-Developers / Vinifera

Vinifera is a C&C: Tiberian Sun engine extension implementing new logics and fixing bugs.
GNU General Public License v3.0
46 stars 10 forks source link

[New Feature] Allow customizing the maximum number of bounces for bouncy projectiles #221

Open Rampastring opened 3 years ago

Rampastring commented 3 years ago

Description:

Bounce count of bouncy projectiles is hardcoded to a maximum of 3 in vanilla TS. Both DTA and TI change this limit to 127.

; Increase max number of bounces for bouncy projectiles from 3 to 127
@SET 0x00445514, {cmp eax, 127}
Crimsonum commented 3 years ago

There is actually a rather serious bug that occurs when increasing this limit. Any bouncy projectile with zero elasticity freezes at high bridges for the duration of max bounce ticks. See this video for an example: https://www.youtube.com/watch?v=Cwnzk7AXSYI (for the test I had increased the limit from 3 to 127)

I'm not sure if this deserves its own issue report. You can technically see it already in the vanilla game, but as the max. bounces is hardcoded to only 3 ticks, and only the Nod artillery and GDI Juggernaut use non-elastic bouncy projectiles, it's almost impossible to notice.