Code related to this issue has just been checked in!
Author: DCoder
Location: issue-1567-house-bolts, r1042
Commit contains DLL: Yes
Revision comment:
Related to issue #1567 - untested attempt to make Electric Bolts support House Color, loosely based on Graion's code. [Weapon]
IsElectricBolt=yes
Bolt.IsHouseColor=y/[n]
Bolt.ColorSpread= ; number, supposed to be between 0 and 255, defaults to 0
Since bolts use three colours, the first one is set to the House's Laser color, the second one is House's Laser Color + Color Spread on each R/G/B channel, the third one is Laser Color - Color Spread. No idea if that produces good looking colours, this is just something for Graion to play with.
Related to issue 1567 .
SVN: http://svn.renegadeprojects.com/Ares/1042
Code related to this issue has just been checked in!
Author: DCoder
Location: issue-1567-house-bolts, r1043
Commit contains DLL: Yes
Revision comment:
Related to issue #1567 - check owner unit and house before drawing the bolts.
Related to issue 1567 .
SVN: http://svn.renegadeprojects.com/Ares/1043
Before anybody asks, I've tried to implement this on my own, but around my tenth try, DCoder said enough of that.
The idea was good, it even sounded a NO-ASM method... however as it turned out, only Bolts from VehicleTypes has Owner. And other types can't really get one.
[04:22] I thought about HouseColorBolts.
[04:22] And I think I found a solution.
[04:23] keeping the owner in an extra field?
[04:23] Yeah.
[04:23] so it can't interfere with the original game?
[04:23] Yep.
[04:24] sounds good
[04:27] Alex, TBH, I thought about callng that extra field Bolt_HouseColor, creating an extra boolean called Bolt.UseLaserColor, if it's yes, use Owner->LaserColor, if no, use Owner->Color as Housecolor-base.
Code related to this issue has just been checked in!
Author: AlexB
Location: issue-1567-house-bolts, r1053
Commit contains DLL: Yes
Revision comment:
Related to issue #1567: Implemented Bolt.UseLaserColor (boolean). HouseColors should work will all TechnoTypes, not just with vehicles. If the house color bolt doesn't work for any reason, the game reverts to the paletted one. Graion's code.
SVN: http://svn.renegadeprojects.com/Ares/1053
Bolt.IsHouseColor=yes needed to activate this feature.
Bolt.ColorSpread defines the difference of the shading between 2 bolts. It is an integer, can be from 0 to 255.
Bolt.UseLaserColor is a development tool and I'm not sure if it should be kept. In a nutshell, it forces the game to use the house's laser color instead of the house's own color as the bolt's base color. The reason of this tag is that the game has a color as it's house (defined in the Colors list) and it has a derivate used only by the lasers of that house. (That is the reason why brown houses gets orange HouseLasers.)
Code related to this issue has just been checked in!
Author: AlexB
Location: issue-1567-house-bolts, r1054
Commit contains DLL: Yes
Revision comment:
Related to issue #1567: Bugs fixed. Graion's code.
SVN: http://svn.renegadeprojects.com/Ares/1054
Code related to this issue has just been checked in!
Author: AlexB
Location: issue-1567-house-bolts, r1057
Commit contains DLL: Yes
Revision comment:
Related to issue #1567: ColorSpread works again. Restored ColorSpread to work after a fault in previous revision. Graion's code.
SVN: http://svn.renegadeprojects.com/Ares/1057
Without using your new patch(using 1057), I can confirm that this tag does not cause RE and the color is displayed correctly for all players.
I told you that I couldn't confirm 100%, so you wasted your time on that patch.
Code related to this issue has just been checked in!
Author: AlexB
Location: issue-1567-house-bolts, r1088
Commit contains DLL: Yes
Revision comment:
Related to issue #1567: Newest patch integrated. Graion's code.
SVN: http://svn.renegadeprojects.com/Ares/1088
Somebody would be that kind and check if this works with PF?
Meanwhile, I attached a Hooks.Bolt.cpp. If that's merged, Spread=-1 will return the two white lines (The sole reason for it is to prevent hearing that Gear Zero's bolts are nicer... we have both :P), if those two works then it's really really ready to be merged.
Sorry for pure CPP but I still work on my mother's PC.
Sorry for the confusion. I couldn't post up a binary because I did not have my PC with Ares stuff. But since I got the replacement today,I'll stop the confusion. :)
OK, PF Supportweapons are supported. Also, if ColorSpread is set to -1, the bolt will be in LH_Mouse's style shown on http://ppmsite.com/forum/files/7335_415.png. (To prevent hearing that Gear Zero has nicer house bolt.)
Code related to this issue has just been checked in!
Author: GraionDilach
Location: issue-1567-house-bolts, r1110
Commit contains DLL: Yes
Revision comment:
Related to issue 1567: Merged latest unofficial build. Actual code is unchanged.
Negative values no longer works in v02-mix1 and it is treated as 0,0,0. Any RGB value less than 5,5,5 (except things like 5,5,155), will also be treated as 0,0,0. Black can be achieved by setting it to 5,5,5.
Other than that, Bolt.IsHouseColor and Bolt.ColorSpread still works although both lack documentations.
Code related to this issue has just been checked in! house-bolts, r1042 or=y/[n]
Author: DCoder
Location: issue-1567-
Commit contains DLL: Yes
Revision comment:
Related to issue #1567 - untested attempt to make Electric Bolts support House Color, loosely based on Graion's code. [Weapon]
IsElectricBolt=yes
Bolt.IsHouseCol
Bolt.ColorSpread= ; number, supposed to be between 0 and 255, defaults to 0
Since bolts use three colours, the first one is set to the House's Laser color, the second one is House's Laser Color + Color Spread on each R/G/B channel, the third one is Laser Color - Color Spread. No idea if that produces good looking colours, this is just something for Graion to play with. svn.renegadepro jects.com/ Ares/1042
Related to issue 1567 .
SVN: http://