Advertisement
artemx32

SVG_03

Dec 19th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.15 KB | None | 0 0
  1. @name SVG_02
  2. @inputs
  3. @outputs
  4. @persist [C1 C2 PlCol DirV]:vector CLC KY CC SUB SoundID Smax Temper Tmax TAddPerShoot TCheck Mode ToCENT CVAR ToMV Tya Tpi SMDn SMCanFire SModeCH SPRT
  5. @persist [Blt BULLET]:entity PLSpeed [BullArr BullSpeedData BullRData]:array SR:ranger SMPwr SMRand PowAdditive PowMax AmmoCF AmmoCS ShellSPD
  6. @trigger none
  7.  
  8.     O = owner()
  9.  
  10.     KY = O:keyAttack2()
  11.    
  12.     if(first())
  13.     {
  14.  
  15.         E               = entity()      
  16.         C1              = vec(255)
  17.         C2              = vec(0,128,128)
  18.         PlCol           = vec(255,0,255)
  19.         Tmax            = 1000
  20.         PowMax          = 500
  21.         Smax            = 399
  22.         PLSpeed         = 200
  23.         PowAdditive     = 3
  24.         TAddPerShoot    = 3
  25.         CC              = 1
  26.         TCheck          = 1
  27.         Mode            = 1
  28.         SModeCH         = 1
  29.         SPRT            = 1
  30.         ToMV            = 0
  31.         SMCanFire       = 0
  32.         SoundID         = 0
  33.        
  34.         AmmoCF          = 9999
  35.         AmmoCS          = 99
  36.                
  37.         holoCreate(1000), holoPos(1000,O:attachmentPos("anim_attachment_RH") ), holoAlpha(1000,0), holoAng(1000,O:attachmentAng("anim_attachment_RH")), holoParentAttachment(1000, O, "anim_attachment_RH")
  38.         holoCreate(0), holoPos(0,holoEntity(1000):toWorld(vec(14,-3,5)) ), holoAlpha(0,0), holoAng(0,holoEntity(1000):toWorld(ang(-3.5,-15,25))), holoParent(0,1000)
  39.         holoCreate(1, holoEntity(0):toWorld(vec()),vec(0.5,0.5,1.25), holoEntity(0):toWorld(ang(90,0,0))), holoParent(1, 0), holoModel(1,"models/holograms/octagon.mdl"), holoMaterial(1,"phoenix_storms/grey_chrome"), holoColor(1,C1)  
  40.         holoCreate(2, holoEntity(0):toWorld(vec()),vec(0.5,0.5,1.25), holoEntity(0):toWorld(ang(90,0,0))), holoParent(2, 0), holoModel(2,"models/holograms/octagon.mdl"), holoMaterial(2,"phoenix_storms/grey_chrome"), holoColor(2,C2)    
  41.         holoCreate(3, holoEntity(0):toWorld(vec(8.1,0,0)),vec(0.5,0.5,0.1), holoEntity(0):toWorld(ang(90,0,0))), holoParent(3, 0), holoModel(3,"models/holograms/hq_rcylinder_thin.mdl"), holoMaterial(3,"phoenix_storms/grey_chrome"), holoColor(3,C1)    
  42.         holoCreate(4, holoEntity(0):toWorld(vec(8.1,0,0)),vec(0.5,0.5,0.1), holoEntity(0):toWorld(ang(90,0,0))), holoParent(4, 0), holoModel(4,"models/holograms/hq_rcylinder_thin.mdl"), holoMaterial(4,"phoenix_storms/grey_chrome"), holoColor(4,C1)    
  43.         holoCreate(5, holoEntity(0):toWorld(vec(9.2,0,0)),vec(0.2,0.2,0.15), holoEntity(0):toWorld(ang(90,0,0))), holoParent(5, 0), holoModel(5,"models/holograms/hq_tube_thin.mdl"), holoMaterial(5,"phoenix_storms/grey_chrome"), holoColor(5,C2*0.9)
  44.         holoCreate(6, holoEntity(0):toWorld(vec(9.2,0,0)),vec(0.175,0.175,0.14), holoEntity(0):toWorld(ang(90,0,0))), holoParent(6, 0), holoModel(6,"models/holograms/hq_tube_thin.mdl"), holoMaterial(6,"phoenix_storms/grey_chrome"), holoColor(6,C2*0.7)
  45.         holoCreate(7, holoEntity(0):toWorld(vec(9.2,0,0)),vec(0.15,0.15,0.13), holoEntity(0):toWorld(ang(90,0,0))), holoParent(7, 0), holoModel(7,"models/holograms/hq_tube_thin.mdl"), holoMaterial(7,"phoenix_storms/grey_chrome"), holoColor(7,C2*0.5)
  46.         holoCreate(45, holoEntity(0):toWorld(vec(8.3,0,0)),vec(0.4365,0.4365,0.1), holoEntity(0):toWorld(ang(90,0,0))), holoParent(45, 0), holoModel(45,"models/holograms/hq_tube_thin.mdl"), holoMaterial(45,"phoenix_storms/grey_chrome"), holoColor(45,vec(55))
  47.         holoCreate(46, holoEntity(0):toWorld(vec(8.3,0,0)),vec(0.3,0.3,0.1), holoEntity(0):toWorld(ang(90,0,0))), holoParent(46, 0), holoModel(46,"models/holograms/rcylinder_thin.mdl"), holoMaterial(46,"phoenix_storms/grey_chrome"), holoColor(46,vec(77))
  48.         holoCreate(47, holoEntity(0):toWorld(vec(-14.3,0,-1.3)),vec(1), holoEntity(0):toWorld(ang(0,0,0))), holoParent(47, 0), holoModel(47,"models/weapons/w_physics.mdl")
  49.         holoCreate(48, holoEntity(0):toWorld(vec(8.9,0,0)),vec(0.125,0.125,0.05), holoEntity(0):toWorld(ang(90,0,0))), holoParent(48, 0), holoModel(48,"models/holograms/hq_tube.mdl"), holoMaterial(48,"lights/white")
  50.         holoCreate(49, holoEntity(0):toWorld(vec(8.9,0,0)),vec(0.09,0.09,0.05), holoEntity(0):toWorld(ang(90,0,0))), holoParent(49, 0), holoModel(49,"models/holograms/hq_rcylinder_thin.mdl"), holoMaterial(49,"lights/white")
  51.         holoCreate(50, holoEntity(0):toWorld(vec(8.9,0,0)),vec(0.09,0.09,0.05), holoEntity(0):toWorld(ang(90,0,0))), holoParent(50, 0), holoModel(50,"models/holograms/hq_rcylinder_thin.mdl"), holoMaterial(50,"lights/white")    
  52.         holoCreate(51, holoEntity(0):toWorld(vec(-1,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(51,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(51,0), holoBodygroup(51,0,3), holoMaterial(51,"lights/white"),holoColor(51,C1)
  53.         holoCreate(52, holoEntity(0):toWorld(vec(0,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(52,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(52,0), holoBodygroup(52,0,3), holoMaterial(52,"lights/white"),holoColor(52,C1)
  54.         holoCreate(53, holoEntity(0):toWorld(vec(1,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(53,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(53,0), holoBodygroup(53,0,3), holoMaterial(53,"lights/white"),holoColor(53,C1)
  55.         holoCreate(54, holoEntity(0):toWorld(vec(2,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(54,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(54,0), holoBodygroup(54,0,3), holoMaterial(54,"lights/white"),holoColor(54,C1)
  56.         holoCreate(55, holoEntity(0):toWorld(vec(3,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(55,"models/sprops/misc/alphanum/alphanum_div.mdl"), holoParent(55,0), holoBodygroup(55,0,3), holoMaterial(55,"lights/white"),holoColor(55,C1)
  57.         holoCreate(56, holoEntity(0):toWorld(vec(4,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(56,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(56,0), holoBodygroup(56,0,3), holoMaterial(56,"lights/white"),holoColor(56,C1)
  58.         holoCreate(57, holoEntity(0):toWorld(vec(5,-2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,180,25))), holoModel(57,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(57,0), holoBodygroup(57,0,3), holoMaterial(57,"lights/white"),holoColor(57,C1)
  59.         holoCreate(58, holoEntity(0):toWorld(vec()),vec(0.5,0.5,1.25), holoEntity(0):toWorld(ang(90,0,0))), holoParent(58, 0), holoModel(58,"models/holograms/octagon.mdl"), holoMaterial(58,"phoenix_storms/grey_chrome"), holoColor(58,C1)    
  60.         holoCreate(59, holoEntity(0):toWorld(vec()),vec(0.5,0.5,1.25), holoEntity(0):toWorld(ang(90,0,0))), holoParent(59, 0), holoModel(59,"models/holograms/octagon.mdl"), holoMaterial(59,"phoenix_storms/grey_chrome"), holoColor(59,C2)
  61.         holoCreate(60, holoEntity(0):toWorld(vec(6.5,0,0)),vec(0.5,0.5,0.075), holoEntity(0):toWorld(ang(90,0,0))), holoParent(60, 0), holoModel(60,"models/holograms/octagon.mdl"), holoMaterial(60,"lights/white"), holoColor(60,PlCol)
  62.         holoCreate(61, holoEntity(0):toWorld(vec(0,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(61,"models/sprops/misc/alphanum/alphanum_2.mdl"), holoParent(61,0), holoBodygroup(61,0,3), holoMaterial(61,"lights/white"),holoColor(61,C2)
  63.         holoCreate(62, holoEntity(0):toWorld(vec(1,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(62,"models/sprops/misc/alphanum/alphanum_0.mdl"), holoParent(62,0), holoBodygroup(62,0,3), holoMaterial(62,"lights/white"),holoColor(62,C2)
  64.         holoCreate(63, holoEntity(0):toWorld(vec(2,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(63,"models/sprops/misc/alphanum/alphanum_min.mdl"), holoParent(63,0), holoBodygroup(63,0,3), holoMaterial(63,"lights/white"),holoColor(63,C2)
  65.         holoCreate(64, holoEntity(0):toWorld(vec(3,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(64,"models/sprops/misc/alphanum/alphanum_g.mdl"), holoParent(64,0), holoBodygroup(64,0,3), holoMaterial(64,"lights/white"),holoColor(64,C2)
  66.         holoCreate(65, holoEntity(0):toWorld(vec(4,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(65,"models/sprops/misc/alphanum/alphanum_v.mdl"), holoParent(65,0), holoBodygroup(65,0,3), holoMaterial(65,"lights/white"),holoColor(65,C2)
  67.         holoCreate(66, holoEntity(0):toWorld(vec(5,2.5,1)),vec(0.1), holoEntity(0):toWorld(ang(0,0,25))), holoModel(66,"models/sprops/misc/alphanum/alphanum_s.mdl"), holoParent(66,0), holoBodygroup(66,0,3), holoMaterial(66,"lights/white"),holoColor(66,C2)
  68.    
  69.         for(L = 8,44)
  70.         {
  71.          
  72.             holoCreate(L, holoEntity(0):toWorld(vec(8.8,sin(L*10)*2.5,cos(L*10)*2.5)), vec(0.03,0.03,0.5), holoEntity(0):toWorld(ang(90,0,0))), holoModel(L,"models/holograms/hq_torus.mdl"), holoColor(L,hsv2rgb(L*10,1,0.8)), holoMaterial(L,"phoenix_storms/grey_chrome"),holoParent(L,0)
  73.            
  74.         }
  75.  
  76.         holoEntity(0):soundPlay(200,0,"acf_extra/vehiclefx/boost/tcl_turbo.wav")
  77.         holoEntity(0):soundPlay(240,0,"ambient/machines/spin_loop.wav"),soundVolume(240,0.4)
  78.         holoEntity(0):soundPlay(244,0,"acf_extra/airfx/redsstukaangriff.wav"), soundVolume(244,0)
  79.  
  80.         function number wtype()
  81.         {
  82.          
  83.             return O:weapon():type() == "weapon_physgun"
  84.            
  85.         }
  86.  
  87.         function clip(Z:number)
  88.         {
  89.          
  90.             holoClip(1,1,vec(),vec(0,1,0),0)
  91.             holoClipEnabled(1,1,Z)
  92.             holoClip(1,2,vec(0,0,6),vec(0,0,-1),0)
  93.             holoClipEnabled(1,2,Z)
  94.             holoClip(2,1,vec(),vec(0,-1,0),0)
  95.             holoClipEnabled(2,1,Z)
  96.             holoClip(2,2,vec(0,0,6),vec(0,0,-1),0)
  97.             holoClipEnabled(2,2,Z)
  98.             holoClip(3,vec(),vec(0,-1,0),0)
  99.             holoClipEnabled(3,Z)
  100.             holoClip(4,vec(),vec(0,1,0),0)
  101.             holoClipEnabled(4,Z)
  102.             holoClip(47,vec(12,0,0),vec(-1,0,0),0)
  103.             holoClipEnabled(47,Z)
  104.             holoClip(49,vec(0,0,0),vec(0,1,0), 0)
  105.             holoClipEnabled(49,Z)
  106.             holoClip(50,vec(0,0,0),vec(0,-1,0),0)
  107.             holoClipEnabled(50,Z)
  108.             holoClip(58,1,vec(),vec(0,1,0), 0)
  109.             holoClipEnabled(58,1,Z)
  110.             holoClip(58,2,vec(0,0,7),vec(0,0,1),0)
  111.             holoClipEnabled(58,2,Z)
  112.             holoClip(59,1,vec(),vec(0,-1,0), 0)
  113.             holoClipEnabled(59,1,Z)
  114.             holoClip(59,2,vec(0,0,7),vec(0,0,1),0)
  115.             holoClipEnabled(59,2,Z)
  116.  
  117.         }
  118.    
  119.         function cold()
  120.         {
  121.          
  122.             if(wtype() & Mode & Temper> Tmax/4)
  123.             {
  124.              
  125.                 Tpi = O:eyeAngles()[1]
  126.                 Tya = O:eyeAngles()[2]
  127.                
  128.                 if(changed(Tpi) | changed(Tya))
  129.                 {
  130.                  
  131.                     Temper -= abs($Tpi+$Tya)/10
  132.                    
  133.                 }
  134.                        
  135.             }
  136.            
  137.         }
  138.        
  139.         function entity:shootmode01()
  140.         {
  141.            
  142.             if(AmmoCF>0){
  143.            
  144.             for(N = 1, 3 + (Temper/Tmax)*10){
  145.              
  146.                 holoEntity(8+CLC):shootTo( This:pos(),(O:aimPos() - holoEntity(0):pos()):normalized()*2000,0.001+ N + Temper/2, 900,2+Temper/100 + 250*Temper>(Tmax*0.75),"AR2Tracer")
  147.                
  148.             }
  149.  
  150.             holoEntity(1):effectSpawn("ShellEject", holoEntity(1):pos(),holoEntity(1):forward(),holoEntity(1):angles(),1)
  151.             This:effectSpawn("ChopperMuzzleFlash", This:pos() + This:up(),1)
  152.             This:effectSpawn("MuzzleEffect", This:toWorld(vec(3,-5,0)),vec(),This:toWorld(ang(-90,0,0)),0.4)
  153.             This:soundPlay(int(Temper/Tmax)*15,2,"weapons/shotgun/shotgun_dbl_fire.wav"), soundPitch(int(Temper/Tmax)*15,211)
  154.             AmmoCF--
  155.            
  156.             }else{
  157.            
  158.                  O:soundPlay(228,1,"weapons/shotgun/shotgun_empty.wav")          
  159.            
  160.             }
  161.  
  162.         }
  163.    
  164.         function shootmode02()
  165.         {
  166.          
  167.             if(AmmoCS>0)
  168.             {
  169.  
  170.             Blt = drawSprite("models/effects/comball_glow1", holoEntity(0):pos(), PlCol, 200, 15,15)
  171.             BullArr:pushEntity(Blt)
  172.             Blt:setAng((O:aimPos() - holoEntity(0):pos()):toAngle() )
  173.             Blt:setdLight(PlCol,4,400)
  174.             Blt:setTrails(17,0, 0.1, "trails/smoke", PlCol,255)
  175.  
  176.             holoEntity(0):soundPlay(260,3,"weapons/airboat/airboat_gun_energy2.wav")
  177.             holoEntity(0):soundPlay(261,3,"weapons/gauss/fire1.wav"), soundPitch(261,150)
  178.            
  179.             AmmoCS--
  180.             SoundID++
  181.            
  182.             }else{
  183.            
  184.                 O:soundPlay(228,1,"weapons/ar2/ar2_empty.wav")
  185.            
  186.             }
  187.        
  188.         }
  189.        
  190.         function shootPWRmode02()
  191.         {
  192.          
  193.             if(!Mode&SMCanFire&wtype() & O:keyAttack2()&SModeCH&AmmoCS>0)
  194.             {
  195.              
  196.                 SMPwr = clamp( SMPwr + PowAdditive, 0, PowMax )
  197.                 soundVolume(244,0.58)
  198.                
  199.             }
  200.        
  201.         }
  202.    
  203.         function holo_clr()
  204.         {
  205.          
  206.             holoColor(3,vec(255 ,C1[2] - (Temper/255)*55,C1[3] - (Temper/255)*55))
  207.             holoColor(4,vec(255 ,C1[2] - (Temper/255)*55,C1[3] - (Temper/255)*55))
  208.             holoColor(48,vec((Temper/255)*55 ,255 - (Temper/255)*55 ,0 )-CVAR*220)
  209.             holoColor(49,vec( (SMCanFire*255) , abs( CVAR*220 - SMPwr/2.25 ) , abs( CVAR*220 - SMPwr/2.25) ) )
  210.             holoColor(50,vec(0, (abs(sin(curtime()*100 + SMPwr*5 )*255 ))*CVAR, (abs(sin(curtime()*100 + SMPwr*5 )*255 ))*CVAR ))
  211.             holoColor(60,vec(Temper/4 + 255*!Mode + SMPwr/2,255-SMPwr/2 - Temper/4,255 - SMPwr/2 - Mode*255 ))
  212.        
  213.         }
  214.    
  215.         function hit_effect()
  216.         {
  217.        
  218.             BULLET:setAlpha(0)
  219.             BULLET:dLightRemove()
  220.             BULLET:remove(6)
  221.             BULLET:particleEffect("magnusson_burner_embers", BULLET:pos(),BULLET:angles())
  222.             #BULLET:particleEffect("st_elmos_fire", BULLET:pos(),SR:hitNormal():toAngle()+ang(-90,0,0))
  223.             BULLET:explosion(50000,245)
  224.             SR:drawPaint("dark")
  225.             SR:drawPaint("fadingscorch")
  226.             effectSpawn("HelicopterMegaBomb", BULLET:pos(), 2)
  227.             BULLET:soundPlay(246,5,"ep2_outland_11.mossman_explosion")      
  228.             BULLET:setTrails(25,100,1,"sprites/tp_beam001",PlCol,200)
  229.             soundStop(2000)
  230.            
  231.         }
  232.        
  233.         function ammo1_visualize()
  234.         {
  235.            
  236.             local Exp = AmmoCF:toString():explode("")
  237.  
  238.             holoModel(51,"models/sprops/misc/alphanum/alphanum_" + Exp[1, string] + ".mdl")
  239.             holoModel(52,"models/sprops/misc/alphanum/alphanum_" + Exp[2, string] + ".mdl")
  240.             holoModel(53,"models/sprops/misc/alphanum/alphanum_" + Exp[3, string] + ".mdl")
  241.             holoModel(54,"models/sprops/misc/alphanum/alphanum_" + Exp[4, string] + ".mdl")
  242.          
  243.         }
  244.        
  245.         function ammo2_visualize()
  246.         {
  247.            
  248.             local Exp = AmmoCS:toString():explode("")
  249.  
  250.             holoModel(56,"models/sprops/misc/alphanum/alphanum_" + Exp[1, string] + ".mdl")
  251.             holoModel(57,"models/sprops/misc/alphanum/alphanum_" + Exp[2, string] + ".mdl")
  252.          
  253.         }
  254.    
  255.         E:setMass(200)
  256.         clip(1)
  257.  
  258.     }
  259.  
  260. interval(25)
  261.  
  262.     SUB    = clamp(SUB,0,Smax)
  263.     Temper = clamp(Temper,0,Tmax)
  264.    
  265.     if(changed(O:keyPressed("MOUSE_4"))&O:keyPressed("MOUSE_4")){Mode = !Mode}
  266.     if(changed(O:keyPressed("MOUSE_5"))&O:keyPressed("MOUSE_5")&!Mode){SMCanFire = !SMCanFire}
  267.     if(changed(Mode)&!Mode){ToCENT = 1,ToMV = 1}
  268.     if(changed(Mode)&Mode){ToCENT = 0,ToMV = 1,SMCanFire = 0}
  269.     if(changed(SMCanFire)){ if(SMCanFire){holoEntity(0):soundPlay(241,3,"buttons/button9.wav")}else{holoEntity(0):soundPlay(241,3,"buttons/button6.wav")} }  
  270.     if(changed(O:keyAttack2())&!O:keyAttack2()&!Mode&SMCanFire&wtype()&SModeCH)
  271.     {
  272.  
  273.         BullSpeedData:pushNumber(SMPwr)
  274.  
  275.         SModeCH   = 0
  276.         SMRand    = SMPwr
  277.         SMPwr     = 0
  278.    
  279.         shootmode02()
  280.         soundVolume(244,0)
  281.         timer("KD",2250)
  282.  
  283.     }
  284.        
  285.     if(!Mode&SMCanFire&SModeCH)
  286.     {
  287.      
  288.         soundPitch(244, SMPwr/2)
  289.        
  290.     }
  291.    
  292.     CVAR = CVAR + clamp( angnorm( ToCENT - CVAR ), -0.05,0.05 )/2
  293.     SMDn = SMDn + clamp( angnorm( Mode - SMDn ), -0.0,0.04 )/2
  294.  
  295.     if(changed(CVAR)){soundPitch(240,abs($CVAR*1500))}
  296.     if(changed(AmmoCF)){ammo1_visualize(), if(AmmoCF == 0){ KY      = 0 }}
  297.     if(changed(AmmoCS)){ammo2_visualize(), if(AmmoCS == 0){ SModeCH = 0 }}
  298.     if(changed(CVAR)&(CVAR != 0 | CVAR != 1))
  299.     {
  300.    
  301.         for(L = 8,44)
  302.         {
  303.             holoPos(L,holoEntity(0):toWorld(vec(8.8,sin(L*10+CVAR*55)*(2.5-CVAR),cos(L*10+CVAR*55)*(2.5-CVAR))))
  304.         }  
  305.            
  306.     }  
  307.  
  308.     if(BullArr:count()>0)
  309.     {
  310.      
  311.         for(Z = 0, BullArr:count())
  312.         {
  313.          
  314.             ShellSPD       = BullSpeedData[Z, number]
  315.             BULLET         = BullArr[Z, entity]
  316.             SR             = rangerOffset(ShellSPD, BULLET:pos(), BULLET:forward()+randvec(-SMRand/5000,SMRand/5000))
  317.  
  318.             if(clk("SPRT")){ SPRT = 1 }
  319.  
  320.             BULLET:setPos(SR:pos())
  321.        
  322.             if(SR:hit())
  323.             {
  324.                
  325.                 local HitAng = acos(SR:hitNormal():dot(-BULLET:forward()))
  326.            
  327.                 print(4,"" + HitAng)
  328.            
  329.                 # >30 & < 70
  330.  
  331.                 if(HitAng > 30 & HitAng < 90 & !SR:entity():isPlayer()){
  332.                    
  333.                     local BV = BULLET:forward() - 2 * (SR:hitNormal():dot(BULLET:forward()) * SR:hitNormal())
  334.                    
  335.                     BULLET:setAng(BV:toAngle())
  336.                     BULLET:soundPlay(int(curtime()), 1.5, "HEGrenade.Bounce")
  337.                     BULLET:effectSpawn("AR2Impact", BULLET:pos(), SR:hitNormal())
  338.                    
  339.                     BullRData[Z, number] = BullRData[Z, number] + 1
  340.                    
  341.                 }
  342.                
  343.                 if(HitAng < 30 | HitAng > 90 | BullRData[Z, number] >= 3){
  344.  
  345.                 BullRData[Z, number] = 0
  346.  
  347.                 BULLET:setPos( SR:pos() )
  348.                 BullArr:remove(Z)
  349.                 BullSpeedData:remove(Z)
  350.                
  351.                 hit_effect()
  352.  
  353.                 }
  354.  
  355.             }
  356.        
  357.         }
  358.        
  359.     }
  360.  
  361.     if(wtype() & KY & CC & TCheck & Mode )
  362.     {
  363.         CLC++,
  364.         CC      = 0,
  365.         Temper += TAddPerShoot,
  366.         timer("CLO", 400-SUB)
  367.     }
  368.    
  369.     if(wtype() & KY & TCheck & Mode)
  370.     {
  371.      
  372.         SUB    += (Smax - SUB)/250
  373.        
  374.     }
  375.    
  376.     if(clk("CLO"))
  377.     {
  378.         CC = 1
  379.     }
  380.     if(CLC>=36)
  381.     {
  382.         CLC = 1
  383.     }
  384.     if((!KY|!TCheck|!Mode))
  385.     {
  386.         SUB    -=(SUB/100)
  387.         Temper -= (TAddPerShoot/2)*Temper>0
  388.     }
  389.  
  390.     if(changed(CLC)&KY&Mode)
  391.     {
  392.          
  393.         local Or = holoEntity(8+CLC)
  394.         Or:shootmode01()
  395.        
  396.     }
  397.  
  398.     soundPitch(200, SUB*0.6)
  399.  
  400.     if(changed(O:weapon( ):type( ))&wtype())
  401.     {
  402.      
  403.         for(X = 1, 66){holoAlpha(X,255)}
  404.         O:weapon():setAlpha(0)
  405.    
  406.     }elseif(changed(O:weapon():type())&!wtype())
  407.     {
  408.        
  409.         for(X = 1, 66){holoAlpha(X,0)}
  410.         O:weapon():setAlpha(255)
  411.        
  412.     }
  413.  
  414.     if(changed(Temper)&Temper>(Tmax-Tmax/20)&CC&TCheck)
  415.     {
  416.         CC = 0,TCheck = 0
  417.         timer("TEMPERATURE",10000)
  418.         holoEntity(0):soundPlay(250,4,"NPC_CeilingTurret.Die")
  419.        
  420.     }
  421.    
  422.     if(clk()&perf())
  423.     {
  424.      
  425.         cold()
  426.         shootPWRmode02()
  427.         holo_clr()
  428.        
  429.     }
  430.    
  431.     if(clk("TEMPERATURE")){CC = 1,TCheck = 1, holoEntity(0):soundPlay(250,4,"NPC_FloorTurret.Deploy")}
  432.     if(clk("KD")){SModeCH = 1}
  433.  
  434.     O:sendLua("
  435.    
  436.    surface.CreateFont('CFNTSS', {
  437.        
  438.      font='impact';  
  439.      size=12;
  440.      bold=true
  441.        
  442.    })
  443.    
  444.    hook.Add('HUDPaint','2323SSS', function()
  445.    
  446.        surface.CreateFont('LocalFont111', {
  447.        
  448.        font='Impact';
  449.        size=20;
  450.        weight=2000;    
  451.            
  452.        })
  453.    
  454.        draw.SimpleText('"+AmmoCF+" ; "+AmmoCS+" ' , 'LocalFont111', ScrW()/3, ScrH()/2, Color(255,0,0))
  455.  
  456.    end )
  457.    
  458.    ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement