[QUOTE=rejax;42641030]excl im sorry but youre a few broken sentences too late[/QUOTE]
Are we not supposed to talk about organizing our file structure? I didn't see anyone else say what I said.
I had the same exact question when I first started working on my gamemode. I just found a way that worked for me. Here is how mine is set up so far.
[img]http://puu.sh/4Z9bO.png[/img]
cl_hud holds all my functions for my hud
cl_init doesn't really hold much of anything at this point since I am still in early alpha
init holds all my basic server functions such as my player amount monitor, my mode timers, my entity spawn cords, ect.
player holds all my player functions such as loadout, spawn, death ect.
shared holds not much at the moment. I currently have it preaching models upon start up.
sv_resource is self explanatory.
weapon_library is my table of weapons that hold its killicon for my death cam and any other items I may need it to hold at one point.
I don't exactly now if this is the "right" way to do it or even if there is a "right" way, but it works for me.
[QUOTE=residualgrub;42641656]I had the same exact question when I first started working on my gamemode. I just found a way that worked for me. Here is how mine is set up so far.
[img]http://puu.sh/4Z9bO.png[/img]
cl_hud holds all my functions for my hud
cl_init doesn't really hold much of anything at this point since I am still in early alpha
init holds all my basic server functions such as my player amount monitor, my mode timers, my entity spawn cords, ect.
player holds all my player functions such as loadout, spawn, death ect.
shared holds not much at the moment. I currently have it preaching models upon start up.
sv_resource is self explanatory.
weapon_library is my table of weapons that hold its killicon for my death cam and any other items I may need it to hold at one point.
I don't exactly now if this is the "right" way to do it or even if there is a "right" way, but it works for me.[/QUOTE]
In my opinion, a better structure would be to only use lowercase, rename "shared" to "sh_init" or whatever stuff you have in there. Prefix the other files, too. You should use your init files just for including new files and defining some small utility/global stuff.
[QUOTE=Handsome Matt;42641093]this thread went to shit as soon as Snorlaxs posted[/QUOTE]
You did remeber s <3.
Worst thread ever : [url]http://facepunch.com/showthread.php?t=1318563&p=42642357[/url]
[QUOTE=E X C L;42641691]In my opinion, a better structure would be to only use lowercase, rename "shared" to "sh_init" or whatever stuff you have in there. Prefix the other files, too. You should use your init files just for including new files and defining some small utility/global stuff.[/QUOTE]
Ill take note of that.
Sorry, you need to Log In to post a reply to this thread.