Few questions to get me started on modding.

RedTalonRedTalon Join Date: 2012-11-14 Member: 171203Members
I know how to code in lua. But I'm having trouble getting my head around the codes for ns2.

1. Is there a pre-written class constructor? Because if there isn't I was thinking of ripping the codes straight out of the official Lua book.

2. If there is a class constructor can it do multi-inheritance? Or at least tell me which file contains the code for it so I can work it out myself.

3. If I were to override a class how exactly do I do that? Do I essentially create a sub-class that is identical but only a certain method is changed? Even at a larger scope, where do I exactly place the code? Do I place it parallel to the file that contains the method I want to override? (because frankly I've never tried overriding methods unless it was a sub-class)


That's pretty much the essential questions that I wanted to ask. I'm thinking of making a very simple game mode so I'd also like help with finding the right files to look at.

4. Which file scripts for adding resource for teams and individuals?

Comments

Sign In or Register to comment.