- Joined
- Jun 29, 2013
- Messages
- 1,929
- Reaction score
- 636
One simple suggestion.
Currently, turrets and ships have a bad habit of looking one direction and firing another. This makes no sense - they're not even lagging, since it can be a very small turret on a very small ship in an empty sector in singleplayer and they'll still do this.
The AI in Starmade appears to move objects well enough, but firing weaponry is a little odd. The AI will create a projectile free of the object itself, spawn the projectile at the muzzle position, and send it off in the direction that it's aiming. Not the direction the gun is aiming, the direction the AI is aiming.
Right now? Not a HUGE problem, but there are a few issues that can be solved with a few changes.
Missiles don't fire correctly as they don't appear to be configured to work with the AI. d1000 missiles will fire from an AI manned turret... In the wrong direction. KB missiles don't appear to fire at all. BB missiles are right out.
My suggestion?
Don't make the object the AI. Make the AI control the object. Make the AI pass commands to the controlled object the same way a player would. If it's shooting at a target, make it track the target with its artificial imaginary mouse and click. If it's moving, it's pressing a virtual WASD. Spoof the signal.
For an extra line of code, you could make dead certain with every loop of its AI routine that it's actually an AI to cut down on incidents of self-controlling turrets.
Upon all events that'd result in the AI being removed, add a line to clear the client ID from the AI so that the next person/AI to spawn or be created doesn't just recycle it and also accidentally take control of the original object.
No fancy features or anything.
Just a way to make the AI point and click so that they work with all weapons and don't have that derpy "Looking in one direction and shooting in another" problem.
Currently, turrets and ships have a bad habit of looking one direction and firing another. This makes no sense - they're not even lagging, since it can be a very small turret on a very small ship in an empty sector in singleplayer and they'll still do this.
The AI in Starmade appears to move objects well enough, but firing weaponry is a little odd. The AI will create a projectile free of the object itself, spawn the projectile at the muzzle position, and send it off in the direction that it's aiming. Not the direction the gun is aiming, the direction the AI is aiming.
Right now? Not a HUGE problem, but there are a few issues that can be solved with a few changes.
Missiles don't fire correctly as they don't appear to be configured to work with the AI. d1000 missiles will fire from an AI manned turret... In the wrong direction. KB missiles don't appear to fire at all. BB missiles are right out.
My suggestion?
Don't make the object the AI. Make the AI control the object. Make the AI pass commands to the controlled object the same way a player would. If it's shooting at a target, make it track the target with its artificial imaginary mouse and click. If it's moving, it's pressing a virtual WASD. Spoof the signal.
For an extra line of code, you could make dead certain with every loop of its AI routine that it's actually an AI to cut down on incidents of self-controlling turrets.
Upon all events that'd result in the AI being removed, add a line to clear the client ID from the AI so that the next person/AI to spawn or be created doesn't just recycle it and also accidentally take control of the original object.
No fancy features or anything.
Just a way to make the AI point and click so that they work with all weapons and don't have that derpy "Looking in one direction and shooting in another" problem.