Quick spotlight question

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 14th, 2010, 8:31 am

I want to make a spotlight but it doesn't work like it should. I'm prbably missing something (definately :) ).

The way I try and make one is like this;

- make a light
- make an info_null
- select light and info_null then press w
- select light and give it the following values;

Code: Select all

classname = light
intensity = 1
Radius = 50
fov_outer = 45
fov_inner = 10
exponent = 1
color = well...uhm...red (don't know the exact rgb value)
What am I doing wrong here ?

(p.s. I also tried selecting both and enter the values but that also doesn't seem to work)

Thx in advance

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Quick spotlight question

Post by Rezil » June 14th, 2010, 9:47 am

Code: Select all

key: def
value: light_point_linear
Add these to your light and see if it works.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 14th, 2010, 10:18 am

Ok, thx I'll try it when I get home.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Quick spotlight question

Post by Drofder2004 » June 14th, 2010, 10:39 am

Firstly:

_color not color

(colour is worked out using a simple bit of maths...)
Go to paint/photoshop and get the colour you want.
Get the RedGreenBlue value, Red would be [255 0 0]
Divide each number by 255 to get your "_color" value.
Red being [1 0 0]

Secondly:
When linking the info_null, make sure you select the light FIRST (this makes the light target the info, not the otherway round).

Finally:
http://wiki.modsrepository.com/index.ph ... umentation
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 14th, 2010, 7:32 pm

I also found and followed that link drof, but to no avail. Ok here some screens from what I filled out ;
What am I doing wrong here ?
You do not have the required permissions to view the files attached to this post.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Quick spotlight question

Post by Rezil » June 14th, 2010, 8:00 pm

I want to make a spotlight but it doesn't work like it should.
You said it doesn't work like it should. How DOES it work/does it work at all?
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 15th, 2010, 7:30 am

It looks like the fov_outer, fov_inner and the exponent don't do anything.
In radient it still looks like a normal light (round sphere). You should see the spotlight in radient ...right ? Just like the screenshots in the link drofder posted.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Quick spotlight question

Post by Drofder2004 » June 15th, 2010, 8:10 am

I would suggest a compile check, just in case.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 15th, 2010, 8:39 am

Drofder2004 wrote:I would suggest a compile check, just in case.
When you select the light in radiant you should see the spotlightbeam instead of a normal roundlight ....right ?
If that is the case the compiler has nothing to do with it ?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Quick spotlight question

Post by Drofder2004 » June 15th, 2010, 9:08 am

Its been many years... I don't even think I used the radiant light thingy, always prefered to compile.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Quick spotlight question

Post by Rezil » June 15th, 2010, 9:57 am

<LT>YosemiteSam[NL] wrote: When you select the light in radiant you should see the spotlightbeam instead of a normal roundlight ....right ?
If that is the case the compiler has nothing to do with it ?
Not true, that works only in CoD4 and later because of a new lighting system in Radiant. You have to compile to see your spotlight in CoD2Radiant.

As Drofder said, compile to check.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 15th, 2010, 10:02 am

Aha .. thx.
I'll check when I get home.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Quick spotlight question

Post by Rezil » June 18th, 2010, 11:58 am

So you got this fixed Sam?
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Quick spotlight question

Post by <LT>YosemiteSam[NL] » June 21st, 2010, 7:19 pm

Nope, It didn't work m8.
I put in the values like I posted and compiled but I don't get any light now ?
This is how it looks in radient;
You do not have the required permissions to view the files attached to this post.

User avatar
ConnoR
CJ Worshipper
CJ Worshipper
Posts: 465
Joined: January 2nd, 2010, 7:52 pm
Gamertag: conz0rz
Location: Nottingham, England
Contact:

Re: Quick spotlight question

Post by ConnoR » June 21st, 2010, 7:37 pm

BRIAAAAAAAAAN!
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests