How do I use the newer 48 slot weapon system? - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: How do I use the newer 48 slot weapon system? (/showthread.php?tid=2930) |
How do I use the newer 48 slot weapon system? - May Epper - 04-19-2012 qcsrc / common / items.qh http://git.xonotic.org/?p=xonotic/xonotic-data.pk3dir.git;a=blob;f=qcsrc/common/items.qh;h=5a39d2148c045b1d155250cf8ae71432adbab85a;hb=HEAD I enabled the idef'd code here: Code: 121 #else And defined STAT_WEAPONS2 as some number (is this correct?) in qcsrc / common / constants.qh http://git.xonotic.org/?p=xonotic/xonotic-data.pk3dir.git;a=blob;f=qcsrc/common/constants.qh;h=e70a83c391d7b992ce0091e91efc89504fa31c4d;hb=HEAD Compiled fine. Runs fine, untill I add the 25th weapon to compile in, or so. Then I get a crash in the quakeC. So it seems, I guess, I have to add a macro to the 25th and above weapons I guess. What would that be? Please don't ask why. Trying to test this if you need an answer to "why would you want to add more weapons". RE: How do I use the newer 48 slot weapon system? - Mr. Bougo - 04-20-2012 "a crash", that's not very specific. Care to give more details about the crash? In case of a segfault, do you know how to do a gdb backtrace? |