News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Mods > WoD Mod Pod > Ask a Coder

Reply
 
Thread Tools Display Modes
Old 25th Aug 2001, 12:38 PM   #1
Euphoric Beaver
impeccably groomed
 
Euphoric Beaver's Avatar
 
Join Date: Apr. 19th, 2001
Location: Great Britain
Posts: 3,158
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?
Euphoric Beaver is offline   Reply With Quote
Old 25th Aug 2001, 12:47 PM   #2
Smoke39
whatever
 
Smoke39's Avatar
 
Join Date: Jun. 2nd, 2001
Posts: 1,793
Arrow

There's a tut at Semantic Error. There's a thread here with a list of coding sites.
Smoke39 is offline   Reply With Quote
Old 26th Aug 2001, 01:51 AM   #3
2COOL4-U
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;
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
__________________
Jeroen "2COOL4-U" de Haas
2COOL4-U is offline   Reply With Quote
Old 27th Aug 2001, 07:20 AM   #4
Vig
Registered User
 
Join Date: Aug. 21st, 2001
Posts: 6
The link to that Semantic Error tutorial is

http://www.webtribe.net/s/seerlord/U...tutes/CCS.html
Vig is offline   Reply With Quote
Old 27th Aug 2001, 07:32 AM   #5
Euphoric Beaver
impeccably groomed
 
Euphoric Beaver's Avatar
 
Join Date: Apr. 19th, 2001
Location: Great Britain
Posts: 3,158
Cheers jbirby.

I'll have alook now.
Euphoric Beaver is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer