Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Please donate im gonna be a daddy!
- //Know i wrote 60% of this using my phone so lmk any things
- //Skype zRayz-
- //give proper credits if you use this in your projects
- //dont use any mods online dont ruin other player experience.
- //Game AW T.U 1.20
- //Other credits S63 <3, shark, ngu, se7ensins!!!!!!
- //Note i will not give to you the other things you meed as if you are a modder/coder you will be able to make all the things work,you only need few things to add ti your project easy asf.
- //Place in Structures.h
- #define SPAREMEMORY 0x2100050
- #define TOC 0x9D5530
- const int MaxClients = 12;
- enum meansOfDeath_t {
- MOD_UNKNOWN = 0x0,
- MOD_PISTOL_BULLET = 0x1,
- MOD_RIFLE_BULLET = 0x2,
- MOD_EXPLOSIVE_BULLET = 0x3,
- MOD_GRENADE = 0x4,
- MOD_GRENADE_SPLASH = 0x5,
- MOD_PROJECTILE = 0x6,
- MOD_PROJECTILE_SPLASH = 0x7,
- MOD_MELEE = 0x8,
- MOD_MELEE_ALT = 0x9,
- MOD_HEAD_SHOT = 0xA,
- MOD_MELEE_DOG = 0xB,
- MOD_MELEE_ALIEN = 0xC,
- MOD_CRUSH = 0xD,
- MOD_FALLING = 0xE,
- MOD_SUICIDE = 0xF,
- MOD_TRIGGER_HURT = 0x10,
- MOD_EXPLOSIVE = 0x11,
- MOD_IMPACT = 0x12,
- MOD_ENERGY = 0x13,
- MOD_NUM = 0x14,
- };
- enum hitLocation_t {
- HITLOC_NONE = 0x0,
- HITLOC_HELMET = 0x1,
- HITLOC_HEAD = 0x2,
- HITLOC_NECK = 0x3,
- HITLOC_TORSO_UPR = 0x4,
- HITLOC_TORSO_LWR = 0x5,
- HITLOC_R_ARM_UPR = 0x6,
- HITLOC_L_ARM_UPR = 0x7,
- HITLOC_R_ARM_LWR = 0x8,
- HITLOC_L_ARM_LWR = 0x9,
- HITLOC_R_HAND = 0xA,
- HITLOC_L_HAND = 0xB,
- HITLOC_R_LEG_UPR = 0xC,
- HITLOC_L_LEG_UPR = 0xD,
- HITLOC_R_LEG_LWR = 0xE,
- HITLOC_L_LEG_LWR = 0xF,
- HITLOC_R_FOOT = 0x10,
- HITLOC_L_FOOT = 0x11,
- HITLOC_GUN = 0x12,
- HITLOC_SHIELD = 0x13,
- HITLOC_ARMOR = 0x14,
- HITLOC_SOFT = 0x15,
- HITLOC_NUM = 0x16,
- };
- //Place them in Functions.cpp
- int player_die_t[2] = { player_die_a, TOC };//player_die_a is your address
- opd_s ParseAddr(int Address) {
- opd_s GLS = { Address, TOC };
- return GLS;
- }
- //function to call the player die
- void player_die(gentity_s* self, gentity_s* inflictor, gentity_s* attacker, int damage, meansOfDeath_t meansOfDeath, int iWeapon, float* vDir, hitLocation_t hitLoc, int psTimeOffset) {
- void(*player_die)(gentity_s* self, gentity_s* inflictor, gentity_s* attacker, int damage, meansOfDeath_t meansOfDeath, int iWeapon, float* vDir, hitLocation_t hitLoc, int psTimeOffset) = (void(*)(gentity_s*, gentity_s*, gentity_s*, int, meansOfDeath_t, int, float*, hitLocation_t, int))&player_die_t;
- player_die(self, inflictor, attacker, damage, meansOfDeath, iWeapon, vDir, hitLoc, psTimeOffset);
- }
- //Function to call player die
- void KillPlayer(gentity_s* attacker, gentity_s* inflictor) {
- player_die(inflictor, attacker, attacker, 0x186A0, MOD_HEAD_SHOT, WEAPTYPE_BULLET, 0, HITLOC_NONE, 0);//function player die
- }
- //You cannot call player_die or g_damage without adding in a VM_Notify hook or a Scr_Notifyhook so by placing this nonitor in the threadhooked you will call player_die when you shoot with your weap, you need few things more to get all working but I gave you the 90% of all you need the rest is yours, this can be ported on all cods, and obv is PS3 only.
- Pls donate :) link to donate in my pastebin
- //Place this where is placed your Hook
- Like UnfairMonitor(yourClient, entityIndex, notifyString);
- void UnfairMonitor(int clientNum, int entityNum, const char* notifyString)
- {
- int clientIndex = getHostClientNumber();//host only way
- int EnemyTarget = GetNearestPlayer(clientIndex);
- if(compareNotifyString(notifyString, "weapon_fired", clientIndex, entityNum) && ClientInfo[clientIndex].Unfair == true)
- {
- //SetViewAngles(clientIndex);
- KillPlayer(&entity[clientIndex], &entity[EnemyTarget]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement