| Author |
Topic: Adding weapons to CAC |
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
|
|
|
Category: CoD4 Scripting Posted: Monday, Mar. 22, 2010 11:00 pm |
 |
DemonSeed writes...Quote: Those are all the right files, and are exactly the same ones I edited to get my custom weapons and perks ingame.
Now, lets ask some questions so that we can determine where the problem starts:
1. do they show on the menu at all? Even if they show but are locked, are they there but unavailable? Because if they are showing on the menu, then the problem lies in unlocking them rather than in them not showing at all.
2. How have you entered the stat in statstable.csv? Does the weapon precache at all via _weapons.gsc? Can you spoof it and use giveWeapon() and get the weapon in game?
1. No they do not show up at all. Perhaps my statsTable entry is missing something because I only entered 3 fields worth of data because they don't have attachments or camo etc. Now that I think about it, I didn't add them to the rankTable anywhere..
2. Yes they get precached fine and I can give them and use them no problem.
|
 |
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
|
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
|
|
|
Category: CoD4 Scripting Posted: Tuesday, Mar. 23, 2010 01:48 am |
 |
What I just did was add two incudes to the weaponinfo.menu in order to get those .inc's compiled.
Code:
#include "ui_mp/cac.inc"
#include "ui_mp/cac_ingame.inc"
Now when I compile I get the following errors:
Code:
Menu load error: ui_mp\cac.inc, line 24: expected float but found COLOR_FOCUSED
Menu load error: ui_mp\cac.inc, line 24: couldn't parse menu keyword focuscolor
Problem is that if I add one of the other menus like suggested I run into the menu limit.. ugh. |
 |
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
Category: CoD4 Scripting Posted: Tuesday, Mar. 23, 2010 02:03 am |
 |
Never thought of adding the .inc files like that. It might get around the problem of not being able to compile more than 1 cac menu.
However, the reason it is returning the errors is because you need to include common_macro.inc as well.
Try this at the very end of weaponinfo.menu:
Code: #include "mp_ui/commmon_macro.inc"
{
#include "mp_ui/cac.inc"
}
You wont need to include cac_ingame.inc as that is called in cac.inc.
I dont know if the above code will work at the end of the file, but if it doesnt it will only be a question of where you put it, so just try it in different locations in the file. |
 |
|
|
|
|
|
| deltaonexxxx |
General Member Since: Apr 4, 2010 Posts: 1 Last: Apr 4, 2010 [view latest posts] |
|
|
|
Category: CoD4 Scripting Posted: Sunday, Apr. 4, 2010 11:44 pm |
 |
DemonSeed writes...Quote: Those are all the right files, and are exactly the same ones I edited to get my custom weapons and perks ingame.
Now, lets ask some questions so that we can determine where the problem starts:
1. do they show on the menu at all? Even if they show but are locked, are they there but unavailable? Because if they are showing on the menu, then the problem lies in unlocking them rather than in them not showing at all.
2. How have you entered the stat in statstable.csv? Does the weapon precache at all via _weapons.gsc? Can you spoof it and use giveWeapon() and get the weapon in game?
well just wanted some help ? wich mods do you have and
can you help me And i can pay you to help me email.oskar.300@hotmail.com or skype deltaonexxx iam looking for a moder how can help my Makeing a mod for me i WILL PAY $$$$ |
 |
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|