Breakable Lights

Breakable Lights can add alot to the experience of the player, and can also boost your visuals a ton.


How to Create a Breakable Light (MODELS) One way to create a breakable light is by placing two dynamic light props ("cagelighton", "cagelightoff"), and adding corresponding entities, this however long is the best method for creating a breakable light.

You start with your two dynamic props an a light. Name them the following;

light1on (propdynamic light on) light1off (propdynamic light off) light1 (light)

Now that you have your two models, place them in the EXACT same area (otherwise this won't work). Now create a brush that surrounds the light. Texture it with toolsnodraw and set it to the funcbreakable entity. Now create a logicauto entity and add an output of the following nature;

My output named: OnMapSpawn Target entities named: light1_off Via this input: TurnOff

Now go back to your func_breakable and add the following outputs;

My output named: OnBreak Target entities named: light1_on Via this input: TurnOff

My output named: OnBreak Target entities named: light1_off Via this input: TurnOn

My output named: OnBreak Target entities named: light1 Via this input: TurnOff

And your done! Congratulations, you've made your first model based breakable light.


How to Create a Breakable Light (BRUSH) Another way to create a breakable light is to use brushes. However it is ineffective, at times you can't find particular models and it makes it easier.

You start by creating your light brush (texture it with lights/white01) and making it a funcwalltoggle, do likewise with another brush only texture it with black. Now create a light entity that corresponds with them. Name the new entities like such;

light1on (funcwalltoggle white brush) light1off (funcwalltoggle black brush) light1 (light entity)

Now that you have your two brushes, place them in the EXACT same area (otherwise this won't work). Now create a brush that surrounds the light. Texture it with toolsnodraw and set it to the funcbreakable entity. Now create a logicauto entity and add an output of the following nature;

My output named: OnMapSpawn Target entities named: light1_off Via this input: TurnOff

Now go back to your func_breakable and add the following outputs;

My output named: OnBreak Target entities named: light1_on Via this input: TurnOff

My output named: OnBreak Target entities named: light1_off Via this input: TurnOn

My output named: OnBreak Target entities named: light1 Via this input: TurnOff

And your done! Congratulations, you've made your first brush based breakable light.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Plantebak's Levels
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    Pros: 9/10 Cons: - Improvements: all I can think of is the reason why you do something, and what a certain thing does so its not simply copying but you can also learn something from it. keep up the good work :)

    Bananite
  • Mr_Lobo's Levels
    • P2: Drudge
      Points: 1,107
    • C1: Member
    • A5: Veteran
      Account Age: 6 years
    Posted 5 years ago

    Thank you for this :)

    Hello, I am in English.
  • akMan's Levels
    • P2: Drudge
      Points: 2,489
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    Nice tutorial. It was easy to understand. Good job.

    User Title
    Real men use Scouts.

Credits

Submitter
ComicazieSeth's Levels
  • P1: Beggar
    Points: 972
  • C1: Member
  • A6: Elder
    Account Age: 6 years
ComicazieSeth (Creator/Co-creator)
Authors
n/a
n/a

Rating

9.5/10
Based off 2 rating(s)

Additional Info

Genre
Other/Misc
Difficulty Level
Intermediate

Stats

Post Count
4
ViewCount
3,234
Date Added
6 years ago
Date Modified
2 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share