Page 1 of 1
Scripting a light switch?
Posted: Mon Oct 22, 2007 12:38 pm
by bumlove
Is there any way to have a switch that loads a secondary light map for a period of time?
the idea behind this is for attack and defense based games (single bomb etc)
so the attackers can kill the lights just to raise the tension a bit plus some light effects don't show in good lighting conditions
Posted: Mon Oct 22, 2007 1:13 pm
by CaptainPoopface
I'm no expert at scripting, but you might be able to increase the size of the black bars that are appended for cinematic mode. Perhaps you could make them span the entire screen (in the [hudg] tag), then give them a very slow fade time with a script. It's been a long time since I looked at the available functions for scripting, so I don't know if that's possible.
Another option is to darken the lightmap entirely, and use only lamps and point light sources for light. You could place mach doors around each light and link them all to a single switch so that when it's pressed, the mach doors obscure all the lights for a period of time.
You could also spawn weightless plasma grenades through the itmc and use them as your light source. Try swapping their [ligh] with something brighter or bigger. Then a person could dim the lights by shooting them out. Or you could spawn invisible floating fusion cores near the lights on the ceiling via the bloc palette so that they float. When someone shoots one light out, it could trigger a domino explosion of fusion cores that blows out all the lights. Since they spawn through the bloc palette though, the cores would not come back, so a team could only take out the lights once per round. Then the lights would respawn through the itmc.
It would be a hassle to set up for any but very small maps or indoor bases.
I'd like to see it if you pull it off though.
Why don't you ever post your bizarro mods?
Posted: Mon Oct 22, 2007 10:09 pm
by bumlove
thank you Cpt, (not merely think outside the box) as always dancing around and around the box jumping inside it so the box thinks that you're thinking inside and then escaping whooping like a toddler to have a good think in the 5th dimension so the box has no idea where you are.
I'm going to look into the "load secondary bsp script" to see if that can do the job as for releasing, the mod I'm working on now will be my first release and it will contain all the balanced crazy the the scnr tag will allow before breaking then perhaps just a bit more so it still loads but is defiantly beaten under the weight of crazy
just to share some crazy have you thought about adding your grapple gun effect to the warthog horn and perhaps the wraith boost
*edit*
I think I have this one almost worked out as you said darken the lightmap right down and use lamps and such as sources of light but make these lamps (blocs) script objects so a script can be made to destroy them and replace them with the lights with the flicker I want and because its scripts they can reset to normal after a time
If anyone can think of a better way please post up