I want to do this with my weapons:
*Each weapon displays the magazine count in Decimals.
*Each weapon displays a different PNG for the ammo. (like Marathon)
*Some weapons display the ammo in Decimals.
How do I script that?
Alexander Smith Wrote:I want to do this with my weapons:
*Each weapon displays the magazine count in Decimals.
*Each weapon displays a different PNG for the ammo. (like Marathon)
*Some weapons display the ammo in Decimals.
How do I script that?
The basic gist of this is you need to setup each of these items separately (except for the magazine/ammo count, which could be shared) as items in your interface.xml.
Then you need to turn them on/off as the weapons come in and out. Basically catching the weapon switch event in player.js. I do a little of this, turning on and off the magazine or ammo for weapons where they aren't used.
[>] Brian
as for each displaying magazines as decimals, divide by 10 before displaying.... or twenty if you can have a 2 digit number of clips

.