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

Members Online

»
0 Active | 26 Guests
Online:

LATEST FORUM THREADS

»
Call of DutyŽ: WWII
CoD WW2 General
SOF2 Prefabs map
SoFII Mapping
coduo mapping tools
CoDUO 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: FX not working...
HarryNutz
General Member
Since: May 5, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 01:44 pm
Ok so I have 3 effectsworking with no problems, but Im trying to add another and it dont work. Are there some fx's that just dont work? I know there was a couple fire fx I couldnt get to work and now I cant seem to get the dust effects I need... tried this one below and also tried sand_aftermath

Maybe someone can see something Im missing...but I dont think there is

Code:
ent = maps\mp\_utility::createOneshotEffect( "dust/sand_pwryard_aftermath");
ent.v[ "origin" ] = ( 530, 1600, -1042 );
ent.v[ "angles" ] = ( 270, 0, 0 );
ent.v[ "fxid" ] = "sandbox";
ent.v[ "delay" ] = -3;


Code:
level._effect[ "sandbox" ] = loadfx("dust/sand_pwryard_aftermath");


Code:
fx,dust/sand_pwryard_aftermath
Share |
cskiller86
General Member
Since: Nov 23, 2009
Posts: 528
Last: Oct 25, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 11:55 pm
There are two main types of FX: those that play one time and those that are looping.
If your FX is of looping type, then you have to load it using createOneshotEffect. If it's a one time and you want it to play forever, you have to use createLoopEffect.
You can see what type of FX it is by loading it into the EffectsEditor.
Share |
HarryNutz
General Member
Since: May 5, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, May. 31, 2011 06:03 am
I thought an fx was an fx... didnt even know there were 2 types in respect to looping and not. Was wondering why when I played one fx it would keep playing and then some would only play a single time. But now I have a little more knowledge [rocking]

Anyway... now the map wont compile reflections or run because of this error...

playLoopedFx called with repeat <0.001 seconds

Googled it and finding nothing at all on it.
Share |
FAFFER
General Member
Since: May 1, 2005
Posts: 647
Last: Sep 17, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Tuesday, May. 31, 2011 07:25 am
"ent.v[ "delay" ] = -3;"

change the minus 3 to a number more than 0.001 seconds.
Share |
HarryNutz
General Member
Since: May 5, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, May. 31, 2011 08:21 am
Thanks that worked... but I seriously need a better understanding of how this stuff works lol. I ended up removing the darned effect because yet again I had an issue with the direction it was playing in...

I was told elsewhere to change each direction for angles to 90 and load into the map to see the effect it had and it worked for my smoke and for my falling leaves because I would load into the map and see the direction had changed... but now this dust/sand will not change direction... I tried 90, 0, 0 then 0, 90, 0 and 0, 0, 90 and it still keeps going in the same default direction.

So not exactly sure where I am failing.. I think Im gonna say the hell with these effects. [banghead]
Share |
FAFFER
General Member
Since: May 1, 2005
Posts: 647
Last: Sep 17, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Tuesday, May. 31, 2011 08:29 am
its probably working but hard to see with dust/sand fx.

ent.v[ "angles" ] = ( 270, 0, 0 );

the 3 numbers represent x,y and z. (z being up)

try using a minus value on the x and y for example...

ent.v[ "angles" ] = ( -90, -90, 0 );

ultimately its trial and error and fookin time consuming doing fx! good luck!


Share |
cskiller86
General Member
Since: Nov 23, 2009
Posts: 528
Last: Oct 25, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 2, 2011 12:31 am
Here's a tip: place multiple instances of the FX and make every one of them have different angles. This way you'll save time.
Having only one instance of the FX in the map and recompiling the zone file, then loading the map then doing it all over again until you get it right would take a lot of time.

You can place each instance on top of an existing prop (barrel, crate etc); this way, if you get one right, you'll know which one is it in the _fx.gsc (because of the prop's coordinates)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»