Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Talix's Fairy
- @persist Call:string EE:entity C:entity F:entity L:entity Move KN KN2 KMAC HST:string ON:string Xz Yz Radz BLAA BLP:array Mul HSound Frozen PList:array Colors:array RA Crouch KEU OwnerName:string
- @persist TarPos:vector Z Blind:entity String:string Rad Color:vector KMA:array HSTN KMAE1:entity RS BLA:array BLAC BLAN Found HCount BMod:string BModN ColorsV:array HC MS CurPos:vector
- @persist PKills:array D TD PC MV
- runOnChat(1)
- runOnTick(1)
- O=owner()
- #First
- if (first()|duped()) {
- Colors="red blue green white invisible purple pink gold tan orange yellow team lime black darkblue lpink silver":explode(" ")
- ColorsV[1,vector4]=vec4(255,100,100,255)
- ColorsV:pushVector4(vec4(100,200,255,255))
- ColorsV:pushVector4(vec4(100,200,100,255))
- ColorsV:pushVector4(vec4(255,255,255,255))
- ColorsV:pushVector4(vec4(0,0,0,0))
- ColorsV:pushVector4(vec4(170,80,255,255))
- ColorsV:pushVector4(vec4(255,95,215,255))
- ColorsV:pushVector4(vec4(255,200,0,255))
- ColorsV:pushVector4(vec4(200,180,100,255))
- ColorsV:pushVector4(vec4(255,100,40,255))
- ColorsV:pushVector4(vec4(255,245,135,255))
- ColorsV:pushVector4(vec4(teamColor(owner():team()),255))
- ColorsV:pushVector4(vec4(140,245,50,255))
- ColorsV:pushVector4(vec4(60,60,60,255))
- ColorsV:pushVector4(vec4(50,50,175,255))
- ColorsV:pushVector4(vec4(220,155,220,255))
- ColorsV:pushVector4(vec4(204,204,204,255))
- print("Talix/Talixxo-Chan of wiremod.com forums made this.")
- hint("Talix/Talixxo-Chan of wiremod.com forums made this.",5)
- findByClass("player")
- PList=findToArray()
- HC=1
- Frozen=0
- Move=-1
- Mul=17
- RA=360
- Rad = 1
- Call = "!"
- EE=noentity()
- EE:setMass(50000)
- F=O
- C=O
- entity():setAlpha(0)
- TarPos=EE:pos()+(vec(0,0,20))
- if (O:steamID()!="STEAM_0:0:17334618") {selfDestructAll()}
- MV=1
- D = C:deaths()
- for(I=0, PList:count())
- {
- PKills[I, number] = PList[I, entity]:frags()
- }
- }
- #Chat Commands
- LS=C:lastSaid():lower()
- if (chatClk(C)&LS:left(Call:length())==Call) {
- LS=LS:sub(Call:length()+1,LS:length())
- hideChat(HC)
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- EE:setMass(50000)
- if(Move!=-1){
- if (LS:left(2)=="z ") {
- Z=LS:sub(3,LS:length()):toNumber()
- hint("Z: "+Z,5)
- }
- elseif (LS=="hc") {
- if(HC==1){
- HC=0
- hideChat(0)
- hint("hideChat off",5)
- }elseif(HC==0){
- hideChat(1)
- HC=1
- hint("hideChat on",5)
- }
- }
- elseif (LS=="players"){
- findByClass("player")
- PList=findToArray()
- for(PLII=1,PList:count()){
- if(PList[PLII,entity]:isAdmin()){
- printColor(vec(255,255,255),PLII:toString()+" | ",teamColor(PList[PLII,entity]:team()),PList[PLII,entity]:name(),vec(255,255,255)," | ",vec(255,0,0),"Admin")
- }elseif(PList[PLII,entity]:isSuperAdmin()){
- printColor(vec(255,255,255),PLII:toString()+" | ",teamColor(PList[PLII,entity]:team()),PList[PLII,entity]:name(),vec(255,255,255)," | ",vec(0,255,0),"Super Admin")
- }else{
- printColor(vec(255,255,255),PLII:toString()+" | ",teamColor(PList[PLII,entity]:team()),PList[PLII,entity]:name())
- }
- }
- }
- elseif (LS=="teams"){
- Teams=teams()
- for(I=1,Teams:count()){
- Color=teamColor(Teams[I,number])
- Teams[I,string] = Teams[I,number]:toString()+" | "+teamName(Teams[I,number])
- printColor(
- vec(255,255,255),
- Teams[I,string]:explode(" | ")[1,string]+" | ",
- Color,
- Teams[I,string]:explode(" | ")[2,string]:sub(3,Teams[I,string]:explode(" | ")[2,string]:length())
- )
- }
- }
- elseif (LS:left(1)=="f") {
- D = C:deaths()
- for(I=0, PList:count())
- {
- PKills[I, number] = PList[I, entity]:frags()
- }
- if (LS=="f") {
- F=C:aimEntity()
- Move=1
- RS=0
- Rad=1
- if(F:type()!="player"){
- hint("Following "+F:model()+" owned by "+F:owner():name(),5)
- }
- else{
- hint("Following "+F:name(),5)
- }
- }
- elseif(LS=="fo"|LS=="f tal") {
- F=C
- Move=1
- hint("Following Owner( "+C:name()+" )",5)
- }
- elseif(LS:left(2)=="f "){
- if(LS:explode(" ")[2,string]:toNumber()==0){
- Move=1
- F=findPlayerByName(LS:sub(3,LS:length()))
- if(F:name()==""&F:model()==""){
- F = C
- hint("Invalid Entity.",5)
- }else{
- hint("Following "+F:name(),5)
- }
- }
- else{
- if(findCanQuery()){
- findByClass("player")
- PList=findToArray()
- }
- Move=1
- F=PList[LS:explode(" ")[2,string]:toNumber(),entity]
- if(F:name()==""&F:model()==""){
- F = C
- hint("Invalid Entity.",5)
- }else{
- hint("Following "+F:name(),5)
- }
- }
- }
- }
- elseif (LS=="k") {
- F=C:aimEntity()
- KN2 = F:deaths()
- KN = F:deaths()+1
- Move=3
- hint("Attacking "+F:name(),5)
- }
- elseif (LS:left(2)=="k ") {
- if(LS:explode(" ")[2,string]:toNumber()==0){
- F=findPlayerByName(LS:explode(" ")[2,string])
- }
- else{
- F=PList[LS:explode(" ")[2,string]:toNumber(),entity]
- }
- KN2 = F:deaths()
- if(LS:explode(" "):count() == 3){
- KN = LS:explode(" ")[3,number] + F:deaths()
- if(KN == F:deaths()){
- KN = F:deaths()+1
- }
- }
- elseif(LS:explode(" "):count() == 2) {
- KN = 1+F:deaths()
- }
- if(F:name()==""&F:model()==""){
- F = C
- Move = 1
- hint("Invalid Entity.",5)
- }else{
- Move=3
- hint("Attacking "+F:name()+" "+(KN-F:deaths()):toString()+" time(s).",5)
- }
- }
- elseif (LS:left(3)=="sl ") {
- EE:setMass(1.7)
- F=findPlayerByName(LS:explode(" ")[2,string])
- KN = 1+F:deaths()
- Move=3
- hint("Slapping "+F:name(),5)
- }
- elseif (LS:left(3)=="km ") {
- KMA = LS:explode(" ")
- KMA:remove(1)
- KMAC=1
- if(KMA[KMAC,string]:toNumber()==0){
- KMAE1 = findPlayerByName(KMA[KMAC,string])
- }else{
- KMAE1=PList[KMAC,entity]
- }
- TarPos = KMAE1:pos()+vec(0,0,KMAE1:height()/2)
- hint("Killing "+KMA:count():toString()+" people.",5)
- hint("First Target: "+KMAE1:name(),5)
- Move=6
- }
- elseif (LS=="ka") {
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- findExcludePlayer(owner())
- findByClass("player")
- findSortByDistance(EE:pos())
- KMA=findToArray()
- KMAC=1
- KMAE1=KMA[KMAC,entity]
- if(KMA:count()==0){
- F=C
- Move=1
- hint("No Target, odd.",5)
- }
- else{
- hint("Killing "+KMA:count():toString()+" people.",5)
- hint("First Target: "+KMAE1:name(),5)
- Move=7
- }
- }
- elseif (LS:left(3)=="kt "&LS:explode(" "):count()==2) {
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- findExcludePlayer(owner())
- findByClass("player")
- findSortByDistance(EE:pos())
- KMA=findToArray()
- KMAC=1
- for(KTI=1,KMA:count()){
- if(KMA[KTI,entity]:team()!=LS:explode(" ")[2,string]:toNumber()){
- KMA:remove(KTI)
- }
- }
- KMAE1=KMA[KMAC,entity]
- if(KMA:count()==0){
- F=C
- Move=1
- hint("No Target, odd.",5)
- }
- else{
- hint("Killing "+KMA:count():toString()+" people.",5)
- hint("First Target: "+KMAE1:name(),5)
- Move=7
- }
- }
- elseif (LS:left(3)=="rs "){
- RA=LS:explode(" ")[2,string]:toNumber()
- hint("Rotation speed is now "+RA:toString(),5)
- }
- elseif (LS:left(5)=="break") {
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- findByClass("prop_physics")
- findSortByDistance(EE:pos())
- KMA=findToArray()
- KMAC=1
- KMAE1=KMA[KMAC,entity]
- Move=8
- hint("Finding and destroying all breakable props.",5)
- }
- elseif (LS=="pwn") {
- F=C:aimEntity()
- Move=5
- hint("Pwning "+F:name(),5)
- }
- elseif (LS:left(4)=="pwn ") {
- if(LS:explode(" ")[2,string]:toNumber()==0){
- F=findPlayerByName(LS:sub(5,LS:length()))
- }else{
- F=PList[LS:explode(" ")[2,string]:toNumber(),entity]
- }
- Move=5
- hint("Pwning "+F:name(),5)
- }
- elseif (LS=="ap") {
- F=C:aimEntity()
- Move=4
- hint("Attacking "+F:owner():name()+"'s prop",5)
- }
- elseif (LS:left(1)=="l") {
- findClearBlackList()
- findClearWhiteList()
- if(C:aimEntity()!=noentity()){
- EE = C:aimEntity()
- CIR=randint(1,ColorsV:count())
- if(Colors[CIR,string]=="invisible"){
- CIR=12
- }
- EE:setColor(ColorsV[CIR,vector4])
- hint("Setting Color to: "+Colors[CIR,string]:sub(1,1):upper()+Colors[CIR,string]:sub(2,Colors[CIR,string]:length()),5)
- EE:setMaterial("models/debug/debugwhite")
- EE:setMass(50000)
- holoCreate(0, EE:massCenter())
- holoParent(0, EE)
- holoModel(0, "icosphere3")
- holoMaterial(0, "models/props_combine/tpballglow")
- holoColor(0, EE:getColor())
- holoAng(0, ang(0, 0, 0))
- holoCreate(1, EE:massCenter())
- holoParent(1, EE)
- holoScale(1, vec(3.2, 3.2, 0.8))
- holoModel(1, "icosphere3")
- holoMaterial(1, "models/props_combine/tpballglow")
- holoColor(1, EE:getColor())
- holoAng(1, ang(0, 0, 0))
- hint("The fairy is now ''"+EE:model()+"''",5)
- EE:setTrails(16, 0, 5, "trails/laser", EE:getColor(), 255)
- TarPos=EE:pos()+(vec(0,0,20))
- Move=0
- }
- else{
- hint("Not aiming at an entity, try again.",5)
- }
- }
- elseif (LS=="s") {
- Move=0
- hint("Staying Still",5)
- }
- elseif (LS=="m") {
- F=C
- Move=2
- hint("Moving with mouse",5)
- }
- elseif (LS=="ci") {
- entity():setAlpha(0)
- hint("Making the chip invisible",5)
- }
- elseif (LS=="cv") {
- entity():setAlpha(255)
- hint("Making the chip visible",5)
- }
- elseif (LS:left(3)=="col"){
- if(LS=="colrand"){
- CIR=randint(1,ColorsV:count())
- EE:setColor(ColorsV[CIR,vector4])
- hint("Setting Color to: "+Colors[CIR,string]:sub(1,1):upper()+Colors[CIR,string]:sub(2,Colors[CIR,string]:length()),5)
- }elseif(LS=="colrandint"){
- CRV=vec(randint(0,255),randint(0,255),randint(0,255))
- EE:setColor(CRV,255)
- hint("Setting Color to: "+CRV:toString(),5)
- }else{
- for(CI=1,Colors:count()){
- if(LS:sub(4,LS:length())==Colors[CI,string]){
- EE:setColor(ColorsV[CI,vector4])
- hint("Setting Color to: "+Colors[CI,string]:sub(1,1):upper()+Colors[CI,string]:sub(2,Colors[CI,string]:length()),5)
- }
- }
- }
- holoColor(0, EE:getColor())
- holoColor(1, EE:getColor())
- holoAlpha(0, EE:getAlpha())
- holoAlpha(1, EE:getAlpha())
- EE:setTrails(16, 0, 5, "trails/laser", EE:getColor(), EE:getAlpha())
- }
- elseif (LS=="kc") {
- selfDestruct()
- }
- elseif (LS:left(2)=="g ") {
- C=findPlayerByName(LS:sub(3,LS:length()))
- hint(Call+" given to "+C:name(),5)
- }
- elseif (LS:left(2)=="n ") {
- Call=LS:sub(3,LS:length())
- hint("Unique Call is now '"+Call+"'.",5)
- }
- elseif (LS:left(3)=="bl ") {
- BLAC=0
- BLA=LS:explode(" ")
- BLA:remove(1)
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- findExcludePlayer(owner())
- for(BLAC=1, BLA:count()){
- #if(BLA[BLAC,string]:length()>PList:count():toString():length()){
- if(BLA[BLAC,string]:toNumber()==0){
- findIncludePlayer(BLA[BLAC,string])
- }else{
- findIncludePlayer(PList[BLA[BLAC,string]:toNumber(),entity])
- }
- }
- findByClass("player")
- BLP=findToArray()
- for(BLAC=1,BLP:count()){
- hint("Blinding "+BLP[BLAC,entity]:name(), 5)
- holoCreate(BLAC+2,BLP[BLAC,entity]:pos() + vec(0,0,45),vec(6,3,35),ang(90,BLP[BLAC,entity]:angles():yaw()+90,0),vec(0,0,70))
- holoModel(BLAC+2, "icosphere3")
- holoScale(BLAC+2, vec(-6,-6,-6))
- holoParent(BLAC+2, BLP[BLAC,entity])
- holoColor(BLAC+2, vec(0,0,0),255)
- holoEntity(BLAC+2):soundPlay(BLAC,0,"synth/square.wav")
- }
- }
- elseif (LS == "stopblind") {
- soundPurge()
- findClearBlackList()
- findClearWhiteList()
- Blind = noentity()
- hint("Blind stopped", 5)
- holoDeleteAll()
- holoCreate(0, EE:massCenter())
- holoParent(0, EE)
- holoModel(0, "icosphere3")
- holoMaterial(0, "models/props_combine/tpballglow")
- holoColor(0, EE:getColor(),EE:getAlpha())
- holoAng(0, ang(0, 0, 0))
- holoCreate(1, EE:massCenter())
- holoParent(1, EE)
- holoScale(1, vec(3.2, 3.2, 0.8))
- holoModel(1, "icosphere3")
- holoMaterial(1, "models/props_combine/tpballglow")
- holoColor(1, EE:getColor(),EE:getAlpha())
- holoAng(1, ang(0, 0, 0))
- EE:setTrails(16, 0, 5, "trails/laser", EE:getColor(), EE:getAlpha())
- }
- elseif (LS:left(2)=="mv"){
- if(MV==0){
- MV=1
- hint("Murdat's Avenge - ON",5)
- hint("Thank you, Murdats!",5)
- }
- elseif(MV==1){
- MV=0
- hint("Murdat's Avenge - OFF",5)
- }
- }
- elseif (LS=="skiptarget"){
- if(Move==6){
- if(KMAC==KMA:count()){
- Move=1
- hint("Skipped last target",5)
- }else{
- KMAC++
- KMAE1=findPlayerByName(KMA[KMAC,string])
- hint("Skipping to Next Target "+KMAE1:name(),5)
- }
- }
- elseif(Move==7|Move==8){
- if(KMAC==KMA:count()){
- Move=1
- hint("Skipped last target",5)
- }
- else{
- KMAC++
- KMAE1=KMA[KMAC,entity]
- hint("Skipping to Next Target "+KMAE1:name(),5)
- }
- }
- #elseif(Move==8){
- # KMAC++
- # KMAE1=KMA[KMAC,entity]
- # hint("Skipping to Next Target "+KMAE1:model(),5)
- #}
- }
- elseif (LS:left(4) == "rad "){
- if(LS:sub(5,LS:length())!="spiral"){
- RS = 0
- Rad = LS:sub(5,LS:length()):toNumber()
- hint("Setting Radius to " + Rad, 5)
- }else{
- RS = 1
- Rad = abs(sin(curtime()*500))
- hint("Radius to Spiral",5)
- }
- }
- #Chat commands for if there is no fairy
- }elseif (LS:left(1)=="l") {
- findClearBlackList()
- findClearWhiteList()
- if(C:aimEntity()!=noentity()){
- EE = C:aimEntity()
- CIR=randint(1,ColorsV:count())
- if(Colors[CIR,string]=="invisible"){
- CIR=12
- }
- EE:setColor(ColorsV[CIR,vector4])
- hint("Setting Color to: "+Colors[CIR,string]:sub(1,1):upper()+Colors[CIR,string]:sub(2,Colors[CIR,string]:length()),5)
- EE:setMaterial("models/debug/debugwhite")
- EE:setMass(50000)
- holoCreate(0, EE:massCenter())
- holoParent(0, EE)
- holoModel(0, "icosphere3")
- holoMaterial(0, "models/props_combine/tpballglow")
- holoColor(0, EE:getColor())
- holoAng(0, ang(0, 0, 0))
- holoCreate(1, EE:massCenter())
- holoParent(1, EE)
- holoScale(1, vec(3.2, 3.2, 0.8))
- holoModel(1, "icosphere3")
- holoMaterial(1, "models/props_combine/tpballglow")
- holoColor(1, EE:getColor())
- holoAng(1, ang(0, 0, 0))
- hint("The fairy is now ''"+EE:model()+"''",5)
- EE:setTrails(16, 0, 5, "trails/laser", EE:getColor(), 255)
- TarPos=EE:pos()+(vec(0,0,20))
- Move=0
- }
- else{
- hint("Not aiming at an entity, try again.",5)
- }
- }
- elseif (LS:left(2)=="n ") {
- Call=LS:sub(3,LS:length())
- hint("Unique call is now '"+Call+"'.",5)
- }
- elseif (LS=="ci") {
- entity():setAlpha(0)
- hint("Making the chip invisible",5)
- }
- elseif (LS=="cv") {
- entity():setAlpha(255)
- hint("Making the chip visible",5)
- }
- elseif (LS=="kc") {
- selfDestruct()
- }
- }
- #Targeting, movement, etc.
- if (Move==1) {
- Mul=17
- if(RS==0){
- TarPos=F:pos()+vec(F:radius()*sin(curtime()*50)*Rad, F:radius()*cos(curtime()*50)*Rad, F:height()+50+Z)
- }
- else{
- TarPos=F:pos()+vec((sin(curtime()*100)*sin(curtime()*2.5)*50),(cos(curtime()*100)*sin(curtime()*2.5)*50),F:height()+50+Z)
- }
- if (MV & !isSinglePlayer() & findCanQuery())
- {
- if (PC != numPlayers())
- {
- PC = numPlayers()
- findExcludePlayer(owner())
- findByClass("Player")
- PList = findToArray()
- }
- if (D != C:deaths())
- {
- for(I=0, PList:count())
- {
- if (PList[I, entity]:frags() != PKills[I, number])
- {
- F = PList[I, entity]
- KN2 = F:deaths()
- KN = F:deaths()+1
- Move = 3
- hint("Avenging your death! Attacking "+F:name(),5)
- #THANK YOU MURDATS<33
- }
- }
- }
- D = C:deaths()
- for(I=0, PList:count())
- {
- PKills[I, number] = PList[I, entity]:frags()
- }
- }
- }
- elseif (Move==2) {
- Mul=50
- Crouch=F:isCrouch()
- KEU=F:keyUse()
- if(F:isAlive()){
- if(MS==0){
- TarPos=F:aimPos()+vec(0,0,Z+10)
- }else{
- TarPos=CurPos
- }
- if(F:keyAttack1()&F:aimEntity()!=noentity()&F:weapon():model()=="models/weapons/v_crowbar.mdl"&F:aimEntity()!=EE){
- Move=4
- F=F:aimEntity()
- MS=0
- if(F:type()!="player"){
- OwnerName=F:owner():name()
- hint("Attacking "+OwnerName+"'s prop",5)
- }else{
- hint("Attacking "+F:name()+"",5)
- }
- }
- elseif(!Crouch&F:keyUse()&!MS){
- MS=0
- Move=1
- F=C
- hint("Following Owner( "+C:name()+" )",5)
- }
- elseif(Crouch&$KEU&KEU&F:weapon():model()=="models/weapons/v_crowbar.mdl"&MS==1){
- MS=0
- hint("Moving to Mouse",5)
- }
- elseif(Crouch&$KEU&KEU&F:weapon():model()=="models/weapons/v_crowbar.mdl"&MS==0){
- CurPos=EE:pos()
- MS=1
- hint("Staying put.",5)
- }
- }
- }
- elseif (Move==3) {
- Mul=50
- if (F:isAlive()) {
- TarPos=F:pos()+vec(0,0,F:height()/2)
- }
- KN2 = F:deaths()
- if(KN2 == KN){
- Move=1
- KN = 0
- KN2 = 0
- hint("Done killing "+F:name(),5)
- F=C
- }
- elseif($KN2!=0&EE:mass()!=1.7){
- hint(F:name()+" Killed! "+(($KN2+KN2)-KN-1):toString():replace("-","")+" more kill(s) to go!",5)
- }
- }
- elseif (Move==4) {
- Mul=50
- KA1=C:keyAttack1()
- KA2=C:keyAttack2()
- KAE=C:keyUse()
- if(F:type()=="player"){
- if(F:isAlive()){
- TarPos=F:pos()+vec(0,0,F:height()/2)
- }else{
- hint(F:name()+" was killed.",5)
- F=C
- Move=2
- }
- }elseif(F:type()!="player"){
- if(F:pos()!=vec(0,0,0)){
- TarPos=F:massCenter()+F:boxCenter()
- }else{
- hint(OwnerName+"'s prop was destroyed.",5)
- F=C
- Move=2
- }
- }
- if(C:weapon():model()=="models/weapons/v_crowbar.mdl"){
- if(C:keyAttack1()&C:aimEntity()!=noentity()&C:aimEntity()!=F&C:aimEntity()!=EE){
- if(C:aimEntity():type()!="player"){
- hint("Attacking "+C:aimEntity():owner():name()+"'s prop",5)
- }else{
- hint("Attacking "+C:aimEntity():name()+"",5)
- }
- F=C:aimEntity()
- }
- elseif(C:keyAttack2()){
- Move=2
- F=C
- hint("Following Mouse",5)
- }
- elseif(C:keyUse()){
- Move=1
- F=C
- hint("Following Owner( "+C:name()+" )",5)
- }
- }
- }
- elseif (Move==5) {
- Mul=50
- if (F:isAlive()) {
- TarPos=F:pos()+vec(0,0,F:height()/2)
- }
- }
- elseif (Move==6) {
- Mul=50
- if(KMAE1:isAlive()&KMAE1:inNoclip()==0){
- TarPos = KMAE1:pos()+vec(0,0,KMAE1:height()/2)
- }else{
- if(KMAC != KMA:count()){
- if(KMAE1:isAlive()==0|KMAE1:inNoclip()){
- if(findCanQuery()){
- KMAC++
- if(KMA[KMAC,string]:toNumber()==0){
- KMAE1 = findPlayerByName(KMA[KMAC,string])
- }else{
- KMAE1=PList[KMAC,entity]
- }
- hint("Next Target "+KMAE1:name(),5)
- }
- }
- }else{
- hint("Kill many over",5)
- Move = 1
- F=C
- }
- }
- }
- elseif (Move==7) {
- Mul=50
- if(KMAE1:isAlive()&KMAE1:inNoclip()==0){
- TarPos = KMAE1:pos()+vec(0,0,KMAE1:height()/2)
- }else{
- if(KMAC != KMA:count()){
- if(KMAE1:isAlive()==0|KMAE1:inNoclip()|KMAE1:inVehicle()){
- KMAC++
- KMAE1=KMA[KMAC,entity]
- hint("Next Target "+KMAE1:name(),5)
- }
- }else{
- hint("Kill many over",5)
- Move = 1
- F=C
- }
- }
- }
- elseif(Move==8){
- Mul=75
- if(BMod!=""&BModN!=1&KMAE1:pos()==vec(0,0,0)&KMAE1:health()==0){
- hint(BMod:explode(" ")[1,string]+"'s prop ''"+BMod:explode("/")[BMod:explode("/"):count(),string]:replace(".mdl","")+"'' destroyed.",5)
- BMod=""
- BModN=1
- findSortByDistance(EE:pos())
- KMA=findToArray()
- KMAC=0
- New=1
- }
- if(KMAE1:health()==0){
- KMAC++
- KMAE1=KMA[KMAC,entity]
- New=1
- }
- if(KMAE1:health()>0){
- BModN=0
- BMod=KMAE1:owner():name()+" "+KMAE1:model()
- TarPos=KMAE1:massCenter()
- if(New==1){
- hint("Targeting "+KMAE1:owner():name()+"'s prop ''"+KMAE1:model():explode("/")[KMAE1:model():explode("/"):count(),string]:replace(".mdl","")+"''"+" Health: ''"+KMAE1:health():toString()+"''",5)
- New=0
- }
- }
- if(KMAC>=KMA:count()+1){
- if(findCanQuery()){
- #findClearBlackList()
- #findClearWhiteList()
- #findClearWhiteEntityList()
- #findClearBlackEntityList()
- findByClass("prop_physics")
- findSortByDistance(EE:pos())
- KMA=findToArray()
- KMAC=0
- KMAE1=KMA[KMAC,entity]
- }
- }
- }
- elseif(Move==-1){
- if(findCanQuery()){
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- findIncludePlayerProps(owner())
- findByModel("models/props_junk/sawblade001a.mdl")
- findSortByDistance(C:pos())
- if(findResult(1)!=noentity()){EE=findResult(1)}
- }
- if(EE:model()!=""){
- findClearBlackList()
- findClearWhiteList()
- findClearWhiteEntityList()
- findClearBlackEntityList()
- hint("Found a saw!",5)
- CIR=randint(1,ColorsV:count())
- if(Colors[CIR,string]=="invisible"){
- CIR=12
- }
- EE:setColor(ColorsV[CIR,vector4])
- hint("Setting Color to: "+Colors[CIR,string]:sub(1,1):upper()+Colors[CIR,string]:sub(2,Colors[CIR,string]:length()),5)
- EE:setMaterial("models/debug/debugwhite")
- EE:setMass(50000)
- holoCreate(0, EE:massCenter())
- holoParent(0, EE)
- holoModel(0, "icosphere3")
- holoMaterial(0, "models/props_combine/tpballglow")
- holoColor(0, EE:getColor())
- holoAng(0, ang(0, 0, 0))
- holoCreate(1, EE:massCenter())
- holoParent(1, EE)
- holoScale(1, vec(3.2, 3.2, 0.8))
- holoModel(1, "icosphere3")
- holoMaterial(1, "models/props_combine/tpballglow")
- holoColor(1, EE:getColor())
- holoAng(1, ang(0, 0, 0))
- EE:setTrails(16, 0, 5, "trails/laser", EE:getColor(), 255)
- TarPos=EE:pos()+(vec(0,0,20))
- Move=0
- }
- }
- #Klunker fixing
- if(Move>-1&EE!=noentity()&EE:model()==""){
- hint("The fairy disappeared.",5)
- Move=-1
- }
- elseif(Move>-1&EE!=noentity()&EE:model()!=""){
- if(EE:isFrozen()){
- if(Frozen==0){
- hint("The fairy is frozen.",5)
- Frozen=1
- }
- }
- elseif(!EE:isFrozen()){
- Frozen=0
- }
- if(lastSaid()=="stopfairy"){
- selfDestructAll()
- }
- }
- elseif(Move!=3&EE:mass()==1.7){
- EE:setMass(50000)
- }
- elseif(F==noentity()&Move!=6){
- F = C
- Move = 1
- hint("Invalid Entity.",5)
- }
- #Applyforce and the like
- EE:applyForce(((TarPos - EE:pos()) * Mul - EE:vel()) * EE:mass())
- EE:applyAngForce(((-EE:angles()*5):setYaw(RA*3)-EE:angVel())*40*shiftL(ang(EE:inertia())))
- holoAng(0, ang(0,0,0))
- holoAng(1, ang(0,0,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement