Hello,
I recently started messing with A7 some more, and getting into the c-scripting, and had a couple questions.

1. How do you go about organizing your functions through multiple files? I started splitting everything up into multiple .c files, but am constantly running into problems with functions not being able to "see" other functions from other files due to their #define order at the top of my main file.
Normally you would prototype all of your functions in a header file so that everything can see everything right? Do I need to make .h files with my prototypes?
I have some global definitions (variables, entities, panels, etc.) that a lot of functions need access to, so do I just put all of that above my #defines? Or in another file?
Would be cool if someone could show me the ways of organizing all this stuff.

2. Quick question regarding entity definition for a gun model (for a first person shooter weapon). What I had done in the past was create the "shotgun_onscreen", give it an albedo value, then I would do a "sun_angle.pan = my.pan;" in the player code. This way when you rotate, the shadows move around on your weapon thats on screen. This only works for indoor levels though, as the sun position is moving all over the place.
Is there a better way of doing this? What are some methods you guys do to make your FPS guns look good?

Thanks, and any help is greatly appreciated!


NATIO Released! Check it out at http://mahonroy.home.comcast.net/natio.htm -Matt AMD 1.2 Ghz Thunderbird 512 Meg Ram GeForce 2 Ultra 64 Meg DDR Using A5 Professional