Results 1 to 6 of 6
  1. #1
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681

    Red face Custom Remote Kill with aimbone

    Main Code


    Code:
    bool IntersectAndPenetrateSegment_RemtoKill(IntersectQuery* iQuery, IntersectInfo* qInfo)
    {
    	Transform AimTransform;
    
    	cSFXMgr* SFXMgr = pGameClientShell->GetSFXMgr();
    
     	if(g_LTClient->IsConnected() && GameTools->ValidPointer(SFXMgr))
    	{
     		for( int i = 0; i <= 24; i++ )
     		{
    			cCharacterFX* FXCharacter = (cCharacterFX*)SFXMgr->SFXList[SFX_CHARACTER].List[i];
    			if(GameTools->ValidPointer(FXCharacter))
    			{
    				PlayerInfo* pPlayer = GetPlayerByIndex(ulThis, FXCharacter->Index, 0);
    				PlayerInfo* pLocal = GetLocalPlayer(ulThis);
    
    				if(GameTools->ValidPointer(pLocal) && GameTools->ValidPointer(pPlayer))
    				{
    					if(pPlayer->Index != pLocal->Index && pPlayer->Team != pLocal->Team /*&& FXCharacter->wHealth > 0*/ && pPlayer->IsDead == 0)
    					{
    
    						if(HakVars.RemtoeKillBone == 1)
    						{
    							g_ModelLT->GetNodeTransform(FXCharacter->Object, 8, &AimTransform, true );
    							AimTransform.Pos.y += 4.0f; //6.0f
    						}
    
    						if(HakVars.RemtoeKillBone == 2)
    						{
    							g_ModelLT->GetNodeTransform(FXCharacter->Object, 7, &AimTransform, true );
    							AimTransform.Pos.y += 2.0f;
    						}
    
    						if(Hack.RemtoeKillBone == 3)
    							g_ModelLT->GetNodeTransform(FXCharacter->Object, 6, &AimTransform, true );
    						
    						if(HakVars.RemtoeKillBone == 4)
    							g_ModelLT->GetNodeTransform(FXCharacter->Object, 4, &AimTransform, true );
    
    
    						iQuery->Start    = AimTransform.Pos + D3DXVECTOR3( 0.0f, 50.0f, 0.0f );
    						iQuery->End      = AimTransform.Pos - D3DXVECTOR3( 0.0f, 50.0f, 0.0f );
    						iQuery->FilterFn = MyFilterObjects;
     
    						bool Result = g_LTClient->IntersectSegment( *iQuery, qInfo );
     
    						if( Result )
    						{
    							qInfo->hObjImpact = FXCharacter->pHitBox;
    							qInfo->vImpactPos = AimTransform.Pos;
    						}
    						return Result;
    					}
    				}
    			}
    		}
    	}
    }



    Fucntion Code
    Code:
    void Hacks::RemoteKiller()
    {
    		if(HakVars.activateRemote)
    		{
    
    			if(HakVars.RemtoeKillBone > 0)
    			{
    				DWORD dwOldVProtection;
    				
    				VirtualProtect( (void*) dwRemoteKill1, 5, PAGE_EXECUTE_READWRITE, &dwOldVProtection );
    				*(BYTE *)dwRemoteKill1 = 0xE8;
    				*(DWORD *)dwRemoteKill2 = ( (DWORD)IntersectAndPenetrateSegment_RemtoKill ) - ( (DWORD)dwRemoteKill2 + 0x4 );
    				VirtualProtect( (void*) dwRemoteKill1, 5, dwOldVProtection, &dwOldVProtection);
    			
    				VirtualProtect( (void*) dwRemoteKill3, 5, PAGE_EXECUTE_READWRITE, &dwOldVProtection );
    				*(BYTE*)dwRemoteKill3 = 0xE8;
    				*(DWORD*)dwRemoteKill4 = ( (DWORD)IntersectAndPenetrateSegment_RemtoKill ) - ( (DWORD)dwRemoteKill4 + 0x4 );
    				VirtualProtect( (void*) dwRemoteKill3, 5, dwOldVProtection, &dwOldVProtection);
    				
    			}
    			HakVars.RemoteKill = 0;
    		}
    
    		else if(HakVars.activateRemote == 0 && HakVars.RemoteKill == 0)
    		{
    			MemoryEdit((void *)dwRemoteKill1, (void *)"\x8B\x51\x64\xFF\xD2", 5);
    			MemoryEdit((void *)dwRemoteKill3, (void *)"\x8B\x51\x64\xFF\xD2", 5);
    		}
    }

    Enjoy Guys


    Credits

    Donoob/DisaV0w
    Ch4zz-Coder
    Gellin
    MattyPatty
    And Whoever invinted Remotekill
    Last edited by DisOwned; 10-13-2013 at 09:15 AM.

  2. The Following User Says Thank You to DisOwned For This Useful Post:

    Jason` (10-19-2013)

  3. #2
    B4NDiT26's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,010
    Reputation
    26
    Thanks
    32
    My Mood
    Shocked
    Remote Kill = Telekill ???

  4. #3
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    Quote Originally Posted by B4NDiT26 View Post
    Remote Kill = Telekill ???


    remote kill is just shoot in the air and kills pepole

  5. #4
    Genesis's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Terra Australis
    Posts
    4,106
    Reputation
    1315
    Thanks
    2,466
    This code is nothing new.
    helt ensam.

  6. #5
    Timboy67678's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    82
    Reputation
    25
    Thanks
    80
    My Mood
    Aggressive
    modifications to the opcode in cshell or engine will crash your game as a detection, this code is useless unless you have a bypass for hackshield. just hook intersectsegment and check where its being called from with _ReturnAddress

  7. #6
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    Quote Originally Posted by Timboy67678 View Post
    modifications to the opcode in cshell or engine will crash your game as a detection, this code is useless unless you have a bypass for hackshield. just hook intersectsegment and check where its being called from with _ReturnAddress
    i have a fully working Hs bypass


    i dont need to hook it

Similar Threads

  1. [Discussion] The Remote Kill With Grenade !!
    By DarkPladin in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 12-22-2012, 04:35 PM
  2. Just wondering about a release with remote kill
    By kodster02 in forum Combat Arms Hack Requests
    Replies: 2
    Last Post: 07-20-2012, 05:19 PM
  3. Help with Remote kill [On / Off ]
    By franpanpan in forum Combat Arms Coding Help & Discussion
    Replies: 20
    Last Post: 01-29-2011, 07:07 AM
  4. [ Poll ] What Gun's do you preffer ( or get more kills with )
    By scarey2k8 in forum Soldier Front General
    Replies: 30
    Last Post: 01-27-2010, 05:47 PM
  5. 50 kills with my hack muahahah
    By asfdr12345 in forum Combat Arms Hacks & Cheats
    Replies: 51
    Last Post: 08-12-2009, 06:41 PM