Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Level Editor and Modding > Tomb Raider Level Editor > Tomb Raider Next Generation

Reply
 
Thread Tools
Old 26-02-21, 21:47   #1
smcandrew
Member
 
smcandrew's Avatar
 
Joined: Aug 2008
Posts: 32
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, 22:15   #2
LoreRaider
Member
 
LoreRaider's Avatar
 
Joined: Jul 2016
Posts: 1,905
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
LoreRaider is online now   Reply With Quote
Old 26-02-21, 22:28   #3
smcandrew
Member
 
smcandrew's Avatar
 
Joined: Aug 2008
Posts: 32
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, 23:08   #4
Craig Michaels
Member
 
Craig Michaels's Avatar
 
Joined: Feb 2006
Posts: 1,517
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
Craig Michaels is offline   Reply With Quote
Old 27-02-21, 07:23   #5
smcandrew
Member
 
smcandrew's Avatar
 
Joined: Aug 2008
Posts: 32
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 22:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.