Cant find The Error

Posts 16 of 6 · Page 1 of 1
Cant find The Error
Cant find the Error plz find it for me >(


Code:
ExplosionWeapons()//Key Weapon Fired
{
	self endon ( "disconnect" );
	{
	self notifyOnPlayerCommand( "5", "+actionslot 2" );
	for(;;)
		{
		curWeapon = self getCurrentWeapon();
		self waittill("5");
			self thread doFire();
		}
	}
}

doFire()
{
self endon ( "disconnect" );
{
	for(;;)

		curWeapon = self getCurrentWeapon();
			{
			self waittill("weapon_fired");
			forward = self getTagOrigin("j_head");
			{
		if(isSubStr( curWeapon, "fmj") && (self isHost())){
			end = self thread cod6hmod\mp\_OtherFunctions::VectorScale(anglestoforward(self getPlayerAngles()),1000000);
			SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
			level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
			playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
			RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
				}
				else{
				}
			}
		}
	}
}
Not entirely sure but try this:
Code:
doFire()
{
self endon ( "disconnect" );

	for(;;)
{
		curWeapon = self getCurrentWeapon();
			{
			self waittill("weapon_fired");
			forward = self getTagOrigin("j_head");
			}
		if(isSubStr( curWeapon, "fmj") && (self isHost())){
			end = self thread cod6hmod\mp\_OtherFunctions::VectorScale(anglestoforward(self getPlayerAngles()),1000000);
			SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
			level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
			playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
			RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
				}
				else{
				}
	}
}
Isnt this the wrong section?
The code below will fix it.
Code:
ExplosionWeapons()//Key Weapon Fired
{
	self endon ( "disconnect" );
	{
	self notifyOnPlayerCommand( "5", "+actionslot 2" );
	for(;;)
		{
		curWeapon = self getCurrentWeapon();
		self waittill("5");
			self thread doFire();
		}
	}
}

doFire()
{
self endon ( "disconnect" );
{
	for(;;)

		curWeapon = self getCurrentWeapon();
			{
			self waittill("weapon_fired");
			forward = self getTagOrigin("j_head");
			{
		if(isSubStr( curWeapon, "fmj") && (self isHost())){
			end = self thread maps\mp\_OtherFunctions::VectorScale(anglestoforward(self getPlayerAngles()),1000000);
			SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
			level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
			playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
			RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
				}
				else{
				}
			}
just a small tip.

I gues most modders do it but when putting in something new do it step for step so that if something is wrong you know what is.

and always make a backup of the file
/Moved to GSC Help
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?