How would I code a RedeemerArena Mutator?

  • 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.

Xerk

Keyboard Mastá
Jan 6, 2002
16
0
0
www.koldfire.com
I am a decent programmer when it comes to C++, I have experience in MFC, and writing OpenGL apps in C++. But I'm new to this whole UnrealScript and would like to get into making my own mutators. To start, I thought it would be fun to make a RedeemerArena mutator. But I have no idea what the code would look like. If anyone could show me, or tell me where to find out, I'd be greatfull.
 

Brood_of_Evil

Selene's martyr
Nov 3, 2001
147
0
0
45
Look outside your window!
Visit site
Well it's rather easy, even though it has been done already..here's the whole class:

Code:
//=================================
//RedeemerArena
//=================================
class RedeemerArena expands Arena;

defaultproperties
{
    WeaponName=WarheadLauncher
    AmmoName=WarheadAmmo
    WeaponString="Botpack.WarheadLauncher"
    AmmoString="Botpack.WarheadAmmo"
    DefaultWeapon=Class'WarheadLauncher'
}

That's it, just save it to an .uc file and compile it with ucc and then add the .int file. If you don't know how to use .uc's and ucc to complile unreal classes, check it out here: www.unrealscript.com/tutorials/tut20.html.

read it, it's a MUST for any hardcore unreal scripter.
 

Xerk

Keyboard Mastá
Jan 6, 2002
16
0
0
www.koldfire.com
I didn't think that was a function of the Mutator class. What other properties is there to change? I need a full list of the variables and functions... And a good understanding of the IsRelevant function and ReplaceWith, and AlwaysKeep really confuses me. I got a bad descriptons of these functions.
 
Last edited:

Papapishu

我是康
Jun 18, 2001
2,043
0
0
43
void
www.vovoid.com
Do you know about OpenGL programming?
I really need some help there...
I use djgpp (cause msvc can't start...) and I lack the correct files I need to program it.
I need library files in .a-format and all the headerfiles, and rather the glut-stuff too...
I've been looking all around, even in the opengl forum, but noone helped me...
If you'd want to send me a zip with all the files I need (or urls) (providing that you know or posess those) I would be most glad :)
 

Xerk

Keyboard Mastá
Jan 6, 2002
16
0
0
www.koldfire.com
Well, I use MSVC 6, and what I did was installed the libraries that I got off opengl.org, they are not it .a format though. This link is what I downloaded and extraced. You need to put these in your compilers library directory and load then in your compiler. (I had much trouble). I've never used djcpp, I've only used gcc(linux) and MSVC. Sorry if this doesn't help. Maby ask me for some coding problems next time... Hehe. I'm not a full expert, but I have a few books and have read many tutorials online. Now I really want to get into the Unreal community and start coding for UT. Its greate that there are these forums for help and support!
 

Shiit

Shiit
Dec 19, 2000
168
0
0
Indeed.
As for a complete list of the Mutators abilities, you could start by reading this: Mod Authoring for Unreal Tournament. It has quite some info on Mutators.
As for OGL, I don't think that's easy in a DOS compiler, (DJGPP, or is there a Windows version of that?) so you might want to give Dev-C++ a try. It's a free Windows compiler.
And I think they have some docs about getting OGL working with it at www.gamecoding.co.uk, but I'm not sure as it seems to be down ATM.
 

Lemoni

The Philosapher
Feb 17, 2001
628
0
0
members.lycos.co.uk
Originally posted by Brood_of_Evil
Well it's rather easy, even though it has been done already..here's the whole class:

Code:
//=================================
//RedeemerArena
//=================================
class RedeemerArena expands Arena;

defaultproperties
{
    WeaponName=WarheadLauncher
    AmmoName=WarheadAmmo
    WeaponString="Botpack.WarheadLauncher"
    AmmoString="Botpack.WarheadAmmo"
    DefaultWeapon=Class'WarheadLauncher'
}

That's it, just save it to an .uc file and compile it with ucc and then add the .int file. If you don't know how to use .uc's and ucc to complile unreal classes, check it out here: www.unrealscript.com/tutorials/tut20.html.

read it, it's a MUST for any hardcore unreal scripter.

easy isnt it
 

Shiit

Shiit
Dec 19, 2000
168
0
0
These vars were already defined by the "Arena" class. RedeemerArena is a child (subclass) of this class, so it inherits ALL functions and vars from it. Arena already has functions that replace all weapons and ammo, and they use these variables.
BTW, Arena is a subclass of "Mutator", which has functions to replace things in the first place, and it also defines what a mutator can and what it can't (or actually that's defined by the GameInfo that calls the mutator's functions)
 

Xerk

Keyboard Mastá
Jan 6, 2002
16
0
0
www.koldfire.com
I wrote this exact code:

//=================================
//RedeemerArena
//=================================
class RedeemerArena expands Arena;

defaultproperties
{
WeaponName=WarheadLauncher
AmmoName=WarheadAmmo
WeaponString="Botpack.WarheadLauncher"
AmmoString="Botpack.WarheadAmmo"
DefaultWeapon=Class'WarheadLauncher'
}

and it gave me an error saying unexpected defaultproperties...
I don't think defaultproperties is a correct function...
 

Magus

New Member
Oct 7, 2001
69
0
0
Visit site
If you are working in Ued you do not write the defaultproperties section out by hand, writing it out by hand is only needed when you work outside of UED. Ued kind of hides these settings from view, so to edit defaulr properties you need to right click on your class in the actor browser and click on default properties to change the settings. But if you plan to do much serious coding you should work outside of ued.
 

Shiit

Shiit
Dec 19, 2000
168
0
0
Besides, the mutator vars have been (wow, smart move, Epic) hidden from view in Ued, so you'll have to use UCC to make a RedeemerArena.
 

ZitherMan

New Member
Oct 11, 2001
24
0
0
Originally posted by Xerk
I didn't think that was a function of the Mutator class. What other properties is there to change? I need a full list of the variables and functions... And a good understanding of the IsRelevant function and ReplaceWith, and AlwaysKeep really confuses me. I got a bad descriptons of these functions.

http://nehe.gamedev.net
go for it