Results 1 to 6 of 6
  1. #1
    egodsk's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Bashful

    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{
    				}
    			}
    		}
    	}
    }
    /yea DeMani That's me /yea

  2. #2
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Colorado
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    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{
    				}
    	}
    }
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Isnt this the wrong section?

  4. #4
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic
    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{
    				}
    			}

  5. #5
    gam60v6r's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Netherlands
    Posts
    117
    Reputation
    10
    Thanks
    17
    My Mood
    Amazed
    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

    The dark side is to strong even Yoda can't resist.

  6. #6
    House's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    2,990
    Reputation
    223
    Thanks
    8,952
    My Mood
    Cynical
    /Moved to GSC Help

Similar Threads

  1. i downloaded hacks but i cant find the file
    By smitethat in forum Combat Arms Help
    Replies: 1
    Last Post: 02-28-2010, 11:04 AM
  2. [Help] I can´t find the Hack of December
    By XxCleanerxX in forum Soldier Front General
    Replies: 1
    Last Post: 01-04-2010, 09:35 AM
  3. [Help] cant find the futeur
    By nite96 in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 12-31-2009, 03:42 PM
  4. [Help] i really cant find the link of SuddenAttackSEA hack for window xp ..
    By Darren95 in forum Sudden Attack General
    Replies: 7
    Last Post: 11-10-2009, 06:10 PM
  5. Cant find the CBL searcher
    By AfricanJew in forum Combat Arms Help
    Replies: 4
    Last Post: 10-04-2009, 10:02 PM