Search Results
7/5/2025, 5:23:43 PM
>>29086542
>>29086594
1. keep track of oil content in each barrel
2. keep track of every bullet hole as an object (rather than just a decal overlaid on the barrel)
3. every physics tick, for every hole:
3.1. do nothing if y coordinate of the hole is above the current oil level
3.2. otherwise, subtract a small amount from the parent barrel's oil level AND emit the trickle
it's very simple. more impressive is the fact that someone actually dedicated the 15 minutes to code it in
>>29086594
1. keep track of oil content in each barrel
2. keep track of every bullet hole as an object (rather than just a decal overlaid on the barrel)
3. every physics tick, for every hole:
3.1. do nothing if y coordinate of the hole is above the current oil level
3.2. otherwise, subtract a small amount from the parent barrel's oil level AND emit the trickle
it's very simple. more impressive is the fact that someone actually dedicated the 15 minutes to code it in
Page 1