Okay, so the Cannonball is supposed to be a dumbfire missile. Right now we had the problem where the projectile is spawned and just stays in one place due to lag.
This is the current code for the cannonball missile, and I've shown the problematic parts in red:
So let us see how it works.
The missile is spawned in when you click your Launch Missile key and it starts off at whatever the impulse of your ship is.
Then it quickly starts gaining speed, this is where the
accel = 499
comes in.
It does so instantly because we have the
delay = 0
Instead of this, let us try a different concept.
I am not exactly sure how fast the original missile was supposed to be, but let us say it is 600 ms.
It means that the missile starts off from the ship at a specified speed, instead of at 0 and with a huge acceleration.
Something Something.
EDIT: I am also pretty sure that for a dumbfire missile you do not need to have the current Seeker settings. Take a look at Flak Turrets for an alternative code to that part.
EDIT2: Actually, I am pretty sure that time_to_lock = 4 is causing some dumbs.
--------------
PSA: If you have been having stutter/FPS lag on Disco where it does not run as smoothly as other games, please look at the fix here: https://discoverygc.com/forums/showthrea...pid2306502
----------