Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

[Suggestion] Blockbot or Run boost assist

Open Evilhelder opened this issue 7 years ago • 8 comments

If you could, could you put a Run boost assist or a Blockbot? It would be really cool to have this in the hack... I have this blockbot code, but I don't know if it would be usefu .... :T

void blockbot(CUserCmd* pCmd) {
 
	
	float bestdist = 150.f;
	int index = -1;
 
	for (int i = 1; i < Interfaces::Engine()->GetMaxClients(); i++)
	{
		CPlayer* entity = g_pPlayers->GetPlayer(i);
		
		if (!entity)
			continue;
 
		if (!entity->iHealth > 0 || !entity->m_pEntity || entity->m_pEntity == g_pPlayers->GetLocal()->m_pEntity )
			continue;
 
		float dist = entity->iDistance;
 
		if (dist < bestdist)
		{
			bestdist = dist;
			index = i;
		}
	}
 
	if (index == -1)
		return;
 
	CPlayer* target = g_pPlayers->GetPlayer(index);
 
	if (!target)
		return;
 
	
 
	
 
	if (Client::g_vCenterScreen.x < target->vOriginScreen.x - 10)
		pCmd->sidemove = 450.f;
	else if (Client::g_vCenterScreen.x > target->vOriginScreen.x + 10)
		pCmd->sidemove = -450.f;
 
}

Evilhelder avatar Jul 26 '19 21:07 Evilhelder

Another code:

void Misc_Movement::blockbot( CUserCmd* m_pcmd ) {
	auto m_local = game::localdata.localplayer( );
 
	float bestdist = 150.f;
	int index = -1;
 
	if ( GetAsyncKeyState( miscconfig.iBlockbotKey ) ) {
		for ( int i = 0; i < m_pGlobals->maxClients; i++ ) {
			auto entity = m_pEntityList->GetClientEntity( i );
 
			if ( !entity ) continue;
			if ( !entity->IsAlive( ) || entity->IsDormant( ) || entity == m_local ) continue;
 
			float dist = ( m_local->GetOrigin( ) - entity->GetOrigin( ) ).Length( );
 
			if ( dist < bestdist ) {
				bestdist = dist;
				index = i;
			}
		}
	}
 
	if ( index == -1 ) return;
 
	auto target = m_pEntityList->GetClientEntity( index );
 
	if ( !target ) return;
 
	Vector angles;  game::math.calculate_angle( m_local->GetEyePosition( ), target->GetEyePosition( ), angles );
	angles.Normalized( );
 
	if ( angles.y < 0.0f ) m_pcmd->sidemove = 450.f;
	else if ( angles.y > 0.0f ) m_pcmd->sidemove = -450.f;
}

Evilhelder avatar Jul 26 '19 22:07 Evilhelder

What is runbooat assist ?

basically (what I think he means) is following what a player does that is underneath you(so you don't fail a run boost), it's sad that you don't know tbh.

deprale avatar Jul 27 '19 13:07 deprale

basically (what I think he means) is following what a player does that is underneath you(so you don't fail a run boost), it's sad that you don't know tbh.

Exactly. I've been trying for a long time to find or create a Run boost assist or Blockbot cheat.... But to no avail. So I thought and give this suggestion... :T

Evilhelder avatar Jul 27 '19 15:07 Evilhelder

Run boost maybe look cool but kidda useless , it only works in very specific situations and you cant do it alone. Anyway this could be done

I want to use it to troll my friends in the competitive ... xD Please add this.

Evilhelder avatar Jul 28 '19 18:07 Evilhelder

I found this code to make it easier, perhaps, and a MimicBot code. I beg you, put this in Osiris code... ;-;

for (i=0 ; i<2 ; i++)       // Determine x and y parts of velocity
	wishvel[i] = pmove->forward[i]*fmove + pmove->right[i]*smove;
	
wishvel[2] = 0;             // Zero out z part of velocity
 
VectorCopy (wishvel, wishdir);   // Determine maginitude of speed of move
wishspeed = VectorNormalize(wishdir);
 
if (wishspeed > pmove->maxspeed)
{
	VectorScale (wishvel, pmove->maxspeed/wishspeed, wishvel);
	wishspeed = pmove->maxspeed;
}

Evilhelder avatar Aug 06 '19 19:08 Evilhelder

blockbot ++++

lejyfps avatar Aug 07 '19 02:08 lejyfps

Yes, please, I beg you.

peroh215 avatar Aug 11 '19 22:08 peroh215

Still waiting

peroh215 avatar Aug 18 '19 19:08 peroh215