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


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

    Share

    jayngo26
    Spear of Destiny
    Spear of Destiny

    Male
    Number of posts : 643
    Age : 136
    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

    Post by jayngo26 on 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
    Bring em' On!
    Bring em' On!

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

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

    Post by Nexion on 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
    Spear of Destiny
    Spear of Destiny

    Male
    Number of posts : 643
    Age : 136
    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

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

    Post by jayngo26 on 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
    Hardcore Wolfer
    Hardcore Wolfer

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

    Other dropped items

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

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

    I dont remember if it was in Marios 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

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

    Post by Sponsored content Today at 10:05 am


      Current date/time is Thu Dec 08, 2016 10:05 am