wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
549 stars 333 forks source link

Propcore propCanCreate() doesn't update until the next run #3124

Closed unknao closed 4 weeks ago

unknao commented 1 month ago

It seems like propCanCreate() doesn't update if you call it a bunch of times when creating props on the same tick.

Example code:

for(I = 1, 100){
   if(!propCanCreate()){ break }

    propSpawn("models/props_junk/CinderBlock01a.mdl", entity():pos(), ang(), 1)
    print(I)
}

this should stop printing at the burst limit, but it prints numbers well above that.

unknao commented 4 weeks ago

On further inspection it seems like propCanCreate() doesn't account for anything else wanting to block prop spawns.

unknao commented 4 weeks ago

Nevermind, it seems like it was a problem on my end