AmmoX vs CurWeapon
Hey there everyone.
So, I am making Unlimited Clip plugin with both Unlimited BP and Clip ammo features defined by CVAR. I want to know which is best for setting BP ammo ? AmmoX or CurWeapon message ? |
Re: AmmoX vs CurWeapon
You should use curweapon because it's updating ammo and ammo type icon, and it's faster, but, of course you can even use hamsandwich to do this.
You should take a look here for unlimited clip: https://forums.alliedmods.net/showpo...82&postcount=2 and here to compare the events: Curweapon: https://wiki.alliedmods.net/index.ph...ents#CurWeapon Ammox: https://wiki.alliedmods.net/index.ph...e_Events#AmmoX |
Re: AmmoX vs CurWeapon
I am using this stock and I want to build unlimited clip and unlimited BP ammo functionality both controlled by 1 and 2 in this stock. Can anyone tell me or show me how can I do it.
STOCK -- Code:
give_user_weapon( index , iWeaponTypeID , iClip=0 , iBPAmmo=0 , szWeapon[]="" , maxchars=0 ) |
Re: AmmoX vs CurWeapon
Neither. Pdata set on spawn. Working examples: Gungame and Powerplay.
|
Re: AmmoX vs CurWeapon
Quote:
|
Re: AmmoX vs CurWeapon
Pdata accomplishes unlimited bullets while being called once. CurWeapon can become resource laden.
|
Re: AmmoX vs CurWeapon
Quote:
So, that it becomes. A bit easier for me to understand. |
Re: AmmoX vs CurWeapon
1 Attachment(s)
Gungame: Uses hash-map to set pdata. All mods.
https://forums.alliedmods.net/showthread.php?t=180714 Powerplay: Uses 2D array to set the Player's Data flags (pdata). Setting 1 integer gives all weapons and more ammo than anybody can shoot. https://forums.alliedmods.net/showpo...04&postcount=6 Here is a pdata explorer pik I made so developers can explore short of recompiling script to test outcomes it will save a lot of fiddling. Instructions are in the script. |
Re: AmmoX vs CurWeapon
Thanks
|
| All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.