Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra 2 / Rising Storm Forums > RO2/RS Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2012, 10:07 AM
Coin-goD's Avatar
Coin-goD Coin-goD is offline
Senior Member
 
Join Date: Jun 2012
Location: Buenos Aires, Argentina
Posts: 261
Default Creating a new Class

What files do I have to modifie to create a new class?
I want to create an special Marksman class, "Elite Marksman".

I tried doing it directly on my map "World Properties" like this:

Adding an "Elite Marksman" on my Squad
http://i.imgur.com/jqvPz.png
Using RORoleInfo.

But ingame it dosn't display a name nor the weapons.
http://i.imgur.com/DFG0G.jpg
And when I play I don't have the primary/secondary weapon.
If I select "is Marksman" nothing changes.

-------

Using RORoleInfoAxisMarksman

The problem I have here is that it dosn't create a new class slot. Instead I have 2 marksmans in wich one will be normal (I have it seted up) and the other will be my Elite Marksman (with all the weapons I added).
Another problem is that it will have all the weapons from the normal marksman class, wich I don't want. I just want him to have a Kar98 as primary weapon.

I also want to create a new model of a camouflaged sniper. I should probably create a new class that uses that model (and my Weapon settings). Something like RORoleInfoAxisEliteMarksman.
Where can I find the RORoleInfoAxisMarksman to use as a Base for my RORoleInfoAxisEliteMarksman? And how would I edit this files?
__________________
Reply With Quote
  #2  
Old 06-27-2012, 11:04 AM
Coin-goD's Avatar
Coin-goD Coin-goD is offline
Senior Member
 
Join Date: Jun 2012
Location: Buenos Aires, Argentina
Posts: 261
Default

I managed to export all scripts and found what I was looking for!

-----


Okay so I created 2 new scripts, RORoleInfoAlliesEliteMarksman.uc and RORoleInfoAxisEliteMarksman.uc
Based on the Marksman classes.
Do I have to edit more files?

How should I compile this files? Should they go in the ROGame.u? Or a custom *.u file?
__________________

Last edited by Coin-goD; 06-27-2012 at 12:39 PM.
Reply With Quote
  #3  
Old 06-27-2012, 03:12 PM
Blitzk.-Bob Blitzk.-Bob is offline
TWIL Senior Admin Staff
 
Join Date: Nov 2011
Location: Germany
Posts: 806
Default

Hi,

I'm messing around with that too...
Can't manage to change the display names.

Would like to change 2 role names.
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 -4. The time now is 11:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC