Pulsating gibs

Search, find and discuss about Mutators!
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Pulsating gibs

Post by MrLoathsome » Tue Nov 01, 2011 1:16 am

GibPulse Mutator for UT99 by Mr.Loathsome (V1.0)

Mutator will cause gibs to pulsate.

Configuration file GibPulse.ini:

[GibPulse.GP]
ScaleValue=0.0250 // % of current gib size to adjust by. -- Recommended Range 0.0125 - 0.250
ReSizeRate=0.15 // Rate at which mutator will resize. -- Recommended Range 0.05 - 0.33

*Have not tested online. Suspect it might work. Serverpackage line should not be needed.

Made this short and sweet. Here is the entire source:

Code: Select all

//========================================================
// GibPulse Mutator by Mr.Loathsome.   Pulsating Gibs !!!
//========================================================
class GP expands Mutator config(GibPulse);

var bool bInit, bGrowing;
var() config float ScaleValue;
var() config float ReSizeRate;

function PostBeginPlay()
{
	if (bInit) return; else bInit = True;
	Super.PostBeginPlay();
	bGrowing = True;
	SetTimer(ReSizeRate, True);
}

function Timer()
{
   local Decoration A;

	foreach AllActors( class 'Decoration', A)
	{
		if ((A.IsA('UTCreatureChunks')) || (A.IsA('CreatureChunks')))
		{
			if (Frand() < 0.50) { bGrowing = False; } else { bGrowing = True; }
			CheckReSize(A);
		}
	}
}

function CheckReSize(Actor Other)
{
	local float f1;

	f1 = Other.DrawScale * (ScaleValue + (FRand() * ScaleValue)) ;
	if (bGrowing)
	{
		Other.DrawScale = Other.DrawScale + f1;
	}
	else
	{
		Other.DrawScale = Other.DrawScale - f1;
	}
}

defaultproperties
{
     ScaleValue=0.0250
     ReSizeRate=0.15
}
You do not have the required permissions to view the files attached to this post.
blarg

User avatar
papercoffee
Godlike
Posts: 10148
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Pulsating gibs

Post by papercoffee » Tue Nov 01, 2011 2:25 pm

:| ...I don't get it... show some pics please.

MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: Pulsating gibs

Post by MrLoathsome » Wed Nov 02, 2011 1:23 am

Pics wouldn't really show anything.

Would need a video clip to see the gibs actually pulsating.....
blarg

User avatar
EvilGrins
Godlike
Posts: 8879
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: Pulsating gibs

Post by EvilGrins » Wed Nov 02, 2011 4:32 am

Image
Pulsating gibs...ewwwww!
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758