Skip to content

Commit f8dbb5e

Browse files
committed
Update
1 parent 48c3471 commit f8dbb5e

File tree

58 files changed

+848
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+848
-64
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@name Melon Hats Made By Joshy
2+
@inputs On DeleteMelons
3+
@outputs
4+
@persist Props:array Count Melon:entity I
5+
@model models/props_combine/combine_interface001.mdl
6+
interval(1000)
7+
8+
O=owner()
9+
E=entity()
10+
11+
if (findCanQuery()) {
12+
findByModel("models/props_junk/watermelon01.mdl") #Pick a model
13+
Props=findToArray() #Save what we found
14+
Count=Props:count() #How many entities we found
15+
16+
}
17+
18+
19+
I=0
20+
while(I<Count) {
21+
22+
I++
23+
Melons=Props[I,entity]
24+
#If The Button is on then it creates the holos
25+
if(On==1){
26+
holoCreate(I)
27+
holoPos(I, Melons:pos() + Melons:up()*20.2)
28+
holoParent(I,Melons)
29+
holoModel(I, "models/props_junk/TrafficCone001a.mdl")
30+
holoAng(I,Melons:angles() + ang(0,0,0))
31+
}
32+
33+
if(DeleteMelons==1){
34+
35+
Melons:propBreak()
36+
37+
}
38+
39+
#If the button is off it deletes the holos
40+
if(On==0){holoDelete(I)}
41+
}

0 commit comments

Comments
 (0)