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

Members Online

»
0 Active | 11 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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
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: Cold_Breath...
SgtCortes69us
General Member
Since: Jul 27, 2006
Posts: 295
Last: Feb 5, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Thursday, Dec. 17, 2009 10:58 pm
I've been searching for this in the site but no lucky.
I made a great map, a winter one, and I've been playing some map on some servers where players have cold_breath coming out of their mouth. I dont know if this is made on servers scripts or you can do it in your map script, but I cant find anything about in this forum, niegther in the tutorials.
Can some one point me in the right direction please toi get this working in my map?

Thanks in advanced`!!!!
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 01:47 am
Try adding this code below, into the first script brackets of your maps main script.

Code:
 setEnvironment ("cold");


Example.

Code:
main()
{
 setEnvironment ("cold");
}




Share |
SgtCortes69us
General Member
Since: Jul 27, 2006
Posts: 295
Last: Feb 5, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 06:29 am
vT-Ownage writes...
Quote:
Try adding this code below, into the first script brackets of your maps main script.

Code:
 setEnvironment ("cold");


Example.

Code:
main()
{
 setEnvironment ("cold");
}





Sorry bro, but that code it doesnt work.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 07:22 am
This should do it:

Code:
main()
{
	level.breathfx = loadfx( "fx/misc/cold_breath.efx" );
	
	level thread onPlayerConnect();
}

onPlayerConnect()
{
	for(;;)
	{
		level waittill( "connecting", player );

		player thread onPlayerSpawned();
	}
}

onPlayerSpawned()
{
	self endon( "disconnect" );
	
	for(;;)
	{
		self waittill( "spawned_player" );
		
		self thread breath_fx();
	}
}

breath_fx()
{
	self endon( "disconnect" );
	self endon( "death" );

	wait ( 2 + randomint(3) );

	while( isAlive( self ) && self.sessionstate == "playing" )
	{
		playfxontag( level.breathfx, self, "J_Head" );
		
		wait randomfloatrange(1.5,3.5);
	}
}


Add that to your map's level script, starting at the main() function.

Also, make sure you have the FX files in your IWD file, in the right folders.
Share |
FAFFER
General Member
Since: May 1, 2005
Posts: 647
Last: Sep 17, 2011
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 10:51 am
can this work on waw?

i ve seen the same cold breath fx in the fx files...[cool]
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 01:37 pm
duno try it :P im trying with cod4 atm
Share |
SgtCortes69us
General Member
Since: Jul 27, 2006
Posts: 295
Last: Feb 5, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 06:01 pm
DemonSeed writes...
Quote:
This should do it:

Code:
main()
{
	level.breathfx = loadfx( "fx/misc/cold_breath.efx" );
	
	level thread onPlayerConnect();
}

onPlayerConnect()
{
	for(;;)
	{
		level waittill( "connecting", player );

		player thread onPlayerSpawned();
	}
}

onPlayerSpawned()
{
	self endon( "disconnect" );
	
	for(;;)
	{
		self waittill( "spawned_player" );
		
		self thread breath_fx();
	}
}

breath_fx()
{
	self endon( "disconnect" );
	self endon( "death" );

	wait ( 2 + randomint(3) );

	while( isAlive( self ) && self.sessionstate == "playing" )
	{
		playfxontag( level.breathfx, self, "J_Head" );
		
		wait randomfloatrange(1.5,3.5);
	}
}


Add that to your map's level script, starting at the main() function.

Also, make sure you have the FX files in your IWD file, in the right folders.


Thanks for answer. Well I'm having problems with the compiling bad syntax error message. It seems that some brakets are giving me those errors, I've tried already removing them and adding but nothing it seems to work properly.
I know that script should work is only maybe I dont know what to do with those brakets {}.
I've place them right where you said, after the main() so it looks like this:
Code:
//#include maps\_utility;

main()
{
	level.breathfx = loadfx( "fx/misc/cold_breath.efx" );
	
	level thread onPlayerConnect();
}

onPlayerConnect()
{
	for(;;)
	{
		level waittill( "connecting", player );

		player thread onPlayerSpawned();
	}
}

onPlayerSpawned()
{
	self endon( "disconnect" );
	
	for(;;)
	{
		self waittill( "spawned_player" );
		
		self thread breath_fx();
	}
}

breath_fx()
{
	self endon( "disconnect" );
	self endon( "death" );

	wait ( 2 + randomint(3) );

	while( isAlive( self ) && self.sessionstate == "playing" )
	{
		playfxontag( level.breathfx, self, "J_Head" );
		
		wait randomfloatrange(1.5,3.5);
	}
}

Ofcourse after that theres more scripts which make some other functions and at the end, the last braket }
What can I do?
Thanks!!!
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 06:07 pm
Quote:
//#include maps\_utility;

main()
{
level.breathfx = loadfx( "fx/misc/cold_breath.efx" );

level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );

player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon( "disconnect" );

for(;;)
{
self waittill( "spawned_player" );

self thread breath_fx();
}
}

breath_fx()
{
self endon( "disconnect" );
self endon( "death" );

wait ( 2 + randomint(3) );

while( isAlive( self ) && self.sessionstate == "playing" )
{
playfxontag( level.breathfx, self, "J_Head" );

wait randomfloatrange(1.5,3.5);
}
}


#include maps\_utility;

main()
{
maps\_load::main();
level.breathfx = loadfx( "fx/misc/cold_breath.efx" );

level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;;)
{
level waittill( "connecting", player );

player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon( "disconnect" );

for(;;)
{
self waittill( "spawned_player" );

self thread breath_fx();
}
}

breath_fx()
{
self endon( "disconnect" );
self endon( "death" );

wait ( 2 + randomint(3) );

while( isAlive( self ) && self.sessionstate == "playing" )
{
playfxontag( level.breathfx, self, "J_Head" );

wait randomfloatrange(1.5,3.5);
}
}

try that :P
Share |
FAFFER
General Member
Since: May 1, 2005
Posts: 647
Last: Sep 17, 2011
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 06:25 pm
anyway to get 3rd person view with one person to test this?

in waw. [jumping]

edited on Dec. 18, 2009 01:44 pm by FAFFER


cg_thirdPerson 1
Turns on 3rd person view on.

can't see any breath tho [cry]

i dont have any errors either....
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Friday, Dec. 18, 2009 07:01 pm
doesnt work on cod 4 or 5 :|
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»