One weapon, two ammo types
Hello, I'm developing one weapon that will have two ammo types (two clip and two bpammo). Will work as famas, when you press right button of mouse, switch to another fire mode, but instead will switch ammunition.
I was going to use SecAmmoVal and SecAmmoIcon to show the secondary ammo, but these messages it's not working in CS 1.6. I thought of work with ItemInfo pszAmmo2/iMaxAmmo2, but I don't think this will work. Any suggestion? |
Re: One weapon, two ammo types
How about changing m_iPrimaryAmmoType :bee:
|
Re: One weapon, two ammo types
Do you want to change the ammo icon in the bottom right corner?
Take a look at some custom weapons made by Dias, like Thunderbolt, it changes the ammo icon. |
Re: One weapon, two ammo types
Quote:
But you can create two weaponlist files and one will have first ammo type second will have another then after switching send message of weaponlist. |
Re: One weapon, two ammo types
I did one trick with iMaxClip(), iMaxAmmo1() and m_iClip. Looks working fine for my purpose.
Maybe it's possible with m_iPrimaryAmmoType, but this would cause "conflict" between weapons, as some of them share same ammo. |
| All times are GMT -4. The time now is 07:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.