www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Next Generation Level Editor (https://www.tombraiderforums.com/forumdisplay.php?f=40)
-   -   CUST_AMMO not working properly (https://www.tombraiderforums.com/showthread.php?t=225773)

smcandrew 26-02-21 20:47

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!

LoreRaider 26-02-21 21:15

^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

smcandrew 26-02-21 21:28

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!

Craig Michaels 26-02-21 22:08

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

smcandrew 27-02-21 06:23

Thanks Craig!! That's great... works perfectly now!


All times are GMT. The time now is 02:06.

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