Wolf3d Haven Forum

Please log in or register. Smile
Wolf3d Haven Forum

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


    A question regarding mapping with ChaosEdit

    Share

    TheLoneSurvivor
    Wolf3d n00b
    Wolf3d n00b

    Male
    Number of posts : 5
    Age : 14
    Registration date : 2015-08-11

    A question regarding mapping with ChaosEdit

    Post by TheLoneSurvivor on Tue Aug 11, 2015 1:32 pm

    I am planning on adding weapons to my Wolf4SDL mod, but I do not know how to add a custom item into ChaosEdit. I am able to code the item in, but not add it to chaosedit.
    Basically, after I add an item to the game, how do I get it into ChaosEdit?

    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer

    Male
    Number of posts : 1252
    Age : 25
    Registration date : 2007-03-26

    Re: A question regarding mapping with ChaosEdit

    Post by ronwolf1705 on Tue Aug 11, 2015 5:04 pm

    Go to the sprites tab. Assuming you added a new item after the last sprite (the chaingun firing), go to that last sprite and then click on the icon that has a plus on it. This gives you a blank image, after which you can import your sprite into that place. Hope this helps! Smile




    TheLoneSurvivor
    Wolf3d n00b
    Wolf3d n00b

    Male
    Number of posts : 5
    Age : 14
    Registration date : 2015-08-11

    Re: A question regarding mapping with ChaosEdit

    Post by TheLoneSurvivor on Tue Aug 11, 2015 5:30 pm

    @ronwolf1705 wrote:Go to the sprites tab. Assuming you added a new item after the last sprite (the chaingun firing), go to that last sprite and then click on the icon that has a plus on it. This gives you a blank image, after which you can import your sprite into that place. Hope this helps! Smile
    I know how to add the sprites, but how do I place the weapon in the map?

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

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

    Re: A question regarding mapping with ChaosEdit

    Post by Officer-Michael John on Tue Aug 11, 2015 9:40 pm

    You adding new static object (weapon) with code change. You found a tutorial:http://diehardwolfers.areyep.com/viewtopic.php?t=3203 (WL_GAME.CPP) and http://diehardwolfers.areyep.com/viewtopic.php?t=3870#45911 (WL_ACT1.CPP and WL_DEF.H) or
             case 88: 
             case 89: 
                SpawnStatic(x,y,tile-23); 
                break; 

             case 100: 
             case 101:                                 // etc. 
                SpawnStatic(x,y,tile-33); 
                break;



    case 88: 
             case 89: 
                SpawnStatic(x,y,tile-23); 
                break; 

             case 1: 
             case 2: 
    ...etc 
             case 18: 
                SpawnStatic(x,y,tile+66); 
                break;
     

             case 100: 
             case 101: 
    ...etc 
             case 107: 
                SpawnStatic(x,y,tile-5); 
                break;
     

             case 260: 
             case 261: 
    ...etc 
                SpawnStatic(x,y,tile-158) 
                break;




    See how object 89 is 66, so the next one will be 67? 

    case 23-23=0, case 89-23=66, case 100-33=67 or case 1+66=67, case 100-5=67+18, etc.

    Sponsored content

    Re: A question regarding mapping with ChaosEdit

    Post by Sponsored content Today at 2:31 am


      Current date/time is Mon Dec 05, 2016 2:31 am