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

Members Online

»
0 Active | 8 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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: SCRIPT EFFECT HELP
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Friday, Jun. 19, 2009 02:32 pm
hello
i'ill try other way but crashed

here my_effets.gsc

http://perso.numericable.fr/antonywar/_effets.gsc

Share |
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Friday, Jun. 19, 2009 02:52 pm
[banghead]
last try

Code:
bleeding()
{
self endon("death");

timer = 0;

while (isalive(self))
{
wait 5;

if (self.health < level.fd_healthymin)
{
self.laststance = self getstance();
self.bleeding = true;
while (self.health < level.fd_healthymin)
{
self shellshock("mc_hit6", 3);
self playlocalsound("heartbeat");
self disableweapon();

if(timer == 5)  // decrease health every 5 seconds.
{
self.health -= 1; // Take of 1 health every time
timer = 0;
}
else
timer++; // increase timer

if(self.health <= 0)
self thread [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc);

if ((randomint(100) < level.fd_rdmpain) && (self.laststance != self getstance())) thread painsound("bleeding");
wait 1;
}
self.bleeding = undefined;
wait 1;
}
if (self.health > level.fd_healthymin)
{ 
self enableweapon();
}
}

}


but i have this eror

Code:
******* script runtime error *******
pair has unmatching types 'undefined' and 'string': (file 'maps\mp\gametypes\sd.gsc', line 877)
 if(sHitLoc == "head" && sMeansOfDeath != "MOD_MELEE")

            *
called from:
(file 'maps\mp\gametypes\_effets.gsc', line 533)
self thread [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc);

                    *
called from:
(file 'maps\mp\gametypes\_effets.gsc', line 536)
wait 1;

*

[banghead]

Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Friday, Jun. 19, 2009 03:17 pm
Anywhere you see poo-pooLoc change it with s HitLoc (without the space between the "s" and "H". The foums think I am typeing a bad word (s + Hit = s Hit OR poo-poo in fourm terms)
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Friday, Jun. 19, 2009 04:53 pm
[banghead]
no work...
[ohwell]
Share |
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Saturday, Jun. 20, 2009 06:12 pm
hello mate
its ok when i put

self suicide();

ok player dead but i see the action looping

player dead and i see another time he dead and again

hum strange....
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoDUO Mapping
Posted: Saturday, Jun. 20, 2009 07:12 pm
Code:

bleeding()
{
	timer = 0;

	wait 5;

	while(isValidPlayer(self) && self.sessionstate == "playing")
	{

		if(self.health < level.fd_healthymin)
		{
			self.laststance = self getstance();
			self.bleeding = true;
			while(self.health < level.fd_healthymin)
			{
				self shellshock("mc_hit6", 3);
				self playlocalsound("heartbeat");
				self disableweapon();

				if(timer == 5)  // decrease health every 5 seconds.
				{
					self.health -= 1; // Take of 1 health every time
					timer = 0;
				}
				else
					timer++; // increase timer

				if(self.health <= 0)
				{
					self thread bleed_death();
					break;
				}

				if(randomint(100) < level.fd_rdmpain && self.laststance != self getstance())
					thread painsound("bleeding");

				wait 1;
			}
			self.bleeding = undefined;
			wait 1;
		}

		if (self.health > level.fd_healthymin)
			self enableweapon();

		wait 5;
	}

}

bleed_death()
{
	eInflictor = self.lastDamage["eInflictor"];
	attacker = self.lastDamage["eAttacker"];
	sMeansOfDeath = self.lastDamage["sMeansOfDeath"];
	sWeapon = self.lastDamage["sWeapon"];
	shitLoc = self.lastDamage["sHitLoc"]; // CHANGE HERE

	self finishPlayerDamage(eInflictor, attacker, 100, 1, sMeansOfDeath, sWeapon, self.origin, (0,0,1), shitLoc); // CHANGE HERE
}


Not the best way, but then you'd have to change various other scripts

Don't forget to change poo-pooLoc to s HitLoc (without the space)
Share |
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Sunday, Jun. 21, 2009 02:12 pm
Hello KILL3R and thanks for the help

i try this
Code:
bleeding()
{
	timer = 0;<br />
<br />
	wait 5;<br />
<br />
	while(isValidPlayer(self) && self.sessionstate == "playing")
	{<br />
<br />
		if(self.health < level.fd_healthymin)
		{
			self.laststance = self getstance();
			self.bleeding = true;
			while(self.health < level.fd_healthymin)
			{
				self shellshock("mc_hit6", 3);
				self playlocalsound("heartbeat");
				<br />
<br />
				if(timer == 5)  // decrease health every 5 seconds.
				{
					self.health -= 1; // Take of 1 health every time
					timer = 0;
				}
				else
					timer++; // increase timer<br />
<br />
				if(self.health <= 0)
				{
					self thread bleed_death();
					break;
				}<br />
<br />
				if(randomint(100) < level.fd_rdmpain && self.laststance != self getstance())
					thread painsound("bleeding");<br />
<br />
				wait 1;
			}
			self.bleeding = undefined;
			wait 1;
		}<br />
<br />
		<br />
<br />
		wait 5;
	}<br />
<br />
}<br />
<br />
bleed_death()
{
	eInflictor = self.lastDamage["eInflictor"];
	attacker = self.lastDamage["eAttacker"];
	sMeansOfDeath = self.lastDamage["sMeansOfDeath"];
	sWeapon = self.lastDamage["sWeapon"];
	sHitLoc= self.lastDamage[" sHitLoc"]; // CHANGE HERE<br />
<br />
	self finishPlayerDamage(eInflictor, attacker, 100, 1, sMeansOfDeath, sWeapon, self.origin, (0,0,1),  sHitLoc); // CHANGE HERE
}


i i put s Hitloc with space script error bad syntax


or i have this error
Code:
******* script runtime error *******
undefined is not an array, string, or vector: (file 'maps\mp\gametypes\_effets.gsc', line 554)
 eInflictor = self.lastDamage["eInflictor"];<br />
<br />
                   *
called from:
(file 'maps\mp\gametypes\_effets.gsc', line 532)
     self thread bleed_death();<br />
<br />
                 *
called from:
(file 'maps\mp\gametypes\_effets.gsc', line 539)
    wait 1;<br />
<br />
    *
************************************
********************
ERROR: script runtime error
(see console for details)
********************


Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoDUO Mapping
Posted: Sunday, Jun. 21, 2009 02:16 pm
When the player connects, add this line

Code:

	self.lastDamage = [];



and in player damage

Code:

	self.lastDamage["eInflictor"] = eInflictor;
	self.lastDamage["eAttacker"] = attacker;
	self.lastDamage["sMeansOfDeath"] = sMeansOfDeath;
	self.lastDamage["sWeapon"] = sWeapon;
	self.lastDamage["poo-pooLoc"] = poo-pooLoc; // CHANGE HERE
Share |
adam57
General Member
Since: May 15, 2007
Posts: 23
Last: Aug 23, 2018
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Monday, Jun. 22, 2009 05:20 pm
hello mate
thanks for help

but where i place this line???

here my fx_files


http://perso.numericable.fr/antonywar/_effets.gsc
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»