www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Next Generation Level Editor

Reply
 
Thread Tools
Old 26-02-21, 20:47   #1
smcandrew
Hobbyist
 
smcandrew's Avatar
 
Join Date: Aug 2008
Location: UK
Posts: 31
Default CUST_AMMO not working properly

Hey all,
It's been a while since I've properly posted. I've been playing around the with script as I was wanting to make it so the pistols are no longer unlimited ammo. I had it working on an old project however it appears the CUST_AMMO script command isn't working at all.

This is the code I am using:

Code:
Customize= CUST_AMMO, PISTOLS_AMMO_ITEM, IGNORE, 1, 20, 0, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE
Regardless of which ammo type I try to amend, it just defaults to the usual behaviour in the levels. Is there something really obvious that I'm missing and has anyone else had this issue? I may try a clean install of NG Centre.

Thanks!
smcandrew is offline   Reply With Quote
Old 26-02-21, 21:15   #2
LoreRaider
Archaeologist
 
LoreRaider's Avatar
 
Join Date: Jul 2016
Location: Italy
Posts: 1,453
Default

^are you using Classic Inventory plugin? that might be why it doesn't work, as that plugin uses its own script lines
I think it will be cust_cinv_ammo instead of cust_ammo if that's the case
__________________
"Everybody lies, no exceptions."
LoreRaider is online now   Reply With Quote
Old 26-02-21, 21:28   #3
smcandrew
Hobbyist
 
smcandrew's Avatar
 
Join Date: Aug 2008
Location: UK
Posts: 31
Default

I am using the Classic Inventory plugin - I just removed the plugin and it's fixed the issue... well partially, as I would like to use the inventory plugin too... Thanks!
smcandrew is offline   Reply With Quote
Old 26-02-21, 22:08   #4
Craig Michaels
Archaeologist
 
Craig Michaels's Avatar
 
Join Date: Feb 2006
Location: Berkeley, California
Posts: 1,285
Default

I *just* ran into this issue with the classic inventory. Here's the code I used to customize ammo (in this case, the shotgun pickup and associated Ammo 1):

Customize= CUST_CINV_AMMO, CINV_ITEM_SHOTGUN, CINV_ITEM_SHOTGUN_AMMO1, 2, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE
Customize= CUST_CINV_ITEM_QUANTITY, CINV_ITEM_SHOTGUN_AMMO1, IGNORE, IGNORE, 2, IGNORE, IGNORE, IGNORE, IGNORE
__________________
Archaeologist in Berkeley, CA
Craig Michaels is offline   Reply With Quote
Old 27-02-21, 06:23   #5
smcandrew
Hobbyist
 
smcandrew's Avatar
 
Join Date: Aug 2008
Location: UK
Posts: 31
Default

Thanks Craig!! That's great... works perfectly now!
smcandrew is offline   Reply With Quote
Reply

Thread Tools

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



All times are GMT. The time now is 13:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.