Making Objectives

A Tutorial for Zombie Master

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Bellota points.
  • Post: Give Bellota your thoughts on this Tutorial.
  • Vote: Help Bellota win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

1. Press a button This is the easiest type of objective to accomplish, so lets start here. Whether you want to use a pre-existing model as your button, such as a big panel with a lever, or the elevator button, or the keypad, you'll need to create a brush based entity called "func_button." This entity will fire any output when a player presses "use" on it. You can make it invisible and stick it in front of your chosen model, OR you can apply a texture to it and use it as the visual AND functional button. Let's say you want an objective of your map to be: enter the code into the keypad. You've chosen a model (prop_dynamic) to be your button. Give it a name, like "keypad." Create the brush button (func_button), make it roughly the same size as the keypad prop, apply the invisible texture, and give it a name also, like "b2". Depending on if this is your first objective, you might want the button to start locked. All you need to do this is open the buttons properties, go to "flags" and click "starts locked." The previous objective will have to fire an output at this button to unlock it. An entity involved with the previous objective will have an output that looks like this: My output named: Onpressed Target entities named: b2 Via this input: unlock So bear in mind that that's all an objective is: a series of inputs and outputs. When one objective is activated, it enables the next, usually by unlocking the next button, which is generally the beginning in a chain of events (usually tiny details) that make up the objective. You'll be surprised how many little thigns pop up that need to happen to set up the following objective. They pile on quickly. Back to our button "b2". Let's say this button opens a door that makes way for the next section. You'll have to add an output to open the door, based on the name of the door (lets call it "door1"). You'll add an output to "b2" that looks like this: onpressed; door1; open Another very important output to add to this button is whatever activates the next objective, assuming this is what you want to trigger it, and not another event. Almost any objective is going to involve a button for player interaction purposes as you'll see as we move on, so lets say the next objective is activated by a button named "b3". You need to add an output to "b2" like this: onpressed; b3; unlock You'll probably want to tell players what the next objective is, or let them know what their amazing button pushing skills have won them via some screen text. So lets say you have a "game_text" entity all set up and named "txt1". Add an output to "b2" like this: onpressed; txt1; display Also, you want the keypad to give a visual response to let the player know they've done well. The model "keypad.mdl" found in the directory ".../models/props_lab/keypad.mdl" has two alternate skins that are identical except one makes the screen read "access" and the other "error" while the default skin is blank. To make it read "access" upon pressing the button, add this output to "b2": onpressed; b2; skin with a parameter override of: 1 I think you get the idea at this point. You need to be sure to cover ALL your bases. Don't forget things like beacons or hint textures need to be enabled and disabled at the appropriate times. Only you as the mapper can decide what that time is and simply use your guile to ensure it functions properly. Always test in every way you can think of. If you can imagine it can go wrong, then it probably will. So fix it! Lets move on to a more complicated type of objective.

Posts

  • 7y
    Bellota avatar
    Bellota Offline
    Member Joined 8y
    508 points Ranked 8763rd
    6 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    Posted by Maximum775

    I can't find func_button


    1. Make A Brush.
    2. Ctrl + R to the Brush.
    3 Search func_button on the list
    Hammerheart avatar
    Mantra
    Hammerheart
  • 7y
    Maximum775 avatar
    Maximum775 Offline
    Member Joined 7y
    I can't find func_button
    Bananite
  • 8y
    Bellota avatar
    Bellota Offline
    Member Joined 8y
    508 points Ranked 8763rd
    6 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    Posted by Smish132

    Finnally more ZM tuts, but this could just be calle making buttons >_<

    This is the First part! Just wait for the second part :3
    Hammerheart avatar
    Mantra
    Hammerheart
  • 8y
    Smish132 avatar
    Smish132 Offline
    Member Joined 8y
    138 points Ranked 23260th
    Finnally more ZM tuts, but this could just be calle making buttons >_<
    8-Bit? Hell yeah! avatar
    Mantra
    8-Bit? Hell yeah!

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
LordJeckyll
Writer

Submitter

Bellota avatar
Bellota Offline
Member Joined 8y
508 points Ranked 8763rd
6 medals 1 rare
  • 6 years a member Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon
  • 2 years a member Medal icon
  • 4 years a member Medal icon

Bellota
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Stats

Posts
4
Views
2,606
Date Added
8y

Scores

  • Not yet rated
Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

More from Submitter

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel