Find a randomly spawn item

Hey Bro: 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?

Become a Bananite

Already a Bananite? Login

2. Randomly spawning items

You will need:

a. func_button (name: button)

b. prop_dynamic (name: keys)

c. logic_case (name: case)

d. info_beacon (you CAN use a func_brush w/redbox texture, but its more complicated) (name: hint)

e. point_teleport (one for each possible item spawn point) (name: T1, T2, T3, etc.) Set the "entity to teleport" in the "class info" tab to "keys" for each of these.

Place your keys somewhere within the map that is unreachable by players. Wrap the button brush around them, shaped to roughly the same size, but keep it rectangular/square in shape. Place the logic_case entity with these two entities just for easy access. Place the info beacon on top of the button (if you want people to find this item VERY easily). Place each of your teleport entities in the map where you would like the item to possibly spawn. Let's say your previous objective, a hold and hack, is what enables this objective. That logic timer would need an output which reads:

ontimer; case; pickrandom

Now fill out the outputs accordingly:

--logic_case:

onCase01; T1; teleport

onCase02; T2; teleport

onCase03; T3; teleport

etc.

--func_button:

onpressed; button; kill

onpressed; nextobjectivebutton; unlock

onpressed; nextobjectivehint; enable

onpressed; keys; kill

onpressed; hint; TurnOff

And that's really all there is to it. The prop_dynamic, the beacons/hints, and the teleports are all passive elements to these objectives. They are controlled by the aggressive entity's: func_button and logic_case. They function in response to an output, and don't need to fire any direct outputs, unless of course you want them to for your own purposes. Again, these are the nuts and bolts of basic objective system elements, and with creativity and thought can be integrated into more dynamic and complicated systems.

Comments

  • Bellota avatar
    Bellota Offline
    Member Joined 7 years ago
    478 points Ranked 8099th
    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
    Report post
    7 years ago:
    Posted by zeiser12

    Make a tutorial about like how to make someone needing to pick up a valve attach it, turn it and a door opens and locks it self when it is completely open, i think i can figure that out bu-t just something to make your next tutorial about :) but great tut anywayz ill approve


    Thanks you! ill make that tutorial ;)
    Hammerheart avatar
    Mantra
    Hammerheart
  • zeiser12 avatar
    zeiser12 Offline
    Member Joined 8 years ago
    Report post
    7 years ago:
    Make a tutorial about like how to make someone needing to pick up a valve attach it, turn it and a door opens and locks it self when it is completely open, i think i can figure that out bu-t just something to make your next tutorial about :) but great tut anywayz ill approve

    7.7/10

    Mess with the best, die like t

Share

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

More embeddable images

Bookmark and Share

Credits

Key Authors
LordJeckyll
Writer

Submitter

Bellota avatar
Bellota Offline
Member Joined 7 years ago
478 points Ranked 8099th
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
Send a Private Message to the submitter

Category

Details

Genre
Mapping
Difficulty Level
Intermediate Difficulty

Stats

Posts
2
Views
2,491
Date Added
7 years ago
Jan 25 2010 @ 6:39pm UTC
Date Modified
4 years ago
Jan 5 2013 @ 1:11am UTC

Rating

7.7
Ratings
1

Ratings Breakdown

CriterionAvg.VotesRange
Overall 7.7 1 -

More Tutorials from Bellota

WiPs by Bellota