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

Members Online

»
0 Active | 6 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 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
Previous Page
subscribe
Author Topic: burn player
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, Oct. 23, 2010 04:40 pm
Code:
monitor_target()
{
	while(1)
	{
		self waittill( "trigger", player );
		
		playFX( level._effect["playerfire"], player getOrigin() );
                wait 8;
                player suicide();
	}
}


edited on Oct. 23, 2010 12:41 pm by liltc64

---- only problem with that is that i dont think that fire will loop with that wait 8.
Share |
karabao32
General Member
Since: Mar 11, 2010
Posts: 24
Last: Apr 4, 2014
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Saturday, Oct. 23, 2010 04:49 pm
Yes I try that but yher where no "shock" and for the fire i had a custom fire effect...
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Oct. 23, 2010 05:27 pm
karabao32 writes...
Quote:
Ok thanks it's good, but my player dead immediadly, how can he dead progressive with shell shock???

PS sorry for my english...[lol]


Code:
main()
{
	level._effect["playerfire"] = loadFX( "fx/fire/character_torso_fire" );

	targets = getEntArray( "target", "targetname" );
	for( i = 0; i < targets.size; i++ )
		targets[i] thread monitor_target();
}

monitor_target()
{
	while(1)
	{
		self waittill( "trigger", player );
		
		playFX( level._effect["playerfire"], player getOrigin() );
		
		wait 0.5;
		
                            for(i=0;i<20;i++)
                            {
                            player.health-=4;
                            wait 0.05;
                            }
		player suicide();
	}
}
Share |
karabao32
General Member
Since: Mar 11, 2010
Posts: 24
Last: Apr 4, 2014
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Saturday, Oct. 23, 2010 06:03 pm
OK Thanks all ! ! ![jumping][rocking][thumbs_up]
Share |
Restricted Access Topic is Locked
Page
Previous 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

»