Raised This Month: $52 Target: $400
 13% 

Ammo upg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Youcallmedaddy
Junior Member
Join Date: Dec 2018
Old 02-09-2019 , 07:20   Ammo upg
Reply With Quote #1

Hello everyone.

PHP Code:
code censored 
cvar:
PHP Code:
code censored 
Upgrade menu:


PHP Code:
code censored

Censored

Last edited by Youcallmedaddy; 02-10-2019 at 10:33.
Youcallmedaddy is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 02-09-2019 , 07:34   Re: Ammo upg
Reply With Quote #2

hook Ham_Weapon_Reload, then give player 1 more ammo.
DjSoftero is offline
Youcallmedaddy
Junior Member
Join Date: Dec 2018
Old 02-09-2019 , 07:47   Re: Ammo upg
Reply With Quote #3

I did:

PHP Code:
code censored

PHP Code:
code censored

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

Last edited by Youcallmedaddy; 02-10-2019 at 10:33.
Youcallmedaddy is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-09-2019 , 15:46   Re: Ammo upg
Reply With Quote #4

https://github.com/FWGS/regamedll/bl...apons.cpp#L942
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Aliens vs. Predator Server: OFFLINE

Website | Channel | AvP on Discord

CrazY. is online now
Youcallmedaddy
Junior Member
Join Date: Dec 2018
Old 02-09-2019 , 16:23   Re: Ammo upg
Reply With Quote #5

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.

Last edited by Youcallmedaddy; 02-10-2019 at 10:34.
Youcallmedaddy is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 02-09-2019 , 17:47   Re: Ammo upg
Reply With Quote #6

or just try changing this to 35: Ham_ItemInfo_iMaxClip
DjSoftero is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-09-2019 , 18:09   Re: Ammo upg
Reply With Quote #7

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.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Aliens vs. Predator Server: OFFLINE

Website | Channel | AvP on Discord


Last edited by CrazY.; 02-09-2019 at 18:12.
CrazY. is online now
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:30.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode