CS 1.6 Cheats Code - Weapon Sound ESP / Localglow / BarrelHack / QuakeGuns Shark Pro Weapon Sound ESP: Codes: void HUD_StudioEvent( const struct mstudioevent_s *event, const struct cl_entity_s *entity ) { if( event->event == 5001 ) { sound_s sound; sound.dwTime = GetTickCount( ); sound.type = atoi( event->options ); sound.vPos = entity->origin; vSound.push_back( sound ); } //logme( "HUD_StudioEvent" ); //logme( "eventID: %i", event->event ); //logme( "Ent name: %s", gPlayers.GetPlayerByIndex( entity->index )->pInfo.name ); oHUD_StudioEvent( event, entity ); } Codes: for( int i = 0; i < vSound.size( ); i++ ) { if( ( GetTickCount( ) - vSound[i].dwTime ) < 900 ) { vec3_t vScrPos; if( CalcScreen( vSound[i].vPos, vScrPos ) ) { gGui.DrawString( vScrPos[0], vScrPos[1], -, -, -, "- -" ); } } else { vSound.erase(&vSound[i]); i--; } } Local Glow: Codes: cl_entity_s *myEnt = gEngfuncs.GetViewModel(); if(myEnt && myEnt->model) { char* mdl = myEnt->model->name; if(strstr(mdl,"v_")) { if(cvar.localglowshells) { ColorEntry* color = PlayerColor(IEngineStudio.GetCurrentEntity()->index); myEnt->curstate.renderamt = 1; myEnt->curstate.rendercolor.r = color->r; myEnt->curstate.rendercolor.b = color->b; myEnt->curstate.rendercolor.g = color->g; myEnt->curstate.renderfx = kRenderFxGlowShell; } else { myEnt->curstate.rendermode = 0; myEnt->curstate.renderfx = kRenderFxNone; } BarrelHack: Codes: void DrawLine(float *from, float *to,int r,int g,int b,float d) { int beamindex = 0; if(!beamindex) beamindex = gEngfuncs.pEventAPI->EV_FindModelIndex("sprites/laserbeam.spr"); gEngfuncs.pEfxAPI->R_BeamPoints(from,to,beamindex,d,1.2f,0,32,2,0,0,r/255,g/255,b/255); } if(cvar.barrel && isValidEnt(ent)) { ColorEntry *pClr = PlayerColor(ent->index); vec3_t vecBegin,vecEnd,up,right,forward; VectorCopy(ent->origin,vecBegin); if(ent->curstate.usehull) vecBegin[2]+=12; else vecBegin[2]+=17; gEngfuncs.pfnAngleVectors(ent->angles,forward,right,up); forward[2]=-forward[2]; vecBegin[0]+=forward[0]*10; vecBegin[1]+=forward[1]*10; vecBegin[2]+=forward[2]*10; vecEnd=vecBegin+forward*999; DrawLine(vecBegin,vecEnd,pClr->r,(vPlayers[ent->index].hasbomb || vPlayers[ent->index].vip)?255:pClr->g,pClr->b,0.001f); } QuakeGuns: Codes: void QuakeGuns() { cl_entity_s* vm = pEngfuncs->GetViewModel(); if(!vm) return; float gunoffsetr = GetGunOffsetr(vm); if(gunoffsetr == 0) return; float* org = vm->origin; float* ang = vm->angles; VectorCopy(mainViewAngles, ang); vec3_t forward, right, up; pEngfuncs->pfnAngleVectors(mainViewAngles, forward, right, up); org[0] += forward[0] + up[0] + right[0]*gunoffsetr; org[1] += forward[1] + up[1] + right[1]*gunoffsetr; org[2] += forward[2] + up[2] + right[2]*gunoffsetr; } //=============================================================================== float GetGunOffsetr(cl_entity_s* vm ) { if(!vm->model) return 0; char* gunname = vm->model->name; if(!gunname || !gunname[0]) return 0; #define CHECKGUNOFFSET(a,b) if(!strcmp(a,gunname)) return b; //Counter-Strike 1.6 if(MOD_ID == CS && cvar.misc_quakeguns == 1) { CHECKGUNOFFSET("ak47.mdl", -6.81f); CHECKGUNOFFSET("aug.mdl", -7.30f); CHECKGUNOFFSET("awp.mdl", -6.02f); CHECKGUNOFFSET("deagle.mdl", -4.68f); CHECKGUNOFFSET("famas.mdl", -4.76f); CHECKGUNOFFSET("fiveseven.mdl", -4.84f); CHECKGUNOFFSET("g3sg1.mdl", -6.1f); CHECKGUNOFFSET("galil.mdl", -4.77f); CHECKGUNOFFSET("glock18.mdl", -4.6f); CHECKGUNOFFSET("m249.mdl", -5.22f); //Needs MoveZ 2.00 CHECKGUNOFFSET("m3.mdl", -5.15f); CHECKGUNOFFSET("m4a1.mdl", -6.45f); CHECKGUNOFFSET("mac10.mdl", -5.24f); CHECKGUNOFFSET("mp5.mdl", -5.53f); //Needs MoveZ -0.02 CHECKGUNOFFSET("p90.mdl", -4.34f); CHECKGUNOFFSET("p228.mdl", -4.74f); CHECKGUNOFFSET("scout.mdl", -5.14f); CHECKGUNOFFSET("sg550.mdl", -7.15f); CHECKGUNOFFSET("sg552.mdl", -5.24f); CHECKGUNOFFSET("tmp.mdl", -6.4f); CHECKGUNOFFSET("ump45.mdl", -6.2f); CHECKGUNOFFSET("usp.mdl", -4.75f); CHECKGUNOFFSET("xm1014.mdl", -6.06f); } if( MOD_ID == CS && cvar.misc_quakeguns == 2 ) { CHECKGUNOFFSET("ak47.mdl", -6.75f); CHECKGUNOFFSET("aug.mdl", -6.35f); CHECKGUNOFFSET("awp.mdl", -6.60f); CHECKGUNOFFSET("deagle.mdl", -4.14f); CHECKGUNOFFSET("famas.mdl", -5.20f); CHECKGUNOFFSET("fiveseven.mdl", -4.85f); CHECKGUNOFFSET("g3sg1.mdl", -6.38f); CHECKGUNOFFSET("galil.mdl", -4.55f); CHECKGUNOFFSET("glock18.mdl", -4.55f); CHECKGUNOFFSET("glock18lowres.mdl", -4.55f); CHECKGUNOFFSET("m249.mdl", -5.10f); //Needs MoveZ 2.00 CHECKGUNOFFSET("m3.mdl", -5.40f); CHECKGUNOFFSET("m4a1.mdl", -6.95f); CHECKGUNOFFSET("mac10.mdl", -6.50f); CHECKGUNOFFSET("mp5.mdl", -5.85f); //Needs MoveZ -0.02 CHECKGUNOFFSET("p228.mdl", -4.68f); CHECKGUNOFFSET("p90.mdl", -5.15f); CHECKGUNOFFSET("scout.mdl", -5.65f); CHECKGUNOFFSET("sg550.mdl", -7.50f); CHECKGUNOFFSET("sg552.mdl", -5.50f); CHECKGUNOFFSET("tmp.mdl", -7.15f); CHECKGUNOFFSET("ump45.mdl", -6.15f); CHECKGUNOFFSET("usp.mdl", -4.70f); CHECKGUNOFFSET("xm1014.mdl", -6.20f); } //Natural-Selection 3.2 if(MOD_ID == NS) { CHECKGUNOFFSET("gg.mdl", -6.00f); CHECKGUNOFFSET("gg_color.mdl", -6.00f); CHECKGUNOFFSET("gg_hv.mdl", -6.00f); CHECKGUNOFFSET("gg_hv_color.mdl", -6.00f); CHECKGUNOFFSET("hg.mdl", -5.07f); CHECKGUNOFFSET("hg_color.mdl", -5.07f); CHECKGUNOFFSET("hg_hv.mdl", -5.07f); CHECKGUNOFFSET("hg_hv_color.mdl", -5.07f); CHECKGUNOFFSET("hmg.mdl", -6.20f); CHECKGUNOFFSET("hmg_color.mdl", -6.20f); CHECKGUNOFFSET("hmg_hv.mdl", -6.20f); CHECKGUNOFFSET("hmg_hv_color.mdl", -6.20f); CHECKGUNOFFSET("mg.mdl", -4.55f); CHECKGUNOFFSET("mg_color.mdl", -4.55f); CHECKGUNOFFSET("mg_hv.mdl", -4.55f); CHECKGUNOFFSET("mg_hv_color.mdl", -4.55f); CHECKGUNOFFSET("sg.mdl", -3.45f); CHECKGUNOFFSET("sg_color.mdl", -3.45f); CHECKGUNOFFSET("sg_hv.mdl", -3.45f); CHECKGUNOFFSET("sg_hv_color.mdl", -3.45f); CHECKGUNOFFSET("welder.mdl", -6.65f); CHECKGUNOFFSET("welder_color.mdl", -6.65f); CHECKGUNOFFSET("welder_hv.mdl", -6.65f); CHECKGUNOFFSET("welder_hv_color.mdl", -6.65f); } //Day of Defeat 1.3 if(MOD_ID == DOD) { CHECKGUNOFFSET("30cal.mdl", -7.00f); CHECKGUNOFFSET("98k.mdl", -4.05f); CHECKGUNOFFSET("bar.mdl", -5.95f); CHECKGUNOFFSET("bazooka.mdl", -4.36f); CHECKGUNOFFSET("bren.mdl", -5.60f); CHECKGUNOFFSET("colt.mdl", -6.95f); CHECKGUNOFFSET("enfield.mdl", -4.40f); CHECKGUNOFFSET("enfield_scoped.mdl", -4.40f); CHECKGUNOFFSET("fcarb.mdl", -4.85f); CHECKGUNOFFSET("fg42.mdl", -4.10f); CHECKGUNOFFSET("garand.mdl", -5.26f); CHECKGUNOFFSET("greasegun.mdl", -6.24f); CHECKGUNOFFSET("k43.mdl", -4.62f); CHECKGUNOFFSET("luger.mdl", -11.30f); CHECKGUNOFFSET("m1carbine.mdl", -4.84f); CHECKGUNOFFSET("mg34.mdl", -5.20f); CHECKGUNOFFSET("mg42.mdl", -6.05f); CHECKGUNOFFSET("mp40.mdl", -8.30f); CHECKGUNOFFSET("mp44.mdl", -7.88f); CHECKGUNOFFSET("panzerschreck.mdl", -6.67f); CHECKGUNOFFSET("piat.mdl", -5.30f); CHECKGUNOFFSET("scoped98k.mdl", -4.05f); CHECKGUNOFFSET("scopedfg42.mdl", -4.10f); CHECKGUNOFFSET("spring.mdl", -4.92f); CHECKGUNOFFSET("sten.mdl", -5.62f); CHECKGUNOFFSET("tommy.mdl", -7.32f); CHECKGUNOFFSET("webley.mdl", -8.59f); } //Half-Life Deathmatch if(MOD_ID == HL) { CHECKGUNOFFSET("9mmar.mdl", -6.50f); CHECKGUNOFFSET("9mmhandgun.mdl", -8.10f); CHECKGUNOFFSET("357.mdl", -6.05f); CHECKGUNOFFSET("crossbow.mdl", -9.00f); CHECKGUNOFFSET("egon.mdl", -8.50f); CHECKGUNOFFSET("gauss.mdl", -6.95f); CHECKGUNOFFSET("hgun.mdl", -7.82f); CHECKGUNOFFSET("rpg.mdl", -10.7f); CHECKGUNOFFSET("shotgun.mdl", -6.35f); } //Opposing Force if(MOD_ID == OP4) { CHECKGUNOFFSET("9mmar.mdl", -6.50f); CHECKGUNOFFSET("9mmhandgun.mdl", -8.10f); CHECKGUNOFFSET("357.mdl", -6.05f); CHECKGUNOFFSET("crossbow.mdl", -9.00f); CHECKGUNOFFSET("desert_eagle.mdl", -6.00f); CHECKGUNOFFSET("dissplacer.mdl", -7.55f); CHECKGUNOFFSET("egon.mdl", -8.50f); CHECKGUNOFFSET("gauss.mdl", -6.95f); CHECKGUNOFFSET("m40a1.mdl", -6.00f); CHECKGUNOFFSET("hgun.mdl", -8.15f); CHECKGUNOFFSET("rpg.mdl", -10.7f); CHECKGUNOFFSET("saw.mdl", -3.60f); CHECKGUNOFFSET("shotgun.mdl", -6.35f); CHECKGUNOFFSET("spore_launcher.mdl", -8.00f); } //Team Fortress Classic if(MOD_ID == TFC) { CHECKGUNOFFSET("flame.mdl", -9.75f); CHECKGUNOFFSET("tfac.mdl", -8.45f); CHECKGUNOFFSET("tfc_12gauge.mdl", -4.80f); CHECKGUNOFFSET("tfc_nailgun.mdl", -4.30f); CHECKGUNOFFSET("tfc_pistol.mdl", -5.00f); CHECKGUNOFFSET("tfc_railgun.mdl", -9.25f); CHECKGUNOFFSET("tfc_rpg.mdl", -9.00f); CHECKGUNOFFSET("tfc_shotgun.mdl", -5.00f); CHECKGUNOFFSET("tfc_sniper.mdl", -4.10f); CHECKGUNOFFSET("tfc_supernailgun.mdl", -4.50f); CHECKGUNOFFSET("tfgl.mdl", -6.32f); } return 0; } Get Daily Fresh Recipe Direct in Your Blog Kitchen Share : Tweet More Related Post
ConversionConversion EmoticonEmoticon