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

Members Online

»
0 Active | 52 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 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: snow problem
Warr!or
General Member
Since: Jun 21, 2005
Posts: 257
Last: Feb 9, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Monday, Apr. 9, 2007 07:03 pm
Hi,
i followed the sp snow tutorial, but when i test my map, i don't see snow, i really don't know whats wrong

here you have my gsc and my _fx.gsc
snow.gsc
Code:
#include maps\_utility;

#include maps\_anim;


#using_animtree("generic_human");


main()
{
        maps\_load::main();
	maps\snow_fx::main();

	// makes ai do cool stuff
	setEnvironment ("cold");
}

snow_fx.gsc
Code:
main()
{
	level thread precacheFX();
	level thread playerEffect();
}

precacheFX()
{
	level._effect["snow_light"]= loadfx ("fx/misc/snow_light.efx");
	level._effect["cold_breath"]= loadfx ( "fx/misc/cold_breath.efx" );
}

playerEffect()
{
	player = getent("player","classname");
	for (;;)
	{
		playfx ( level._effect["snow_light"], player.origin + (0,0,300), player.origin + (0,0,350) );
		wait (0.75);
	}
}

i hope someone can help
Share |
XiteR!
General Member
Since: Oct 3, 2006
Posts: 84
Last: Aug 10, 2008
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Monday, Apr. 9, 2007 08:01 pm
I don't if the scripts are wrong or not, but if they are right and don't show could be because the snow effect only appear if you have dx9.(someone correct me if im wrong). [jumping]
Share |
elmer_fudd
General Member
Since: Feb 20, 2007
Posts: 125
Last: Mar 20, 2009
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, Apr. 9, 2007 08:02 pm
I'm no expert in these matters but, I took a quick glance at your scripts and there are couple of extra spaces and close parenthesis there. Might want to double check them for proper spacings and such? Did you see any compile errors?[wave]
"fx/misc/cold_breath.efx" );
}

playerEffect()
{
player = getent("player","classname");
for (;;)
{
playfx ( level._effect["snow_light"], player.origin + (0,0,300), player.origin + (0,0,350) );
wait (0.75);
}
}

edited on Apr. 9, 2007 04:10 pm by elmer_fudd
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD2 SP Mapping
Posted: Monday, Apr. 9, 2007 08:10 pm
The spacings in the script dont matter, they ignored by the game. It might not be working because you need dx9 or it could be the effect. The effect might also be spawing too high?
Share |
Warr!or
General Member
Since: Jun 21, 2005
Posts: 257
Last: Feb 9, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Tuesday, Apr. 10, 2007 09:57 am
problem solved
i was playing with direct x 7, i always do, because direct x 9 slow down my pc
but you have to play on direct x9 to see snow, didn't know that
thx anyway
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP 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

»