Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name FailCake Snow V1
- @persist Back S:array Height I X Y E:entity A Z Range
- if(first()){
- Weld = entity():isWeldedTo()
- E = entity()
- E:setColor(255,255,255,0)
- E:setMaterial("models/debug/debugwhite")
- Weld:setColor(255,255,255,255)
- Weld:setMaterial("models/debug/debugwhite")
- hint("Made by Failcake & Jack",7)
- ######### SETTINGS #########
- Range = 100
- Height = 300
- ######### SETTINGS #########
- runOnTick(1)
- A = 0
- }
- Back+=0.1
- if(Back == 2){
- E:soundPlay(1,999,"music/portal_self_esteem_fund.mp3")
- soundPitch(1,100)
- }
- if(Back >= 300){
- Back = 0
- soundStop(1)
- }
- if(A < 50)
- {
- timer("spawn",500)
- }
- if(clk("spawn"))
- {
- X = random(E:pos():x() - Range,E:pos():x() + Range)
- Y = random(E:pos():y() - Range,E:pos():y() + Range)
- A++
- holoCreate(A)
- holoModel(A,"hqicosphere2")
- holoScale(A,vec(0.5,0.5,0.5))
- holoPos(A,vec(X,Y,E:pos():z() + Height))
- holoAlpha(A,200)
- holoMaterial(A,"models/debug/debugwhite")
- S:pushEntity(holoEntity(A))
- }
- for(I = 1,S:count())
- {
- Z = S[I,entity]:pos():z() - 0.5
- holoPos(I,vec(S[I,entity]:pos():x(),S[I,entity]:pos():y(),Z))
- if(Z < E:pos():z()) {holoPos(I,vec(S[I,entity]:pos():x(),S[I,entity]:pos():y(),E:pos():z() + Height))}
- }
- if(duped()){selfDestructAll()}
Add Comment
Please, Sign In to add comment