Fighters update 2
I am not sure how much I've already shared about fighters/bombers. There were however some issues with them moving in a jittery manner. I've smoothed that out today and I'm back on track with implementing them.
I've also done the following:
This is the current work in progress state of it:
[previewyoutube][/previewyoutube]
I've also done the following:
- Did a multiplayer carrier test. Fighters didnt launch
- Rebuilt the game
- Did another multiplayer carrier test. Fighter and bomber behaviour illogical. Errors when retrieving trail color. Fixing.
- Fighters and bombers are now actually fighting in multiplayer
- Fighters were not fighting and weapons fire was not shown over multiplayer, now it is
- Fixed a bug where the fighters and bombers couldnt access the network component
- Found out bombers dont launch bombs currently and just circle the opponent in multiplayer. fixing
- Bombers now fire but the bombs dont collide
- The bombs dont collide because the bomber projectiles currently dont have an owner. Fixing.
- Bomber projectiles now hit in multiplayer. They just don't deal damage
- Movement for opponents fighters and bombers is a bit jittery, but that could be because i'm playing against myself. If not then i need to smooth it in the future
- Bombers deal damage now, but their projectiles are not visible over the network for the other player for some reason. Perhaps the spawn position is off because it sort of uses the carrier as the origin point. It could also be related to this line "(PV.IsMine)// this is preventing bombers from doing damage in multiplayer, so im disabling it"
- Fixed bombers not firing over network when target was a building rather than a unit because it couldnt find the movescript
- Split up the bomber networking and local code. Expecting bombs to actually behave as they should now over network
- Made fighters and bombers fly out of the carriers faster
- Did a test with rigidbodies on fighters. It fixed the 'stuttering' that enemy fighters and bombers were showing. Still, have to improve it some more ofc
- Added rigidbodies to fighters and bobmers
This is the current work in progress state of it:
[previewyoutube][/previewyoutube]