MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
IvanFilip [Downl]
Tally [Forum]
-|HR|-STING [Tutor]
INSANE{H|S} [Forum]
zelimper [Forum]
lazygit [Forum]
Sgt.Rampage [Today]
joemax [Downl]
Dugynight [Forum]
techno2sl [Secti]
SparkyMcSp... [Forum]
Sevenz [Forum]
amishthunder [Forum]
Slayer2746 [Today]
*UWS*KILL_... [Forum]

15 Members and 14 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Monday, Dec. 1st
A message from foyleman
Sunday, Nov. 30th
MODSonair 156 Live
Friday, Nov. 28th
MODSonair Episode 155
Wednesday, Nov. 26th
MODSonair Forum Buttons
Monday, Nov. 24th
Holiday Gift Guide 2008 - PC
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 29.89%
Multiplayer 62.07%
WHAT!? The tools are out? 8.05%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Appreciation
MODSonline.. Posts: (3) Views: (23) by Welshy
Left 4 Dead SDK?
Left 4 Dead Leve.. Posts: (7) Views: (37) by Welshy
Inner/Outer Radius Size
CoD:WW Level Des.. Posts: (5) Views: (57) by [-X-]FriedCoD
A message from foyleman
In The News.. Posts: (41) Views: (217) by foyleman
Google 468 Banner Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com Forums

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD 4 Level Design
CoD 4 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page
subscribe
Author Topic: Moving a light entity?
zeroy
General Member
Since: Nov 26, 2007
Posts: 204
Last: Dec 2, 2008
[view latest posts]
Level 4
Category: CoD 4 Level Design
Posted: Monday, Sep. 8, 2008 01:07 pm
mace_mr writes...
Quote:
I don't think "moving" the lights are your issue...I'm using moving lights to acheive a blinking effect. What you may run into is the fact that when the reflections are generated, the starting position of the light is used. For this reason, I had to set all my lights to where they were going to be "on" in order to have lighting. When they're moved to the off position, the engine properly recasts. But place them in map where they would be in off position then move them to on, and the lights do not interact with the environment.

Maybe you could go into more detail as to the effect that you are trying to acheive?


Well if you have managed to create moving light entities i wouldl like (and other for sure) to know what properties you are applying to them. I too have a little Flicker script but no luck :(

Ideally i want to move up and down (to switch on/off) a primary light (with a info>null) and this using a trigger.

.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1090
Last: Dec 2, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Monday, Sep. 8, 2008 01:15 pm
cant script_models/origins make light in CoD4? they could in uo :o
zeroy
General Member
Since: Nov 26, 2007
Posts: 204
Last: Dec 2, 2008
[view latest posts]
Level 4
Category: CoD 4 Level Design
Posted: Monday, Sep. 8, 2008 01:19 pm
.KiLL3R. writes...
Quote:
cant script_models/origins make light in CoD4? they could in uo :o


I dont think so .. I tried quickly yesterday but no luck ... anyway i couldnt have a primary script_origin i dont think!
zeroy
General Member
Since: Nov 26, 2007
Posts: 204
Last: Dec 2, 2008
[view latest posts]
Level 4
Category: CoD 4 Level Design
Posted: Monday, Sep. 8, 2008 04:00 pm
Shadow caster script_brushmodel + model replacement works perfect!

ON:




Off:




I'll post the code once all is checked for multiples swiches.
PoSSe
General Member
Since: Jan 23, 2006
Posts: 80
Last: Sep 15, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Thursday, Sep. 11, 2008 01:11 am
OLD_MAN_WITH_GUN writes...
Quote:
PoSSe writes...
Quote:
The elevator has a light that moves with it. I had to resize and retexture the elevator to fit my map.
Where do you see a moving light in this map?
The light will be, where it was placed, all the time (it don't move).
Check it.
If you go up with the elevator, half the way the playermodel becomes dark (coz. it moves out of the light).

That indicates, that the light entity don't move with the elevator.
Light entities can't be moved.



I look at the ceiling when I get in the elevator an see the light on it. I then move the elevator up and at all times the light is on the ceiling. So, it looks to me like it travels with the elevator. Besides the he has it as a targetname in the script to move it.
Hey if its not moving that one good illusion.
zeroy
General Member
Since: Nov 26, 2007
Posts: 204
Last: Dec 2, 2008
[view latest posts]
Level 4
Category: CoD 4 Level Design
Posted: Thursday, Sep. 11, 2008 03:47 am
Indeed PoSSe, there is a moving Primary light!!



I shall review my method but for a fixed light it is better imo to move a brush on the light.
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 750
Last: Dec 1, 2008
[view latest posts]
Level 6
Category: CoD 4 Level Design
Posted: Thursday, Sep. 11, 2008 10:25 am
PoSSe writes...
Quote:
I look at the ceiling when I get in the elevator an see the light on it. I then move the elevator up and at all times the light is on the ceiling.
Don't look on the ceiling (it's an illusion, indeed). The light reflection at the ceiling is compiled in the map (and won't change if the ceiling moves). Look at the playermodel. When you move up, at a certain point the light comes from the bottom. If it would move, the light ever would come from the top (and never from the bottom).

Test it by your own. Change the primary light to a non primary standard light and remove all moving commands for the lamp in the gsc. file.
Then compile the map and check the lighting on the ceiling. Nothing will be changed to previous version with primary_light and moving commands for the lamp.
Restricted Access Restricted Access
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
The Firing Box
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
Frag Universe
XoXide
modbase.be
Ask About
Advertising
Friends
Great Gamer
Canada Kicks Ass Clan
The Clan Database
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware