Garry's Mod

E2 destructible props

Submitted by Essyrev, , Thread ID: 195412

Thread Closed
25-01-2021, 01:05 AM
#1
@name Destructible props
interval(1)
findIncludeClass("prop")
findIncludeClass("entity")
findInSphere(entity():pos(),100000050)
N = findToArray()
for(I = 1, N:count()) {
N[I, entity]:makeHealth()
N[I, entity]:setMass(N[I, entity]:mass()-N[I, entity]:getDamage())
N[I, entity]:setHealth(N[I, entity]:mass())
}
entity():setColor(vec4(0))
noDupl ications()


Health points depend on the weight of the item, so you can fix it by increasing its weight.

RE: E2 destructible props

#2
What is this meant for isnt this taken from a steam workshop file i think so

Users browsing this thread: 4 Guest(s)