Inside3D!
     

Basic Half-Life Map Support For Stock GLQuake
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials
View previous topic :: View next topic  
Author Message
Hazematman



Joined: 15 Jul 2010
Posts: 31

PostPosted: Sun Jul 18, 2010 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
gnounc



Joined: 06 Apr 2009
Posts: 120

PostPosted: Sun Jul 18, 2010 4:53 am    Post subject: Reply with quote

...my last post was for ceriux...must have wrong tabbed. bleh
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Sun Jul 18, 2010 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Downsider



Joined: 16 Sep 2008
Posts: 478

PostPosted: Sun Jul 18, 2010 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group