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

Holograms fail to change model #3103

Closed unknao closed 4 weeks ago

unknao commented 1 month ago

For some reason when i create holograms they somewhat consistently don't change model, it seems like wire_holograms_modelany doesn't affect it whatsoever.

Example code:

@inputs 
@outputs 
@persist N
@strict

if(first()){
    N = 1   
    for(I = 0, 5){
        for(II = 0, 5){
            holoCreate(N, entity():toWorld(vec(I, II, 1) * 30))
            holoModel(N, "hq_sphere")
            N++
        }
    }
}

Result: image

unknao commented 1 month ago

This was tested on the github version of Wiremod on a 32 bit server running on Win11 by the way. When i tried this on the workshop version, it seems to work as intended.

unknao commented 1 month ago

Still a problem after the July 2024 update.

deltamolfar commented 1 month ago

Just tested it on x86-64 gmod branch, latest github. Can't reproduce

unknao commented 4 weeks ago

After diving into the code i can conclude that this problem was entirely caused by me using the PlayerSpawnObject hook elsewhere, preventing it from setting the model via WireLib.CanModel().