FX's?

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

Moderator: Core Staff

Post Reply
HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

FX's?

Post by HavoC » December 6th, 2006, 2:08 am

I've seen people use fx's in there scripting and stuff but idk where they located how to see them/ test them? and how the gsc has to look if u have to script for it. thx

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

Post by Drofder2004 » December 6th, 2006, 3:14 am

Open up any map that contains some FX, now in the maps gsc file (maps\mp\mapname.gsc), you will see a line that will look something like the following...

Code: Select all

thread maps\mp\_fx::init();
Basically that tells the server to run the "_fx.gsc" (which will also be found with the map gsc).
Open up the "_fx.gsc" and you will see things such as...

precacheFX("fxname");
playFX("fx",origin);

Take a look in those folder and you will certainly be on your way to understanding.
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
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » December 6th, 2006, 3:38 am

thats exactly how I did it for my map :)
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

FX's?

Post by HavoC » December 6th, 2006, 1:08 pm

ok, thx i see some fx's. ill try my best :)

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

fx's?

Post by HavoC » December 6th, 2006, 8:32 pm

i see stuff about a origin in the scripts.... do i hav to use a script origin or something? and name it or soemthing?

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » December 6th, 2006, 9:21 pm

yes, make a script origin and then give it targetname and a name
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

fxs

Post by HavoC » December 6th, 2006, 9:53 pm

k, i just wanna c wut this 1s like but idk where to put the target name? can some1 show me how this fx is suppoesed to loook in the gsc?

Code: Select all

main()
{
	precacheFX();   
}

precacheFX()
{
	level._effect["fueltank"]		= loadfx("fx/explosions/fueltank_ned.efx");
}
appreciate it thx btw the targetname is fx
p.s: i stink at this kinda stuff lol :lol:

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » December 6th, 2006, 11:29 pm

just look in my gsc for nm_dual, there are a few light gscs that I have made
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

FX's

Post by HavoC » December 6th, 2006, 11:49 pm

k
thx

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest