Hello forum!
Originally posted by Bobboau
no warm up\down
it works just like the targeting laser, in fact all I did was told it to go throught and make a targeting laser for each gun point at each gun point, were it used to just say fire a laser from the first
have yet to figure out why the AI doesn't fire it
Ummm, ok well I have an idea. I'm no C++ programmer, but I know this will be fairly easy, and it will give a more authentic version of a Beam weapon. Look at my crappy and hard-to-understand flowchart.
1. Pilot depresses trigger. Go to 2.
2. Is there enough energy to charge beam? If yes, go to 3. Else, go to 4.
3. Do warmup. Is trigger depressed again? If yes, go to 4. Else if abort button pressed, return energy to weapons subsys and do warmdown, else go to 2.
4. Fire weapon for duration given (x milliseconds?), do warmdown.
warmup: Damage + 1, Duration + 1, Radius + 1, play warmupsnd.
warmdown: Damage = 0, duration = 0, Radius = 0, play warmdnsnd.
In english: When the pilot presses the trigger, start creating a beam warmup, with particles, beamglow, etc. When the pilot presses the trigger again, or if energy is depleted, fire the weapon for x number of seconds/milliseconds. After firing, or if the pilot aborts firing, let the beam warmdown. If aborted, the energy returns to the subsystem. Simple, eh?