Custom Ball in Death Ball

Everything about Death Ball.

Moderators: Jay2k1, DavidM, The_One

Locked
EvilTwin1
Junior Member
Posts: 3
Joined: 19-03-2003 20:41
Contact:

Custom Ball in Death Ball

Post 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 :P
User avatar
Rens2Sea
Posts: 1849
Joined: 09-03-2003 00:21

Post 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();
}
Kyllian
Member
Posts: 75
Joined: 21-03-2003 09:58

Post 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'
DaJero

Post 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!
User avatar
Rens2Sea
Posts: 1849
Joined: 09-03-2003 00:21

Post by Rens2Sea »

You can change almost every default value in Postbeginplay including drawscale and the collisionsizes :p \o/
DaJero

Post by DaJero »

Rens2Sea wrote: You can change almost every default value in Postbeginplay including drawscale and the collisionsizes :p \o/


yeah, but to get REALLY different behaviour you need to subclass DB_BombFlag. Changing default properties are just minor adjustments.
User avatar
Rens2Sea
Posts: 1849
Joined: 09-03-2003 00:21

Post by Rens2Sea »

I know :p
User avatar
JODECI
Posts: 45
Joined: 14-03-2003 17:27

Post by JODECI »

So in English does that mean leave the ball alone? :D
Locked