Breakable Light Textures Created 9 years ago2015-07-02 10:51:54 UTC by yash111998 yash111998

Created 9 years ago2015-07-02 10:51:54 UTC by yash111998 yash111998

Posted 9 years ago2015-07-02 10:51:54 UTC Post #326159
So, I was thinking of adding breakable lights to my map(would add a new level of tactics).The very first thing that occurred to me was that I should make the brush with the texlight breakable and I would be done.But it was not so,I did some research and found out that u need to create another light which will behave as a switch for this one.Done.

This time I named my func_breakable entity(the one with the texlight) as "light1",the light entity as light1 and the target on break as light1 but now,the game crashed as soon as I shot at it(it went into an infinite loop most probably).

So finally,I have arrived at this :
A brush with texlight as func_wall_toggle / func_breakable with texlight style=-3.
A light with same name as the brush acting as the switch.
An invisible brush surrounding the the first one as a func_breakable and target as the name of the previous two.

This gives me the desired result but is a pain to clone because then I have to change the name property for the first two and the target for the last.

I was thinking of grouping them and somehow referring to the group name in their properties so that I would need to change only one property per group.But I am unable to do even that.

Is there any better way to achieve the above?? Please suggest.

P.S. I am making a map for CS 1.6
Posted 9 years ago2015-07-02 11:00:36 UTC Post #326160
Hmm. Try the breakable targeting a trigger_relay that in turn triggers the pair. Maybe utilising the Trigger State parameter of the relay (set to Off, perhaps) can get it to work properly.

No promises, but seems worth a shot.
Jessie JessieTrans Rights <3
Posted 9 years ago2015-07-02 11:01:34 UTC Post #326161
perhaps you can reference this map?
http://twhl.info/vault.php?map=1941

copying and renaming entities is a real pain :( so if you can do anything to reduce your entity count, that's best.
Tetsu0 Tetsu0Positive Chaos
Posted 9 years ago2015-07-02 11:03:13 UTC Post #326162
@Jessie.. My current setup works fine,the breakable triggering the pair..... What I was searching for was a method by which I can clone these lights easily or another way to do this which would be clonable easily...... I don't want to custom change the properties of 50X3 entities. :P
Posted 9 years ago2015-07-02 11:12:03 UTC Post #326163
Oh, I see, fair enough. Then, as far as I know, there's no automatic way to rename clones. I could be wrong, though.
Jessie JessieTrans Rights <3
Posted 9 years ago2015-07-02 11:14:16 UTC Post #326164
If this was source, then yes.
unfortunately, this is not source :(
Tetsu0 Tetsu0Positive Chaos
Posted 9 years ago2015-07-02 12:11:12 UTC Post #326166
There might be a better way, but you can do something like this fairly easily using notepad. If you want to keep your grouping, you'll also need Sledge:

1. Open your map in Sledge, and copy the group with everything in it. This will put plain text VMF format onto the clipboard.
2. Paste into Notepad++ or a similar text editor
3. Search/replace the old names with new names (e.g. light1 -> light2, and so on)
4. Copy the text and paste back into Sledge
5. Repeat 3 and 4 for as many copies as you need
6. Save the RMF and you're done

You can do a similar thing in Hammer, but because it doesn't have plain text copy/paste, you'll need to export as .MAP (which has no groups) to get it into notepad.

Sledge's "Paste Special" feature will make entity names unique, but it will not replace the targetname. So alternatively, you can copy you group, paste special, tick the "make entity names unique" box, and create 30 copies or however many you need. You can put an offset in so all the groups don't overlap. After that, you can then rename the "target" value in all the clones.
User posted image
Penguinboy PenguinboyHaha, I died again!
Posted 9 years ago2015-07-02 12:26:28 UTC Post #326167
Thanks PenguinBoy . This sounds better.Is Sledge a hammer alternative?

(I will download it right away)
Posted 9 years ago2015-07-02 12:38:32 UTC Post #326168
Yes. I use it in place of Hammer and I highly recommend it.
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.