• DModelPanel - Multiple ClientsideModel's
    3 replies, posted
Does anyone know how to have multiple ClientsideModel's inside of a DModelPanel?
Yeah. It involves taking the base code from your garry's mod folder, and extending it to support multiple csms. It also involves a bit of trig/math to have them display in the correct location during rotation. My system uses a table for "attachments" and supports unlimited. This shows the primary, vehicle, and the two attachments, bumper and light bar. [url]http://cloud-2.steampowered.com/ugc/595873628524005522/E259888984CD4E84680EE62DB5F2F1613FCE7023/[/url] How far have you gotten? What have you coded so far?
[QUOTE=Acecool;40112845]Yeah. It involves taking the base code from your garry's mod folder, and extending it to support multiple csms. It also involves a bit of trig/math to have them display in the correct location during rotation. My system uses a table for "attachments" and supports unlimited. This shows the primary, vehicle, and the two attachments, bumper and light bar. [url]http://cloud-2.steampowered.com/ugc/595873628524005522/E259888984CD4E84680EE62DB5F2F1613FCE7023/[/url] How far have you gotten? What have you coded so far?[/QUOTE] I thought there might have been a way to do it without the need to override the paint function. I guess I will add a new panel type which supports multiple clientside models.
Copy Garry's lua file which defines it. Then add functionality there call call it something else like DModelPanelExtended
Sorry, you need to Log In to post a reply to this thread.