Pulsating gibs

Search, find and discuss about Mutators!
Post Reply
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 »

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
}
Attachments
GibPulse_V1.0.zip
GibPulse Mutator
(2.68 KiB) Downloaded 178 times
blarg
User avatar
papercoffee
Godlike
Posts: 10447
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: Pulsating gibs

Post by papercoffee »

:| ...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 »

Pics wouldn't really show anything.

Would need a video clip to see the gibs actually pulsating.....
blarg
User avatar
EvilGrins
Godlike
Posts: 9688
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: Pulsating gibs

Post by EvilGrins »

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