View Single Post
Old 06-26-11, 09:58 AM   #1658
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by h.sie View Post
@TDW: Thanks. After reading Sergbutos readme, I had the same idea and already tried it. Now, the sub shoots in all directions, regardless of it's heading. Overkill. All sunk. One can now enlarge the reload time / recoil time in order to give the sub a realistic fire ability. Or maybe there is a way to restrict the ammo? We'll see.
Yes you can restrict ammo. In wpn_Cannon controller you tell it what shells to use and the amount of each type of shell. Simply set the amount to the value desired.

Subset of wpn_Cannon controller in .sim file:
00000969 AD 00 00 00 61 6D 6D 6F 5F 73 74 6F 72 61 67 65 ....ammo_storage
00000979 00 24 00 00 00 41 50 00 0E 00 00 00 73 68 65 6C .$...AP.....shel
00000989 6C 00 00 00 00 00 00 00 00 00 0B 00 00 00 61 6D l.............am
00000999 6F 75 6E 74 00 00 00 00 00 24 00 00 00 48 45 00 ount.....$...HE.
000009A9 0E 00 00 00 73 68 65 6C 6C 00 00 00 00 00 00 00 ....shell.......
000009B9 00 00 0B 00 00 00 61 6D 6F 75 6E 74 00 00 00 00 ......amount....
000009C9 00 24 00 00 00 41 41 00 0E 00 00 00 73 68 65 6C .$...AA.....shel
000009D9 6C 00 CC 96 81 C9 5F CE FE D3 0B 00 00 00 61 6D l....._.......am
000009E9 6F 75 6E 74 00 C4 09 00 00 24 00 00 00 53 53 00 ount.....$...SS.
000009F9 0E 00 00 00 73 68 65 6C 6C 00 00 00 00 00 00 00 ....shell.......
00000A09 00 00 0B 00 00 00 61 6D 6F 75 6E 74 00 00 00 00 ......amount....
00000A19 00 .

Probably the reason why he couldn't limit the ammo because they are using the same 88mm deckgun as the player's sub. Thus one needs to clone that gun so you can limit the ammo.
TheDarkWraith is offline   Reply With Quote