Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. @name GenericDownForce
  2. @inputs [Base Exhaust Seat]:entity Active:number
  3. @outputs Penis:number
  4. @persist Sound:string
  5. @model models/bull/gates/microcontroller2_mini.mdl
  6. interval(100)
  7.  
  8. Base:applyForce(vec(0,0,-48000))
  9.  
  10. Player = Seat:driver()
  11.  
  12. if (changed(Active)){
  13. Sound = Active ? "misc/halloween/spell_bat_cast.wav" : "misc/halloween/spell_bat_impact.wav"
  14. Penis = Active
  15. soundPlay(1,soundDuration(Sound), Sound)
  16. timer("Repeat", soundDuration(Sound))
  17. }elseif (clk("Repeat")){
  18. soundPlay(1,soundDuration(Sound), Sound)
  19. timer("Repeat", soundDuration(Sound))
  20. }
  21.  
  22. if (Active){
  23. Base:applyForce(Base:forward()*45000)
  24. Exhaust:setTrails(100,100,100,"trails/love",vec(36,36,36),255)
  25. }else{
  26. Exhaust:removeTrails()
  27. }
  28.  
  29. if (Player:keyForward()){
  30. Base:applyForce(Base:forward()*15000)
  31. }elseif (Player:keyBack()){
  32. Base:applyForce(Base:forward()*-5000)
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement