Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name GenericDownForce
- @inputs [Base Exhaust Seat]:entity Active:number
- @outputs Penis:number
- @persist Sound:string
- @model models/bull/gates/microcontroller2_mini.mdl
- interval(100)
- Base:applyForce(vec(0,0,-48000))
- Player = Seat:driver()
- if (changed(Active)){
- Sound = Active ? "misc/halloween/spell_bat_cast.wav" : "misc/halloween/spell_bat_impact.wav"
- Penis = Active
- soundPlay(1,soundDuration(Sound), Sound)
- timer("Repeat", soundDuration(Sound))
- }elseif (clk("Repeat")){
- soundPlay(1,soundDuration(Sound), Sound)
- timer("Repeat", soundDuration(Sound))
- }
- if (Active){
- Base:applyForce(Base:forward()*45000)
- Exhaust:setTrails(100,100,100,"trails/love",vec(36,36,36),255)
- }else{
- Exhaust:removeTrails()
- }
- if (Player:keyForward()){
- Base:applyForce(Base:forward()*15000)
- }elseif (Player:keyBack()){
- Base:applyForce(Base:forward()*-5000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement