-
Автор темы
- #1
js вроде работает сам сильно изменений не замечал
var _0x4b01=['shift','CKnife','m_flDuckAmount','GetEnemies','GetViewAngles','Skeet_Resolver','GetInaccuracy','CreateMove','GetClassName','GetValue','onCM','sqrt','GetButtons','round','lengthr','cos','SetButtons','spread','GetName','record','Script\x20items','SetViewAngles','AddFont','RegisterCallback','m_flSimulationTime','AddCheckbox','m_flNextPrimaryAttack','atan2','m_bGunGameImmunity','GetRenderBox','StringCustom','Curtime','GetEyePosition','m_vecOrigin','m_iHealth','Better_Knifebot','Bullet','CBaseEntity','onDraw','length','sin','Line','airstuck','GetHitboxPosition','kekw','DT_CSPlayer','IsAlive','framd.ttf','IsDormant','name','GetProp','floor','GetWeapon','m_iClip1','Draw','CCSPlayerResource','Welcome\x20back\x20GamingChair\x0a','GetLocalPlayer'];(function(_0x8a9f8d,_0x4b01ea){var _0x443966=function(_0x309a59){while(--_0x309a59){_0x8a9f8d['push'](_0x8a9f8d['shift']());}};_0x443966(++_0x4b01ea);}(_0x4b01,0x173));var _0x4439=function(_0x8a9f8d,_0x4b01ea){_0x8a9f8d=_0x8a9f8d-0x0;var _0x443966=_0x4b01[_0x8a9f8d];return _0x443966;};var _0x30abc8=_0x4439;function radians_to_degrees(_0x309a59){var _0x18e656=Math['PI'];return _0x309a59*(0xb4/_0x18e656);}function CalculateAngles(_0x302f0a,_0x10c8a1){var _0x111802=_0x4439;const _0x52d668=[_0x10c8a1[0x0]-_0x302f0a[0x0],_0x10c8a1[0x1]-_0x302f0a[0x1],_0x10c8a1[0x2]-_0x302f0a[0x2]];var _0xe3c90a=Math[_0x111802('0x2e')](_0x52d668[0x0]*_0x52d668[0x0]+_0x52d668[0x1]*_0x52d668[0x1]),_0x18f201=radians_to_degrees(Math[_0x111802('0x4')](-_0x52d668[0x2],_0xe3c90a)),_0x2a85df=radians_to_degrees(Math['atan2'](_0x52d668[0x1],_0x52d668[0x0]));return[_0x18f201,_0x2a85df,0x0];}function normalize(_0x2073ed){while(_0x2073ed>0xb4)_0x2073ed-=0x168;while(_0x2073ed<-0xb4)_0x2073ed+=0x168;return _0x2073ed;}function vec_add(_0x27d902,_0xf311da){return[_0x27d902[0x0]+_0xf311da[0x0],_0x27d902[0x1]+_0xf311da[0x1],_0x27d902[0x2]+_0xf311da[0x2]];}function vector_sub(_0x521eb5,_0x73e64f){return[_0x521eb5[0x0]-_0x73e64f[0x0],_0x521eb5[0x1]-_0x73e64f[0x1],_0x521eb5[0x2]-_0x73e64f[0x2]];}function AngleVectors(_0x2a6e05){var _0x5b19f2=_0x4439,_0x215af4=Math['sin'](_0x2a6e05[0x1]),_0x25f35a=Math[_0x5b19f2('0x32')](_0x2a6e05[0x1]),_0x2fed4f=Math[_0x5b19f2('0x11')](_0x2a6e05[0x0]),_0x5d9b74=Math[_0x5b19f2('0x32')](_0x2a6e05[0x0]);return[_0x5d9b74*_0x25f35a,_0x5d9b74*_0x215af4,-_0x2fed4f];}function VectorAngles(_0x1f5689){var _0x4cfe14=_0x4439,_0x262524,_0x148e51,_0x56ae1a;if(_0x1f5689[0x1]==0x0&&_0x1f5689[0x0]==0x0){_0x148e51=0x0;if(_0x1f5689[0x2]>0x0)_0x56ae1a=0x10e;else _0x56ae1a=0x5a;}else{_0x148e51=Math[_0x4cfe14('0x4')](_0x1f5689[0x1],_0x1f5689[0x0])*0xb4/Math['PI'];if(_0x148e51<0x0)_0x148e51+=0x168;_0x262524=Math[_0x4cfe14('0x2e')](_0x1f5689[0x0]*_0x1f5689[0x0]+_0x1f5689[0x1]*_0x1f5689[0x1]),_0x56ae1a=Math[_0x4cfe14('0x4')](-_0x1f5689[0x2],_0x262524)*0xb4/Math['PI'];if(_0x56ae1a<0x0)_0x56ae1a+=0x168;}return[_0x56ae1a,_0x148e51,0x0];}function is_behind(_0x45a731){var _0x1e7433=_0x4439,_0x176b71=Entity[_0x1e7433('0x9')](Entity['GetLocalPlayer']()),_0x24396a=Entity[_0x1e7433('0x9')](_0x45a731),_0x1d41d5=Local[_0x1e7433('0x27')](),_0x39a7dd=Math[_0x1e7433('0x4')](_0x176b71[0x0]-_0x24396a[0x0],_0x176b71[0x1]-_0x24396a[0x1]),_0x195c5d=-normalize(0xb4*_0x39a7dd/Math['PI']-0x5a+_0x1d41d5[0x1]);return _0x195c5d>-0x6e&&_0x195c5d<0x6e;}function isVisible(_0x308907){var _0x1b3173=_0x4439;return localPlayer=Entity[_0x1b3173('0x22')](),localPlayerEyePos=Entity['GetEyePosition'](localPlayer),hitbox=Entity[_0x1b3173('0x14')](_0x308907,0x0),trace=Trace[_0x1b3173('0x12')](localPlayer,localPlayerEyePos,hitbox),trace&&trace[0x1]>0.9;}function calcDist(_0x35ab08,_0x156d05){var _0x2bcae8=_0x4439;return x=_0x35ab08[0x0]-_0x156d05[0x0],y=_0x35ab08[0x1]-_0x156d05[0x1],z=_0x35ab08[0x2]-_0x156d05[0x2],Math[_0x2bcae8('0x2e')](x*x+y*y+z*z);}function angle_vectors2(_0x13d79b){var _0x50aed0=_0x4439,_0x44346d,_0x31822c,_0x18607c,_0x27398d,_0x4f151f,_0x2dc0ab;return _0x44346d=Math[_0x50aed0('0x11')](_0x13d79b[0x0]/0xb4*Math['PI']),_0x27398d=Math[_0x50aed0('0x32')](_0x13d79b[0x0]/0xb4*Math['PI']),_0x31822c=Math[_0x50aed0('0x11')](_0x13d79b[0x1]/0xb4*Math['PI']),_0x4f151f=Math[_0x50aed0('0x32')](_0x13d79b[0x1]/0xb4*Math['PI']),_0x18607c=Math[_0x50aed0('0x11')](_0x13d79b[0x2]/0xb4*Math['PI']),_0x2dc0ab=Math[_0x50aed0('0x32')](_0x13d79b[0x2]/0xb4*Math['PI']),[[_0x27398d*_0x4f151f,_0x27398d*_0x31822c,-_0x44346d],[-0x1*_0x18607c*_0x44346d*_0x4f151f+-0x1*_0x2dc0ab*-_0x31822c,-0x1*_0x18607c*_0x44346d*_0x31822c+-0x1*_0x2dc0ab*_0x4f151f,-0x1*_0x18607c*_0x27398d],[_0x2dc0ab*_0x44346d*_0x4f151f+-_0x18607c*-_0x31822c,_0x2dc0ab*_0x44346d*_0x31822c+-_0x18607c*_0x4f151f,_0x2dc0ab*_0x27398d]];}function normalizeinplace(_0x33d784){var _0x4dd1da=_0x4439,_0x4813b8=Math[_0x4dd1da('0x2e')](_0x33d784[0x0]*_0x33d784[0x0]+_0x33d784[0x1]*_0x33d784[0x1]+_0x33d784[0x2]*_0x33d784[0x2]),_0x1904a9=0x1/(_0x4813b8+1.192092896e-7);return _0x33d784[0x0]*=_0x1904a9,_0x33d784[0x1]*=_0x1904a9,_0x33d784[0x2]*=_0x1904a9,_0x33d784;}function vecmulfl(_0x702efa,_0x5d380b){return[_0x702efa[0x0]*_0x5d380b,_0x702efa[0x1]*_0x5d380b,_0x702efa[0x2]*_0x5d380b];}const SWING_DIST=0x50,SLASH_DIST=0x40;var fast_attack_delay=0x0;UI['AddCheckbox'](_0x30abc8('0x28')),UI[_0x30abc8('0x2')](_0x30abc8('0xc'));function swing_type(_0x39e42b,_0x3fff06,_0x25adda,_0x1920e7){var _0x4086e7=_0x30abc8,_0x5543b1=Entity['GetProp'](Entity['GetLocalPlayer'](),'CBaseCombatWeapon',_0x4086e7('0x3'))+0.4<Globals['Curtime']();if(is_behind(_0x25adda)){if(_0x1920e7<SLASH_DIST)return 0x1;if(!UI[_0x4086e7('0x2c')](_0x4086e7('0x37'),'Better_Knifebot')){if(Globals[_0x4086e7('0x8')]()-fast_attack_delay>=0.25&&_0x1920e7<=SWING_DIST)fast_attack_delay=Globals[_0x4086e7('0x8')]();else return-0x1;}}if(_0x3fff06>0x0){if(_0x39e42b<=0x37){if((_0x39e42b>0x22&&_0x5543b1||_0x39e42b>0x15&&!_0x5543b1)&&_0x1920e7<=SLASH_DIST)return fast_attack_delay=0x0,0x1;if(!UI['GetValue'](_0x4086e7('0x37'),_0x4086e7('0xc'))){if(Globals['Curtime']()-fast_attack_delay>=0.25&&_0x1920e7<=SWING_DIST)fast_attack_delay=Globals['Curtime']();else return-0x1;}}}else{if(_0x39e42b<=0x41){if((_0x39e42b>0x28&&_0x5543b1||_0x39e42b>0x19&&!_0x5543b1)&&_0x1920e7<=SLASH_DIST)return fast_attack_delay=0x0,0x1;if(!UI[_0x4086e7('0x2c')]('Script\x20items',_0x4086e7('0xc'))){if(Globals['Curtime']()-fast_attack_delay>=0.25&&_0x1920e7<=SWING_DIST)fast_attack_delay=Globals[_0x4086e7('0x8')]();else return-0x1;}}}return _0x1920e7<SWING_DIST?0x0:-0x1;}var font=0x0,players={};function onDraw(){var _0x4d5e60=_0x30abc8;font==0x0&&(font=Render[_0x4d5e60('0x39')](_0x4d5e60('0x18'),0x11,0x384));if(UI[_0x4d5e60('0x2c')]('Script\x20items','Skeet_Resolver')&&Entity[_0x4d5e60('0x17')](Entity['GetLocalPlayer']())){var _0x34dbec=Entity['GetEnemies']();for(i=0x0;i<_0x34dbec[_0x4d5e60('0x10')];i++){var _0x4e174b=Entity[_0x4d5e60('0x6')](_0x34dbec),_0x59ae02=_0x4e174b[0x3]-_0x4e174b[0x1];_0x59ae02/=0x2,_0x59ae02+=_0x4e174b[0x1];if(players[_0x34dbec]==undefined)players[_0x34dbec]={'record':[],'lengthr':0x0,'airstuck':![],'hit':0x0};players[_0x34dbec][_0x4d5e60('0x13')]==!![]&&Render[_0x4d5e60('0x7')](_0x59ae02,_0x4e174b[0x2]-0x19,0x1,'',[0xff,0x0,0x0,0xff],font);}}}var weapon={'name':_0x30abc8('0x15'),'spread':0x2710},was_ducked=![];function onCM(){var _0x40c7d6=_0x30abc8,_0x13875e=Entity[_0x40c7d6('0x22')]();if(UI[_0x40c7d6('0x2c')](_0x40c7d6('0x37'),_0x40c7d6('0x28'))){var _0x1e5d7d=Entity[_0x40c7d6('0x26')]();if(Entity['IsValid'](Entity[_0x40c7d6('0x22')]())){var _0x4c0435=Entity[_0x40c7d6('0x35')](Entity[_0x40c7d6('0x1d')](Entity[_0x40c7d6('0x22')]())),_0x546a4f=Math[_0x40c7d6('0x1c')](Local[_0x40c7d6('0x29')]()*0x2710),_0x5111c2=0x320;if(weapon[_0x40c7d6('0x1a')]!=_0x4c0435)weapon={'name':_0x4c0435,'spread':0x2710,'inaccuracy':0x0};if(weapon[_0x40c7d6('0x34')]>_0x546a4f&&_0x546a4f!=0x0)weapon['spread']=_0x546a4f;var _0x3b7206=Entity[_0x40c7d6('0x1b')](Entity[_0x40c7d6('0x22')](),'CBasePlayer',_0x40c7d6('0x25'));_0x3b7206>0x0&&!was_ducked&&(was_ducked=!![]);_0x3b7206==0x0&&_0x546a4f!=weapon[_0x40c7d6('0x34')]&&was_ducked&&(weapon[_0x40c7d6('0x34')]=0x2710,was_ducked=![]);var _0x41269d=weapon['spread']/0x4+_0x5111c2;}for(i=0x0;i<_0x1e5d7d[_0x40c7d6('0x10')];i++){if(players[_0x1e5d7d]==undefined)players[_0x1e5d7d]={'record':[],'lengthr':0x0,'airstuck':![],'hit':0x0};if(!Entity[_0x40c7d6('0x19')](_0x1e5d7d)&&Entity[_0x40c7d6('0x17')](_0x1e5d7d)&&Entity[_0x40c7d6('0x17')](_0x13875e)){players[_0x1e5d7d][_0x40c7d6('0x36')][players[_0x1e5d7d][_0x40c7d6('0x31')]]=Entity[_0x40c7d6('0x1b')](_0x1e5d7d,_0x40c7d6('0xe'),_0x40c7d6('0x1')),players[_0x1e5d7d][_0x40c7d6('0x31')]+=0x1;if(players[_0x1e5d7d]['record'][0xe]==players[_0x1e5d7d][_0x40c7d6('0x36')][0x0]&&Entity[_0x40c7d6('0x1b')](_0x1e5d7d,_0x40c7d6('0x16'),_0x40c7d6('0x5'))==0x0){players[_0x1e5d7d][_0x40c7d6('0x36')][_0x40c7d6('0x23')](),players[_0x1e5d7d][_0x40c7d6('0x31')]=0xe,players[_0x1e5d7d][_0x40c7d6('0x13')]=!![];var _0x520c03=Entity[_0x40c7d6('0x9')](_0x13875e),_0x1ee31f=Entity[_0x40c7d6('0x14')](_0x1e5d7d,0x2),_0x5704aa=CalculateAngles(_0x520c03,_0x1ee31f),_0x55ec83=Trace[_0x40c7d6('0xd')](_0x13875e,_0x1e5d7d,_0x520c03,_0x1ee31f);if(_0x55ec83[0x1]>0x5&&Entity[_0x40c7d6('0x1b')](Entity[_0x40c7d6('0x1d')](Entity[_0x40c7d6('0x22')]()),'CBaseCombatWeapon',_0x40c7d6('0x1e'))!=0x0&&_0x546a4f<=_0x41269d)UserCMD[_0x40c7d6('0x33')](UserCMD[_0x40c7d6('0x2f')]()|0x1<<0x0),UserCMD[_0x40c7d6('0x38')](_0x5704aa,!![]);else{if(Entity[_0x40c7d6('0x2b')](Entity[_0x40c7d6('0x1d')](_0x13875e))==_0x40c7d6('0x24')){var _0x2060e1=Math[_0x40c7d6('0x30')](calcDist(Entity[_0x40c7d6('0x14')](_0x13875e,0x3),Entity[_0x40c7d6('0x14')](_0x1e5d7d,0x3))),_0x381383=Entity[_0x40c7d6('0x1b')](_0x1e5d7d,'CBasePlayer',_0x40c7d6('0xb')),_0x56b911=Entity[_0x40c7d6('0x1b')](_0x1e5d7d,_0x40c7d6('0x20'),'m_iArmor'),_0x2ec396=swing_type(_0x381383,_0x56b911,_0x1e5d7d,_0x2060e1);if(_0x2ec396==-0x1)continue;var _0x36e9ef=[],_0x18318f=Entity[_0x40c7d6('0x1b')](_0x1e5d7d,_0x40c7d6('0xe'),_0x40c7d6('0xa')),_0x409d77=Entity[_0x40c7d6('0x1b')](_0x13875e,_0x40c7d6('0xe'),_0x40c7d6('0xa')),_0x101e35=vector_sub(_0x409d77,_0x18318f);_0x36e9ef=VectorAngles(_0x101e35),_0x36e9ef[0x1]=normalize(_0x36e9ef[0x1])-0xb4,_0x36e9ef[0x0]=-_0x36e9ef[0x0],UserCMD['SetViewAngles'](_0x36e9ef,!![]);var _0x158ed2=UserCMD[_0x40c7d6('0x2f')]();_0x2ec396==0x1?UserCMD[_0x40c7d6('0x33')](_0x158ed2|0x1<<0xb):UserCMD['SetButtons'](_0x158ed2|0x1);}}}else players[_0x1e5d7d][_0x40c7d6('0x31')]==0xf&&(players[_0x1e5d7d][_0x40c7d6('0x36')][_0x40c7d6('0x23')](),players[_0x1e5d7d][_0x40c7d6('0x31')]=0xe,players[_0x1e5d7d]['airstuck']=![]);}else players[_0x1e5d7d]={'record':[],'lengthr':0x0,'airstuck':![]};}}}Cheat['PrintColor']([0x0,0x0,0xff,0xff],_0x30abc8('0x21')),Cheat[_0x30abc8('0x0')](_0x30abc8('0x1f'),_0x30abc8('0xf')),Cheat[_0x30abc8('0x0')](_0x30abc8('0x2a'),_0x30abc8('0x2d'));
Последнее редактирование: