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

Members Online

»
0 Active | 89 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: neon sign
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Sunday, Aug. 5, 2007 08:35 pm
Below is basically what I want to do. Except I only want blue letters and I want the letters to be displayed as such:
N
O
B
S

How do I make this NOBS neon sign using parts of this script? Where do I put the script? What do I physically need to do in radiant? Thank you.

Here is another option. A script model can be hidden or shown using your script. If it is a dynamic light, the light will go out when it is hidden and come back on when it is shown! Here is an example of a blinking light thread.

CODE
blink_light()
{
blinklight = getent ("blinklight","targetname");
blinklight hide();
wait (1);
blinklight show();
wait (1);
thread blink_light();
}


You can also, use hide() and show() with a trigger to turn the light on and off. I use a blinking light thread to make a neon sign using the red and blue textures in tools -- works great!




CODE
sign()
{
joe_sign = getent ("joe_sign","targetname"); // blue dynamic light script_model
js_on = getent ("js_on","targetname"); // bright letters script_brushmodel
js_off = getent ("js_off","targetname"); // dark letters script_brushmodel

while (1)
{
joe_sign hide(); // blue light off
js_on hide(); // hide the bright letters
js_off show(); // show the dark letter
wait (1.5);
joe_sign show(); // blue light on
js_off hide(); // hide the dark letters
js_on show(); // show the bright letters
wait (1.5);
}
}




--------------------
Tom Trude,
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Aug. 11, 2007 10:39 pm
bump plz
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Saturday, Aug. 11, 2007 11:32 pm
It's just a brush made into a brushmodel, the texture is a custom transparent texture. So make a texture in a graphics program, apply it to a brush, make the brush a brushmodel and your done.

Grassy
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Sunday, Aug. 12, 2007 04:38 am
how can it be just a brush with a texture over it. whats all the code for then.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Sunday, Aug. 12, 2007 06:01 am
you already posted the code yourself.

Make the textures ( bright letters and dark letters ) and place them on script_brushmodels. The dynamic light won't work in CoD, so remove that part of your script for now, there is a trick, but lets take it one step at a time, first get the letters to show and hide.
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Aug. 12, 2007 10:20 am
TheArmy writes...
Quote:
how can it be just a brush with a texture over it. whats all the code for then.


Mate, please don't assume we don't know what we're talking about.
You only have to look at the number of posts we have made and how long we have been around to realise we should know what we are talking about by now.

Some advice for you.
When you ask a question, if you don't understand the responses you get then don't start questioning the validity of those responses.
Better to say, "Sorry, I didn't understand your answer, can you please explain it again in simpler terms?"

Sorry if this seems harsh, but that was the feeling I got from your response. Maybe I'm out of line here but I'm too old to care anymore about diplomacy and fuzzy wuzzy warm words.

Keep at it though, at least you are willing to ask questions in order to learn. [thumbs_up]

Grumpy old Grassy out.... [wave]
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Aug. 12, 2007 01:33 pm
WHC_Grassy writes...
Quote:
TheArmy writes...
Quote:
how can it be just a brush with a texture over it. whats all the code for then.


Mate, please don't assume we don't know what we're talking about.
You only have to look at the number of posts we have made and how long we have been around to realise we should know what we are talking about by now.

Some advice for you.
When you ask a question, if you don't understand the responses you get then don't start questioning the validity of those responses.
Better to say, "Sorry, I didn't understand your answer, can you please explain it again in simpler terms?"

Sorry if this seems harsh, but that was the feeling I got from your response. Maybe I'm out of line here but I'm too old to care anymore about diplomacy and fuzzy wuzzy warm words.

Keep at it though, at least you are willing to ask questions in order to learn. [thumbs_up]

Grumpy old Grassy out.... [wave]




Holy jeez Grassy!!!

Army is just a younger person than you and seriously I read this whole thread and I see absolutely nothing wrong with his statement nor his style. To me, it was given in the same manner that would be taken if the two of you were in the same room at the same time talking man to man.

No one has questioned yours or any one elses style in this thread regardless of the number of posts made by said person.

If you had answered me in that manner things would have been different.

I like you but, yes, I think you crossed a line here that didnt need to be crossed.....

Just standing up for a friend here.

Ray
Share |
TheArmy
General Member
Since: Jun 24, 2006
Posts: 599
Last: Dec 25, 2009
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Monday, Aug. 13, 2007 03:14 am
im sorry for the confusion, but u totally took my post the wrong way. i have the ultimate respect for you guys and would never doubt any of you. it was really just a way of me saying that i didnt understand. you guys have been so helpful to me and whenever I have had a problem you guys have been there for me. I only wish I could somehow pay you all back for all the help you have given me. In addition I realize i have been making many posts requiring scripting help lately. I am terrible at scripting, but am trying o learn. I appreciate all of you who have put up with me.
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Tuesday, Aug. 14, 2007 02:24 pm
Yeah I admit it was a little over the top, I best stay away from the forums when I'm in a bad mood. [rolleyes]

Just a tip, most of your questions have already been asked many many times in these forums, all you need to do is use keywords in the search section and you will find your answers.
Share |
{GITS}Cleaner
General Member
Since: May 23, 2006
Posts: 778
Last: Apr 23, 2011
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Monday, Aug. 27, 2007 09:24 am
Quote:

Caretaker:

Make the textures ( bright letters and dark letters ) and place them on script_brushmodels.


Do you make both the bright and dark letters custom trasnparent textures, as posted by Grassy?
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»