@name Advanced Antiminge @inputs @outputs BT:array DT:array DTP:array KT:array @persist runOnChat(1) interval(100) if(first()|dupefinished()){ } if(chatClk(owner())&owner():lastSaid():index(1)=="$"){ hideChat(1) switch(owner():lastSaid():lower():explode(" ")[1,string]){ case "$b", local TGT=findPlayerByName(owner():lastSaid():lower():explode(" ")[2,string]) if(TGT:isValid()){ BT[BT:count()+1,entity]=TGT holoCreate(BT:count(),TGT:shootPos()-vec(0,0,40),vec(-6,-6,-6),ang(0,0,0),vec(255,255,255)) holoVisible(BT:count(),players(),0) holoVisible(BT:count(),owner(),1) holoVisible(BT:count(),TGT,1) holoModel(BT:count(),"hq_sphere") holoParent(BT:count(),TGT:weapon()) holoShadow(BT:count(),0) holoDisableShading(BT:count(),1) print("blind target(COVERT): "+TGT:name()) }else{ print("blind target not valid") } break case "$d", local TGT=findPlayerByName(owner():lastSaid():lower():explode(" ")[2,string]) if(TGT:isValid()){ DT[DT:count()+1,entity]=TGT timer("disable",50) print("disable target(COVERT): "+TGT:name()) }else{ print("disable target not valid") } break case"$k", local TGT=findPlayerByName(owner():lastSaid():lower():explode(" ")[2,string]) if(TGT:isValid()){ KT[KT:count()+1,entity]=TGT print("kill target: "+TGT:name()) }else{ print("kill target not valid") } break } timer("holos",2000) } if(clk("holos")){ for(I=1,BT:count()){ holoCreate(BT:count(),BT[I,entity]:shootPos()-vec(0,0,40),vec(-6,-6,-6),ang(0,0,0),randvec(0,255)) holoVisible(BT:count(),players(),0) holoVisible(BT:count(),owner(),1) holoVisible(BT:count(),BT[I,entity],1) holoModel(BT:count(),"hq_sphere") holoParent(BT:count(),BT[I,entity]:weapon()) holoShadow(BT:count(),0) holoDisableShading(BT:count(),1) } timer("holos",2000) } if(clk("disable")){ DTP[DT:count(),entity]=propSpawn("models/hunter/blocks/cube4x4x4.mdl",DT[DT:count(),entity]:shootPos(),ang(0,0,0),1) DTP[DT:count(),entity]:setAlpha(0) DTP[DT:count(),entity]:setMass(50000) } for(I=1,BT:count()){ holoColor(I,randvec(0,255)) } for(I=1,DT:count()){ DTP[I,entity]:setPos(DT[I,entity]:shootPos()) } for(I=1,KT:count()){ if(KT[I,entity]:isAlive()){ local Kill=propSpawn("models/props_phx/mk-82.mdl",KT[I,entity]:shootPos(),ang(0,0,0),1) Kill:propBreak() } }