slow aim problems

Posts 1–3 of 3 · Page 1 of 1
slow aim problems
how would i read the users original sensitivity?



so what i'm doing is, if the crosshair is over an enemy, write the sensitivity as 0.3, if it's not, set it to 2 (thats what i have it in game), but instead of having to write 2, how would i read the users original sensitivity?


edit :: nvm i read Client + sens again and it goes back to 2.
At hack main, after getting modules, Local.GetSens() that can be done with (float)Read(modClient.dwBase + offSens);
And you store it in a float var; so everytime u need your original sens back, you just call it.

Code:
...
float mysens;
...
mysens = (float)Read(modClient.dwBase + offSens);
...
if (Local.GetTeam() != Entity.GetTeam(Local.GetCrosshairID()) && !Entity.IsDead(Local.GetCrosshairID())
        (float)Write(modClient.dwBase + offSens, 0.3f);
else 
        (float)Write(modClient.dwBase + offSens, mysens);
...
Just a nice thing to clear the code, make 2 structures both almost the same, but one for entity and one for local (our player). Will clear the code and be easier to code.
Seems as though this is solved.


/Closed.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us