This screenshot doesn't do it justice (I need to figure out a setup for recording gifs/videos), but I got Terran beam weapons working. I also incorporated some old slashing code from the radioactive code depot, which works quite nicely. The beams actually slash across a target! I just need to tweak the amount they slash by, so they don't just miss the target entirely.
Spent the evening commenting code, bug hunting, and managed to get the result I was hoping for.
I have a few sound bugs to work out now (for some reason, the charging sound is playing AFTER the weapon is done firing), and need to tweak the visuals, but it's getting there.
Once I've gotten this beam code cleaned up and solid, I'll set up all the other beam cannons. Good times!
Beam To Do:
- Integrate Tartiflette's muzzle flash animation script to display the SCP beam chargeup and chargedown animations (need to figure out how to scale the animation up everyframe from 0 to full size during charge up, and then down again during chargedown. Maybe for chargeup I could link scale to getCharge()? Then for chargedown, linked to... what? It would have to be time duration-based).
Fix the chargeup sound to actually trigger consistently when the beam is actually charging- Fix the slash code so that the slash starts closer to the target.