Moved to the right section.
Okay with the help of a few members, i have a working trigger bot! . however, it does not differentiate between friendly and enemy players. (i.e it will shoot if i look at teammates as well.) can someone explain the process of what i need to do to finish this thing up? thanks for the help guys.
Moved to the right section.
Here is code for a triggerbot to reference.if (LocalPlayer_crosshairID > 0 && LocalPlayer_crosshairID < 64 && LocalPlayer_teamNum != EntityPlayer_teamNum && !EntityPlayer_isDormant && !EntityPlayer_lifeState)
The crosshairID will hold the entetiy id of the player in the crosshair. Get the Player from the entetylist and compare his and your team number.
Add this check to your hackCode:if (!isDormant && gEntityTeam != LocalPlayerTeam)
Now open your wings and fly. God bless you. -Major Zero
only if I knew how to code :''''C sad tyms
Why do y'all do a InCross trigger bot? They are the worst use bones and hitboxes instead.
@ OP...
You will need the following offsets:
crosshairID
entityList[]
teamNum
Assuming you have the meat of the triggerbot, when you are using the function, call the check:
So I'll explain it...Code:if (entityList[MyPlayer.crosshairID - 1].Team == MyPlayer.Team) return;
The array entityList will hold all of the entities. Since arrays start at 0, we subtract 1 from our crosshair ID. Then, we check if that entity's team is the same as our team. If it is, it exits the function.
Your team:
Enemy team via InCross:Code:LocalBase = RPM(csHandle, Client.dll + Offset.LocalPlayer, 4, 0) MyTeam = RPM(csHandle, LocalBase + Offset.Team, 4, 0)
Check:Code:LocalBase = RPM(csHandle, Client.dll + Offset.LocalPlayer, 4, 0) InCross_Index = RPM(csHandle, LocalBase + Offset.InCross, 4, 0) - 1 EntityPointer = RPM(csHandle, Client.dll + Offset.EntityList + (InCross_Index * 16), 4, 0) EnemyTeam = RPM(csHandle, EntityPointer + Offset.Team, 4, 0)
Syntax is probably wrong, idc.Code:Bool DifferentTeams If MyTeam != EnemyTeam { Return true Else Return false }
1 week has passed and no further replies have been made by the OP. Assuming solved.
/Closed.