Turning Of Lights - With Explosions???

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Turning Of Lights - With Explosions???

Post by Shifty »

In my map "War in a Hall" One of the Collums Blows up - on each Collumn I have a Caged Light would it be possible to turn this 1 light off when the collum blows up Because its a bit daft Blowing up a Bit of Collumn and Still HAving a working light.
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

I would say it's possible! There are tutorials on making working light switches so I guess it would be possible to change the script a bit so that the explosion turns of the light instead.

I haven't tried the light switch myself but people say it works, there is a tutorial about that over at TMT www.modtheater.com (I would have given you the link but when I wrote this I couldn't connect to TMT, site temporary down/slow maybe?)

I don't think the light switch thing actually turns of the light but it changes the color of it to black. Not sure though?!?
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes you can switch off light, although dynamic lighting is very poor. Also, you'll need a custom TIKI for the caged light with custom shaders, as the original uses rgbGen identity whereas you'll need rgbGen lightingSpherical.

Anyway, do a search for 'torch' ;).
Image
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

you could just give the light a targetname and say $light remove

is that correct?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Yup, that should work. Maybe give a trigger_use with setthread "off" and in the script:
off:
$light hide
end

And on:
on:
$light show
end
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

No it will not work. Lights aren't even entities.
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Maybe you could use this in a script:

$light lightradius 0
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Post by Valoche »

Create a script_model object, with the following attributes:
model fx/dummy.tik
targetname mylight

Then in your script:
$mylight 1 1 1 360 // Switch the light on
$mylight 0 0 0 0 // Switch the light off

It's still poor, dynamic lighting, but it works.

Valoche
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

Thx Ill try that
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Valoche wrote: $mylight 1 1 1 360 // Switch the light on
$mylight 0 0 0 0 // Switch the light off
Should be
$mylight light 1 1 1 360 // Switch the light on
$mylight lightoff // Switch the light off
Image
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

What happens if I have a Corona there also can i trun this off? as that would truly give it the effect of being off?
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Give the corona a targetname, for example 'corona'. In your script, type:

$corona hide //--> to hide the corona (not sent to client either)
$corona show //--> show the corona again
Image
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Post by Valoche »

jv_map wrote:
Valoche wrote: $mylight 1 1 1 360 // Switch the light on
$mylight 0 0 0 0 // Switch the light off
Should be
$mylight light 1 1 1 360 // Switch the light on
$mylight lightoff // Switch the light off
Oopsie my fault, used copy/type instead of copy/paste :)

Anyway, that was part of a tutorial I found somewhere on the web, and yes, there were coronas in the tut, too.

Valoche
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

Thank ya i'll try it out - no doubt ill be back for quastions though lol
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
Post Reply