Page 1 of 1
Custom Ball in Death Ball
Posted: 06-05-2003 07:19
by EvilTwin1
A few custom balls have been around, and when I wanted to make one, it was hard to find info.
So after I finally got the hook up from Blaagguuu, I decided to spend a little time, and do an in depth tutorial.
Sorry for posting it here but, if anyone wants to see it, check it out at
ET1 Ball Tut
That is all

Posted: 06-05-2003 08:22
by Rens2Sea
No need to replace the ball, just use this in your mutator instead of the CheckReplacement function:
Code: Select all
function PostBeginPlay()
{
Class'xGame.xBombFlag'.Default.StaticMesh=StaticMesh'ET1BallS.ET1Ball';
Super.PostBeginPlay();
}
Posted: 06-05-2003 09:28
by Kyllian
One thing I've noticed is that some custom balls alter the physical "size" of the ball
More than once I saw a ball bounce off the post when it shouldn't have
Even did some testing on and offline and once in a while, the ball actually seems to have changed 'size'
Posted: 06-05-2003 09:34
by DaJero
Rens2sea's code only alters the mesh of the ball. If you want to add some other behaviour as well you need to subclass DB_BombFlag and you can replace the current ball with your ball using a mutator.
This is the code from DB_Mutator:
Code: Select all
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if ( Other.IsA('xBombSpawn') )
{
xBombSpawn(Other).FlagType = class'Deathball.DB_BombFlag';
}
// there is other code here but it's not relevant to your question
}
See how DeathBall uses a normal xBombSpawn for their own ball?
Good luck!
Posted: 06-05-2003 09:41
by Rens2Sea
You can change almost every default value in Postbeginplay including drawscale and the collisionsizes :p

Posted: 06-05-2003 10:45
by DaJero
Rens2Sea wrote:
You can change almost every default value in Postbeginplay including drawscale and the collisionsizes :p
yeah, but to get REALLY different behaviour you need to subclass DB_BombFlag. Changing default properties are just minor adjustments.
Posted: 06-05-2003 10:54
by Rens2Sea
I know :p
Posted: 06-05-2003 11:21
by JODECI
So in English does that mean leave the ball alone?
