Thunderbolts and Lightning

bobotype

L1: Registered
Sep 24, 2014
39
5
Twofold question.
What would be a good way to add cheap thunder booms, and lightning flashes, to my map without dropping the FPS or whatever too much?
Thank you in advance
:)
 

ibex

aa
Sep 1, 2013
308
528
Might not be exactly what you are looking for, but I think I remember doomsday having a white light flash after the rocket explodes.
---
I'm finding an env_screenoverlay, with two logic relays that fire to the env_screenoverlay as well as an env_tonemap_controller. What I'm assuming is happening is that they are using the tonemap_controller to do the fade in and out to the white screenoverlay...so I don't know if it will be fast enough for a lightning flash, but you could probably try (the current duration is something like 0.2 seconds, so you could reduce by half to made achieve the affect you are looking for).
There is a lot of particularly technical stuff in there that I don't fully understand, but if you have time you can try playing with the settings.
These can again be found in sd_doomsday.
---
As for the sound, I bet there is some sound file around somewhere of thunder that you'd just set to play at whatever time after the lightning flash through another logic_relay. (Come to think of it there is probably something from HL2 (so just checking vdc found some HL2 lightning sprites and sounds, but that again is HL2: https://developer.valvesoftware.com/wiki/Lightning))
 

henke37

aa
Sep 23, 2011
2,075
515
Thundermountain does thunder by putting the sound generating entity on a tracktrain that circles the map.
 

bobotype

L1: Registered
Sep 24, 2014
39
5
Might not be exactly what you are looking for, but I think I remember doomsday having a white light flash after the rocket explodes.
---
I'm finding an env_screenoverlay, with two logic relays that fire to the env_screenoverlay as well as an env_tonemap_controller. What I'm assuming is happening is that they are using the tonemap_controller to do the fade in and out to the white screenoverlay...so I don't know if it will be fast enough for a lightning flash, but you could probably try (the current duration is something like 0.2 seconds, so you could reduce by half to made achieve the affect you are looking for).
There is a lot of particularly technical stuff in there that I don't fully understand, but if you have time you can try playing with the settings.
These can again be found in sd_doomsday.
---
As for the sound, I bet there is some sound file around somewhere of thunder that you'd just set to play at whatever time after the lightning flash through another logic_relay. (Come to think of it there is probably something from HL2 (so just checking vdc found some HL2 lightning sprites and sounds, but that again is HL2: https://developer.valvesoftware.com/wiki/Lightning))

Thanks man, that's quite informative. I'll try and find the thunder file/.

Thundermountain does thunder by putting the sound generating entity on a tracktrain that circles the map.

That amuses me and you gave me the idea of getting around making a track by triggering the thunder when a point is captured [or when someone mentions Frau Blucher], thank you :)