Hello all, here are some mounted gun prototypes for my game.
These guns are the basic mounted machine guns. The player can roll up to a gun, press spacebar and start training the gun to wherever he is pointing at. There is also a bullet shield at the front of the gun, which is capable of stopping some bullets from the front, although it cannot protect you from all bullets. There is also an option to let the shield fall off if it takes too much damage, but this is disabled in the video.
The AI can also use the turret gun. Currently, the AI will start using a turret gun only if the turret is within his "snap range". The AI will not purposely move to a turret gun directly, and I did this to keep the AI's states simple. But for now, it works!
Currently, the turret gun plays like many of the FPS's out there. They offer high fire power at a high fire rate. They rotate reletivly slower than your personal weapon, so you cant swivel the weapon 180 degrees very fast, which means you and your enemy can flank a turret to take out the operator.
Here is how it generally works:
1. All turrets start out as "open"
2. Ais and Player's look for the closest turret that is open
3. If the player/ai chooses to use the closest open turret, lock the turret, then snap to it's seat position. Start rotating the torso and arm bones to look at the turret gun handles.
4. If the player/ai starts firing, instead of firing bullets from the AI/player's personal weapon muzzle bone, start firing bullets from the turret gun's muzzle bone. Also take on the weapon characteristics of the turret gun, such as firing rate, accuracy and damage.
[video:youtube]
http://www.youtube.com/watch?v=J98RVlRbkDc[/video]