View previous topic :: View next topic |
Author |
Message |
Hazematman
Joined: 15 Jul 2010 Posts: 31
|
Posted: Sun Jul 18, 2010 4:39 am Post subject: |
|
|
ok I searched all the source code and msurface_t is used, but how would I divide it by 3. My thoughts are something like this:
Code: | if(loadmodel->bspversion == HL_BSPVERSION) {
msurface_t / 3;
}
|
but that doesn't seem to work, can someone tell me how im supposed to divide it? |
|
Back to top |
|
 |
gnounc

Joined: 06 Apr 2009 Posts: 120
|
Posted: Sun Jul 18, 2010 4:53 am Post subject: |
|
|
...my last post was for ceriux...must have wrong tabbed. bleh |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Sun Jul 18, 2010 6:38 am Post subject: |
|
|
for (i = 0; i < loadmodel->numsurfaces; i++)
loadmodel->surface[i].lightofs /= 3;
basically.
msurface_t itself is just a struct type.
Ideally you would find some way to place the division in Mod_LoadSurfaces or something... _________________ What's a signature? |
|
Back to top |
|
 |
Downsider

Joined: 16 Sep 2008 Posts: 478
|
Posted: Sun Jul 18, 2010 6:41 am Post subject: |
|
|
If you're modding Kurok, you're just a memcpy away from getting the full light support, since Kurok supports full color lighting. |
|
Back to top |
|
 |
|