SolvedpSilent Angles.

Posts 1–3 of 3 · Page 1 of 1
pSilent Angles.
Hi everyone, i was doing a pSilent Aimbot but i can't get it works, i've done something like this using the oldcmd for the points.

all this it's a class...
Example:

Code:
void Initialize()
{
 	//bla bla bla calculate the best target...

	vec3_t EnemyVec, VecAngle; 

	VectorSubtract(EnemyTarget, refdef->Origin, EnemyVec); // You know he does this, EnemyTarget it's the final target [X, Y, Z]
	VectoAngles(EnemyVec, VecAngle); // You know he does this.

	GetAngleToOrigin(EnemyTarget, End); // You know he does this, End it's a vec3_t as property
}


void ApplypSilent(usercmd_t* oldcmd) // writepacket...
{
	oldcmd->viewangles[0] += ANGLE2SHORT(End[0]));
	oldcmd->viewangles[1] += ANGLE2SHORT(End[1]));
	//oldcmd->viewangles[1] += ANGLE2SHORT(End[2])); // roll forever 0.
}

What i'm doing wrong?, thx to all.
Sorry for the inconvenience and the delay, i've solved applying the vectors on wp hook, logic on new cmd... thanks...

[solved!]
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us