View Single Post
Old 12-18-2008, 10:35 PM   #99
DeeperThought

DeeperThought's Avatar
Re: EDuke32 snapshot thread
Code:
case CON_IFPINVENTORY:
    {
        insptr++;
        j = 0;
        switch (*insptr++)
        {
        case GET_STEROIDS:
            if (g_player[g_p].ps->steroids_amount != *insptr)
                j = 1;
            break;
        case GET_SHIELD:
            if (g_player[g_p].ps->shield_amount != g_player[g_p].ps->max_shield_amount)
                j = 1;
            break;
        case GET_SCUBA:
            if (g_player[g_p].ps->scuba_amount != *insptr) j = 1;
            break;
ifpinventory GET_SHIELD is hardcoded to ignore the value you put in and use the max shield amount. I guess this bug probably goes back to the original source, but if it doesn't it should definitely be fixed.

It messed me up because I wanted to do an inventory hack using the shield for a mod that uses only 1.5 CON commands.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline