Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Zrokz on October 03, 2016, 09:19:57 am
Title: Changing Weapon Cost?
Post by: Zrokz on October 03, 2016, 09:19:57 am
Is there a simplified way of doing this, changing the cost of any gun standard cost
the script in mymap.csv says >
function include_weapons() { zm_weapons::load_weapon_spec_from_table("gamedata/weapons/zm/zm_levelcommon_weapons.csv", 1); }
Call of Duty Black Ops III\share\raw\gamedata\weapons\zm\zm_levelcommon_weapons.csv
Ive changed the cost in there and nothing happens.
Title: Re: Changing Weapon Cost?
Post by: TheStuffDanDoes on October 03, 2016, 07:44:33 pm
Bump. I really need help doing this. Even @pcdev_assist won't help me hahaha
Title: Re: Changing Weapon Cost?
Post by: reckfullies on October 03, 2016, 08:51:57 pm
The thing about weapons in bo3 is, they are loaded from a table. Which makes it a lot harder to edit them, for example in order to change the weapons in the mystery box you would need to make a new script your self to access the table.
This is where they add all the weapons in _zm_weapons.gsc
At line 3277:
I don't have much experience with tables in C so I wouldn't know how to change them easily but someone else might.
Title: Re: Changing Weapon Cost?
Post by: Xylozi on October 04, 2016, 07:11:13 am
I've successfully changed the price of the Bowie Knife in my map.
First I created the gamedata/weapons/zm folder structure within my map's folder in the usermaps folder, and added an edited zm_levelcommon_weapons.csv with the price for the Bowie Knife set to 100.
Then in my map's zone file I have added the following:
Title: Re: Changing Weapon Cost?
Post by: Zrokz on October 04, 2016, 08:25:32 pm
I think we can consider this Solved, works perfect for changing any standard gun cost. Thank you so much! Now that dingo wall buy doesn't have to be $5000 anymore =].
For now I just made a copy & edited one of the wall buy pre fabs to dingo
Call of Duty Black Ops III\map_source\_prefabs\zm\zm_core\spawnable_weapon_smg_versatile - Copy