SHARE
TWEET

Untitled

CrowCJ Dec 3rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name Fast
  2. @persist O:entity [Speed Mul]:number Prop:entity Active:number Trails
  3.  
  4. if(first())
  5. {
  6.     O = owner()
  7.     Speed = 950
  8.     Mul = 1.25
  9.     Active = 0
  10.     holoCreate(1,O:pos()+vec(0,0,60),vec(1),ang(),vec(255),"models/sprops/rectangles/size_1/rect_3x3x3.mdl"):parentTo(O)
  11.         holoAlpha(1,0)
  12.     holoCreate(2,O:pos()+vec(0,0,40),vec(1),ang(),vec(255),"models/sprops/rectangles/size_1/rect_3x3x3.mdl"):parentTo(O)
  13.         holoAlpha(2,0)
  14.     runOnTick(1)
  15.     Trails = 0
  16. }      
  17.     if(O:keySprint())
  18.     {
  19.         if(Trails == 0){
  20.    
  21.         holoEntity(1):setTrails(128,1,5,"trails/laser",vec(255,255,255),255) #change color at vec(255,255,255)
  22.         holoEntity(2):setTrails(128,1,5,"trails/laser",vec(255,255,255),255)
  23.             Trails = 1
  24.         }
  25.         if(O:keyPressed("w"))
  26.         {  
  27.             O:applyPlayerForce(O:eye()*Speed*Mul-vec(0,0,Speed*0.25))
  28.         }
  29.         if(O:keyPressed("s"))
  30.         {
  31.             O:applyPlayerForce(-O:eye()*Speed*Mul-vec(0,0,Speed*0.25))
  32.         }
  33.     }
  34.     else
  35.         {
  36.             Trails = 0
  37.             holoEntity(1):removeTrails()
  38.             holoEntity(2):removeTrails()
  39.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top