Any chance of a sample class based mod? :D

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Euphoric Beaver

impeccably groomed
Apr 19, 2001
3,158
0
0
Great Britain
www.euphoric-beaver.me.uk
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?
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
There's a tut at Semantic Error. There's a thread here with a list of coding sites.
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
36
dot NL
2cool.free.fr
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;
The CClass is used to store the class that a player wants to be upon respawn and the BClass contains the current class of the player. You should write a function in your playerclass that sets BClass to CClass, and changes a few properties of the player like
GroundSpeed for example. Call that function in your custom variant of RestartPlayer.

Hope this will help