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...


3 posters

    Trying to make a boss drop another item and NOT the gold key

    jayngo26
    jayngo26
    Spear of Destiny
    Spear of Destiny


    Male
    Number of posts : 643
    Age : 144
    Location : Random
    Job : Partime Evil Semi-Genius Plotting To Take Over Half The World. Partime Undead Charged With Keeping the Darkness Dark
    Hobbie : Staying Out Of Sunlight
    Message : Wolfenstein:Umbrella Beginnings Episode 2 released! Download now!

    Registration date : 2008-08-09

    Trying to make a boss drop another item and NOT the gold key Empty Trying to make a boss drop another item and NOT the gold key

    Post by jayngo26 Tue Aug 24, 2010 1:17 pm

    I am trying to make the original boss (Hans) drop another item on episode 2 map 8. I do not want him to drop the gold key on this map. Instead I want him to drop boclip2. Here is my code so far:

    WL_STATE.C
    Code:
    case bossobj:
          GivePoints (5000);
          NewState (ob,&s_bossdie1);
          PlaceItemType (bo_key1,tilex,tiley);
           if ((gamestate.mapon + 10*gamestate.episode) == 17 ) // my new code
          {
          PlaceItemType (bo_clip2,tilex,tiley);
          }                                        // new code ends on this line
          break;

    Right now, the boss drops the boclip2, but he ALSO still drops the gold key. How do I get him to NOT drop the gold key on this level?

    Thanks!



    http://jayngoware.com/
    Nexion
    Nexion
    Seasoned Wolfer
    Seasoned Wolfer


    Number of posts : 277
    Age : 111
    Location : Dimension of Anti-Time
    Hobbie : bringing chaos & madness into universe
    Message : Planet N
    Registration date : 2008-02-27

    Trying to make a boss drop another item and NOT the gold key Empty Re: Trying to make a boss drop another item and NOT the gold key

    Post by Nexion Tue Aug 24, 2010 1:37 pm

    You could ask him friendly to keep key and sell it instead. OR you could code some magnetic mircowave standing next to boss in map which sucks in all golden stuff and melts it.

    Code:
    case bossobj:
          GivePoints (1);
          NewState (ob,&s_bossdie1);
          if ((gamestate.mapon + 10*gamestate.episode) == 17 )
          {
          PlaceItemType (bo_clip2,tilex,tiley);
          }
          else
          PlaceItemType (bo_key1,tilex,tiley);
          break;
    jayngo26
    jayngo26
    Spear of Destiny
    Spear of Destiny


    Male
    Number of posts : 643
    Age : 144
    Location : Random
    Job : Partime Evil Semi-Genius Plotting To Take Over Half The World. Partime Undead Charged With Keeping the Darkness Dark
    Hobbie : Staying Out Of Sunlight
    Message : Wolfenstein:Umbrella Beginnings Episode 2 released! Download now!

    Registration date : 2008-08-09

    Trying to make a boss drop another item and NOT the gold key Empty Re: Trying to make a boss drop another item and NOT the gold key

    Post by jayngo26 Tue Aug 24, 2010 1:45 pm

    Thanks. Here's what I just did and it works too...

    Code:
       case bossobj:
          GivePoints (5000);
          NewState (ob,&s_bossdie1);
          if ((gamestate.mapon + 10*gamestate.episode) == 17 )
          {
          PlaceItemType (bo_clip2, tilex, tiley);
          }
       
          else
          {   
          PlaceItemType (bo_key1,tilex,tiley);
          }
          break;



    http://jayngoware.com/
    stathmk
    stathmk
    Veteran
    Veteran


    Male
    Number of posts : 1791
    Age : 44
    Location : Indiana, United States
    Job : fast food worker & wolfensteingoodies.com webmaster
    Hobbie : old games & young dames
    Registration date : 2008-04-08

    Trying to make a boss drop another item and NOT the gold key Empty Other dropped items

    Post by stathmk Wed Aug 25, 2010 6:30 am

    I was playing a mod with mutants and mad scientists. The mad scientists weren’t even bosses. There was code so that the mad scientists died and dropped a keycard or an adrenaline syringe with 1% health.

    I don’t remember if it was in Mario’s Castle or in a mod that I played the same day that the Death Knight was in the elevator and when you shoot him enough times his armor falls off revealing a familiar character. I think I also played a mod where if you shoot the mutants enough times, the arm falls off and/or blood lands on the floor even before he dies. I think that I was playing The Western Wall where blood splatter lands on the floor when you shoot guards.

    Sponsored content


    Trying to make a boss drop another item and NOT the gold key Empty Re: Trying to make a boss drop another item and NOT the gold key

    Post by Sponsored content


      Current date/time is Sun Nov 24, 2024 3:19 am