AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ammo upg (https://forums.alliedmods.net/showthread.php?t=314228)

Youcallmedaddy 02-09-2019 06:20

Ammo upg
 
Hello everyone.

PHP Code:

code censored 

cvar:
PHP Code:

code censored 

Upgrade menu:


PHP Code:

code censored


Censored

DjSoftero 02-09-2019 06:34

Re: Ammo upg
 
hook Ham_Weapon_Reload, then give player 1 more ammo.

Youcallmedaddy 02-09-2019 06:47

Re: Ammo upg
 
I did:

PHP Code:

code censored


PHP Code:

code censored


That's what I have. I dunno how to do that.

CrazY. 02-09-2019 14:46

Re: Ammo upg
 
https://github.com/FWGS/regamedll/bl...apons.cpp#L942

Youcallmedaddy 02-09-2019 15:23

Re: Ammo upg
 
Is it possible to give me more precise instructions? What to do with that line?

I was thinking of something like that.

PHP Code:

code censored 

Maybe I am wrong. I'm sorry for my not enough knowledge.

DjSoftero 02-09-2019 16:47

Re: Ammo upg
 
or just try changing this to 35: Ham_ItemInfo_iMaxClip

CrazY. 02-09-2019 17:09

Re: Ammo upg
 
Ham_ItemInfo_iMaxClip won't work. You'll need to directly alter CBasePlayerItem::ItemInfoArray (orpheu, this), ItemInfo_iMaxClip (reapi) or recode weapon reload (the part of code that I cited above)

Besides, Ham_ItemInfo_* seems to be useless but I may be wrong.


All times are GMT -4. The time now is 07:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.