Welcome, Guest. Please login or register.

Author Topic: [Beginner] Making things change on random.  (Read 5986 times)

Offline Knife

  • Jerker
  • Elder Statesman
    of the Surf
  • *****
  • Posts: 1,511
  • Stay Classy.
    • View Profile
[Beginner] Making things change on random.
« on: August 30, 2009, 07:25:53 AM »
I'm surprised there isn't a tutorial for this, although it is fairly easy. But I (used to) get a lot of people asking how to make things in your map be altered with a random factor.

Don't know what I'm talking about? Take one round for example, your teleport is in one place...next round it's in another place. Follow? Yeahhh, there you go.
Anyways, on to the tutorial. For this tutorial you're going to need a basic knowledge of hammer and it's contents, and maybe a little more if you're wanting to go deeper. But let's not get ahead of ourselves there, Johnny.

In this tutorial I'm going to show you how to make a basic spotlight that changes color each round with no specific order.


Open up your vmf in hammer and create a basic 256x256x256 hollow box.


Add in a spawnpoint and a light(s) and create a brush we're going to use as a pedestal


Create a point_spotlight entity and center it on top of your pedestal.


Add in these parameters to the spotlight, and then go to the flags tab and uncheck "Start On".


Done all that? Good, boring part is over. Create a logic_case and a logic_auto and give your case a name.
Go to the outputs tab of the case and set it up how ever you want similar to mine. In mine my light is going to be colored Red, Green, or Blue.


Finally, go to the outputs tab on your logic_auto and add this single output.


Code: [Select]
OnMapSpawn-->"Case Name"-->PickRandom
All done, not to hard, eh? Hopefully this helps out the beginners out there.
Why so Ryan?

Offline Shadow

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #1 on: August 30, 2009, 08:37:37 AM »
I knew it already, but good tutorial anyway.

SHADOW APPROVES.

Offline spoz

  • Elder Statesman
    of the Surf
  • *****
  • Posts: 1,813
  • WHAT ARE YOU LOOKING AT DICKNOSE?
    • View Profile
    • Line12
Re: [Beginner] Making things change on random.
« Reply #2 on: August 30, 2009, 09:08:14 AM »
Nicely explained for people starting out with logic systems.

SPOZ APPROVES.
Quote
But if u really wanna see a screwed up map take a look at that greatriver awesome 1... freaked the shit out of me... its like a child molestation adventure.....

Offline svbg869

  • SolidSurf Elite
  • Sr. Member
  • ******
  • Posts: 974
  • [insert witty comment hear]
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #3 on: August 30, 2009, 02:44:54 PM »
I JUST WANT TO APPROVE

SVBG869 APPROVES

Offline S.T.A.L.K.E.R.

  • The Sexiest Man "Alive"
  • SolidSurf Elite
  • Elder Statesman
    of the Surf
  • ******
  • Posts: 2,830
  • daddy is home :^)
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #4 on: August 30, 2009, 04:09:25 PM »
RSPOOPDICK APPROVES!

Offline Helix

  • Sr. Member
  • ****
  • Posts: 842
  • ASOT 600!!!
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #5 on: August 30, 2009, 08:16:54 PM »
HELIX APPROVES

Offline Rajan

  • Haiz
  • Sr. Member
  • ****
  • Posts: 445
  • Haiz.
    • View Profile
    • RajanSurf
Re: [Beginner] Making things change on random.
« Reply #6 on: August 31, 2009, 05:44:30 AM »
Rajan APPROVES! xD \


Quote from: Helix
lol that  link told me i liked books. just lol.
Quote from: RazerSurf
Wtf? It isn't anything liying

Offline The-Goose

  • Sr. Member
  • ****
  • Posts: 514
  • the reality of ragers
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #7 on: September 01, 2009, 02:30:50 AM »
GOOSE APPROVES

Quote from: MachINE
So thinking about rainbows was I.
Quote from: I'm charming. (Ryan S)
fuck yeah bjs
4:20 AM - The-Goose | κѕғ: we're rollin a fuckload of blunt

Offline Power-Fusion

  • The Local Nudist
  • Elder Statesman
    of the Surf
  • *****
  • Posts: 1,202
  • Hot Dickings!
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #8 on: September 01, 2009, 03:24:10 AM »
.....
spoz: I like my women how i like my filesystems... FAT and 16

Offline The-Goose

  • Sr. Member
  • ****
  • Posts: 514
  • the reality of ragers
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #9 on: September 01, 2009, 04:06:58 AM »
<a href="http://kilo.naurunappula.com/nn/0/006/202/61971.jpg" target="_blank" class="new_win">http://kilo.naurunappula.com/nn/0/006/202/61971.jpg</a>

Quote from: MachINE
So thinking about rainbows was I.
Quote from: I'm charming. (Ryan S)
fuck yeah bjs
4:20 AM - The-Goose | κѕғ: we're rollin a fuckload of blunt

Offline RazerSurf

  • Elder Statesman
    of the Surf
  • *****
  • Posts: 1,776
  • mapper of surfs
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #10 on: September 01, 2009, 12:26:46 PM »

Offline arroba

  • Sr. Member
  • ****
  • Posts: 593
  • srs business
    • View Profile
Re: [Beginner] Making things change on random.
« Reply #11 on: September 08, 2009, 11:53:04 AM »


DOMO APROVES!!