Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Flashing Lights in COD?
Nightmare_377
General Member
Since: Aug 19, 2005
Posts: 13
Last: May 12, 2007
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Jan. 23, 2006 08:55 pm
Hey, I was wondering if it was possible to make flashing lights in CoD. If its possible can you explain to me how to do it?

Thanks alot
Nightmare,
Share |
={W}=DEVIL
General Member
Since: Aug 23, 2004
Posts: 1670
Last: Dec 14, 2007
[view latest posts]
Level 8
Category: CoD Mapping
Posted: Monday, Jan. 23, 2006 09:05 pm
define flashing lights. Do you want real lights that cast shadows to be turned on and off constantly? Do you want lights to be flickering? We need a little more info, as the subject matter regarding scripted light animations in CoD is very complex.

The only controlable light tutorial I know of was made by Grassy (a genius in the making) and can be found here:

http://www.modsonline.com/Tutorials-read-292.html


that's for player controlled lights. You'd have to ask him about making scripted flashing lights.
Share |
Nightmare_377
General Member
Since: Aug 19, 2005
Posts: 13
Last: May 12, 2007
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Jan. 23, 2006 09:11 pm
I would like strobe lights that would flash on and off constantly like in a nightclub or dance room. Thanks for responding.
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Tuesday, Jan. 24, 2006 01:38 am
in the early days i tried scripting an fx lightsource as dynamic lighting - and found that in order to give off enough light to be visible (create light) there were ... side effects...like glowing brushes

you can however use them for effect lighting - but as for creating a light source....not so good

i believe i put up a stoplight tutorial by valoche...i think that was who did it first

[angryalien]
Share |
BR3NTB
General Member
Since: Jun 20, 2004
Posts: 893
Last: Mar 3, 2006
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Tuesday, Jan. 24, 2006 06:29 am
Well the fact that we can turn lights on and off manually..

Thanks WHC_Grassy! Excellent Work

We can sotra make blinking lights.
Strobe effect is hard to get cause the light needs time to show up in the level.
So I ended up with a flashing light.
I did it in SP but it can also be done in MP.

Do This.

1/ Put a script_model for the on light

targetname:lightonmodel

2/ Put a script_model for the off light

targetname:lightoffmodel

3/Put s blank script_model for the light

targetname:light

I Put all the entites in the same space in the map.

Then I used this script.

[smokin]
Code:
main()
{
maps\_load_gmi::main();
strobe_off_handler();
}




strobe_off_handler()
{ 
wait .2;// This number controls the Blinking
level.dist = 1000;
lights = getent ("light","targetname"); 
distdown = 0 - level.dist;
temp1 = spawn ("script_origin", lights.origin + (0, 0, distdown));
lights moveto (temp1.origin,0.1,0.1,0);
temp1 delete();
lightoff = getent ("lightoffmodel","targetname"); 
lightoff show();
lighton = getent ("lightonmodel","targetname"); 
lighton hide();
thread strobe_on_handler();
}

strobe_on_handler()
{
wait .2; // This number controls the Blinking
level.dist = 1000;
lights = getent("light","targetname");  
distup = 0 + level.dist;
temp2 = spawn ("script_origin", lights.origin + (0, 0, distup));
lights moveto (temp2.origin,0.1,0.1,0);
temp2 delete();
lighton = getent ("lightonmodel","targetname"); 
lighton show();
lightoff = getent ("lightoffmodel","targetname"); 
lightoff hide();
thread strobe_off_handler();
}



Im sure this will help you out some way. Enjoy Dudes.

Once again "WHC_Grassy" Great work Man
[smokin]

OH yea almost forgot.
I LOVE MAPPING/SCRIPTING Heh Heh


edited on Jan. 24, 2006 01:32 am by ßŔ3NT
Share |
Nightmare_377
General Member
Since: Aug 19, 2005
Posts: 13
Last: May 12, 2007
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Thursday, Jan. 26, 2006 12:11 am
Thank you so much brent!
Share |
Horseman
General Member
Since: May 12, 2005
Posts: 99
Last: Apr 20, 2011
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Wednesday, Mar. 1, 2006 04:08 am
BR3NT -

If you would be so kind...
Could you find the time to slap together a 'sample' of this ?
Id love to dissect it and see how it works.
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Wednesday, Mar. 1, 2006 04:04 pm
take a look Here

[angryalien]
Share |
DemonSlayer
General Member
Since: Mar 12, 2006
Posts: 73
Last: Jan 21, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Sunday, Dec. 31, 2006 09:45 pm
Hey Guys

Is there a way of changing the color of these lights. Ive tried all the Normal by pressing k and adding lines in the entities box. What I am after is to have a flashing green light that lights up the floor area

I can get a static green colored light on the floor but the lamp stays white and the shadow doesnt flash.


Thanks Jon
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Sunday, Dec. 31, 2006 10:28 pm
StrYdeR writes...
Quote:
take a look Here



Try downloading the Dynamic Lights Sample Map from the link above in the StrYdeR's post. See how it was done. You might need to make your own FX.

Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»