Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    (help) Problems with code code changes in my mod

    Officer-Michael John
    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer


    Male
    Number of posts : 332
    Age : 26
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    (help) Problems with code code changes in my mod Empty (help) Problems with code code changes in my mod

    Post by Officer-Michael John Wed Apr 06, 2016 9:41 am

    I probaly adding the new features in my mod, but no good.

    1.,Experimental Chemical as in The Lost Relic:

    WL_AGENT.CPP:

    Code:
           case    bo_gibs2:
                if (gamestate.health == 100)
                    return;

                SD_PlaySound (HEARTBEATSND);
                HealSelf (-16);  
                {  
                if (gamestate.health > 55)
                    return;
                    
                SD_PlaySound (HEARTBEATSND);
                HealSelf (2);                      
                }
                break;


    2.,Gun reload as in Shadow Genesis:

    WL_FOREIGN.H:

    Code:
    #define STR_RELOAD "Press a 1 Keyboard for Ammo"

    WL_AGENT.CPP:

    Code:
           case    bo_reload:
                if (buttonstate[bt_use] && !buttonheld[bt_use])
                {
                    buttonheld[bt_use] = true;
                }
                else
                {            
                if (Keyboard[sc_1] && gamestate.ammo);
                }
                {  
                if (gamestate.ammo == 99)
                    return;
                        
                SD_PlaySound (GETAMMOSND);    
                GiveAmmo (25);
                
            ClearMemory ();
            CA_CacheGrChunk (STARTFONT + 1);
            ClearSplitVWB ();

            Message (STR_RELOAD "\n");

            UNCACHEGRCHUNK (STARTFONT + 1);
            IN_ClearKeysDown ();
            IN_Ack ();

            if (viewsize < 17)
                DrawPlayBorder ();
        }            
                break;    

    3.,And I like adding a Team soldier and for BJ help the Nazis killing as in Operation Body Count.

      Current date/time is Mon Oct 14, 2024 11:23 am