![]() |
|
|
#1 |
|
Any chance of a sample class based mod? :D
Since I'm starting out I don't really know how to do anything like that.
I've played Unf and like that setup. ie. You choose your class before you start. And I know in theory how to do it, but don't know how. Okay I'm guessing you make a subclass of each tournamentplayer for each class, with all the health, armour weapons set inside this. Then when you pick the class it simply changes the player before start. Perhaps this could be the basis for a tutorial? |
|
|
|
|
|
|
#2 |
|
There's a tut at Semantic Error. There's a thread here with a list of coding sites.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar. 17th, 2001
Location: dot NL
Posts: 505
|
As DefenceAlliance doesn't need much more than a different inventory and a few exec function for each class, I placed all the exec functions in one class, and placed the class variables in the PlayerReplicationInfo
Code:
var enum EClass
{
CL_Mechanic,
CL_Medic,
CL_Infantry,
CL_MGunner,
CL_Grenadier,
CL_Sniper
} CClass, BClass;
GroundSpeed for example. Call that function in your custom variant of RestartPlayer. Hope this will help
__________________
Jeroen "2COOL4-U" de Haas |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Aug. 21st, 2001
Posts: 6
|
|
|
|
|
|
|
#5 |
|
Cheers jbirby.
![]() I'll have alook now. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|