Here we go again...
People have been asking I guess, if anybody wants to continue making these releases publicly for me I included my Entity/Player class as well as an example on how a trigger can be done, bhop etc can be implemented very easy as well.
Giving away the source because I'm not gonna continue this hack, it isn't that fun, I'd rather work on improving my GUI's and in general becoming a better programmer.
If you do decide to continue it though, please consider placing credits
Disclaimer
Skids, just no.. DO NOT USE THIS SOURCE FOR SELLING "YOUR" "PRIVATE" ON SKYPE.
Example on how to create a trigger using this
Code:
// At the top
CLocalPlayer* p = new CLocalPlayer; // LocalPlayer
CBaseEntity* e = new CBaseEntity; // Entity in question
//Trigger thread:
void triggerThread()
{
while(true) {
p->GetPLocal(); // We wont be able to get our player information if we dotn have our Player
e->GetEntity(p->GetCHID()-1); // We grab the information from the entity in our crosshair
if (trigOn && !burstOn && p->isAlive() && e->IsAlive() && e->GetTeam() != p->GetTeam()) {
/* If statement summary:
Our player can attack and our player is alive.
Entity in our crosshair is alive and entity in our crosshair is not our own team.*/
p->SetAttack(5, 5); // Set attack to +attack (5 1st arg) and sleep 5 milliseconds (2nd arg)
p->SetAttack(4, 5); // Set attack to -attack (4 1st arg) and sleep 5 milliseconds (2nd arg)
}
if (trigOn && burstOn && p->isAlive() && e->IsAlive() && e->GetTeam() != p->GetTeam()) {
/* Burst enabled, everyting else is the same */
p->SetAttack(5, 200); // Set attack to +attack (5 1st arg) and sleep 200 milliseconds (2nd arg)
p->SetAttack(4, 210); // same as above really... :P
}
Sleep(1); // If you dont put this sleep here you'll kill the CPU.. Not really kill it, but it'll be way to intensive.
}
}
Player Classes (Entity and player is in same header/source)
CBaseEntity.h:
Code:
/************************************************
* Author: Psychobitch
* File Purpose: Class defintions and members
* Creation date: 2015-05-17
*************************************************/
#pragma once // Header guard
#include <Windows.h>
#include "PMem.h"
class CLocalPlayer // Class
{
public: // Public Members
PMem Mem; // Memory object
DWORD dwClient; // Client dll
DWORD m_pLocal; // M stands for member (This is the player in question)
int m_iTeam; // Team of player in question (Your player)
int m_iHealth; // Health of player in question (Your health)
int m_iCHID; // Crosshair id, aka the entity in crosshair
int AttackState; // attack state..
public: // Public methods
DWORD GetPLocal();
int GetTeam();
bool isAlive();
int GetCHID();
bool CanAttack();
void SetAttack(int, int);
};
class CBaseEntity // Class
{
public: // Public Members
PMem Mem; // Memory object
DWORD dwClient;
DWORD m_pEnt; // Entity in question (ent in crosshair)
int m_iTeam;
int m_iHealth;
public: // Public Methods
DWORD GetEntity(int);
int GetTeam();
bool IsAlive();
};