hoping there's an easy way to incorporate the speed effect

Discussions about Coding and Scripting
Post Reply
User avatar
EvilGrins
Godlike
Posts: 9769
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

hoping there's an easy way to incorporate the speed effect

Post by EvilGrins »

Does anyone remember Relics? It put power items all over any given map that gave users powers, after a fashion. The person that picked up the speed relic moved really fast and got this after image effect behind him as he/she ran.

How does one get that speed effect? I've skimmed the relics.u and can't figure it out.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
Sp0ngeb0b
Adept
Posts: 376
Joined: Wed Feb 13, 2008 9:16 pm
Location: Cologne
Contact:

Re: hoping there's an easy way to incorporate the speed effe

Post by Sp0ngeb0b »

Did you have a look in the RelicSpeedInventory class?

Code: Select all

	
function BeginState()
{
		SetTimer(0.2, True);

		Super.BeginState();

		// Alter player's stats.
		Pawn(Owner).AirControl = 0.65;
		Pawn(Owner).JumpZ *= 1.1;
		Pawn(Owner).GroundSpeed *= 1.3;
		Pawn(Owner).WaterSpeed *= 1.3;
		Pawn(Owner).AirSpeed *= 1.3;
		Pawn(Owner).Acceleration *= 1.3;

		// Add wind blowing.
		Pawn(Owner).AmbientSound = sound'SpeedWind';
		Pawn(Owner).SoundRadius = 64;
}
Website, Forum & UTStats

Image
******************************************************************************
Nexgen Server Controller || My plugins & mods on GitHub
******************************************************************************
User avatar
EvilGrins
Godlike
Posts: 9769
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: hoping there's an easy way to incorporate the speed effe

Post by EvilGrins »

Sp0ngeb0b wrote:Did you have a look in the RelicSpeedInventory class?
So, basically what you're saying is I need a script to incorporate the speed after trails behind the bot?

Well, poo.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
Sp0ngeb0b
Adept
Posts: 376
Joined: Wed Feb 13, 2008 9:16 pm
Location: Cologne
Contact:

Re: hoping there's an easy way to incorporate the speed effe

Post by Sp0ngeb0b »

The code I posted above just makes the player faster, the actual 'shadow' effect is more complex, including the classes SpeedShell and SpeedShadow.

And yeah, you need to make a script (could be a pickup, a mutator, or whatever) to archieve this effect :)
Website, Forum & UTStats

Image
******************************************************************************
Nexgen Server Controller || My plugins & mods on GitHub
******************************************************************************
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: hoping there's an easy way to incorporate the speed effe

Post by JackGriffin »

And it gets more involved than that too. You have to give the speed as an effect of some sort of inventory item and not adjust it directly on the player. If you don't go this route you can get stacking of the effect because it never gets reset if a player dies.
So long, and thanks for all the fish
User avatar
Dr.Flay
Godlike
Posts: 3348
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: hoping there's an easy way to incorporate the speed effe

Post by Dr.Flay »

Would it be a crime to have the relics in the maps? :wink:
BTW. there are other relic packs and replacements (I know you love-em).
RelicClasses
Relics2
PredatorRelic
Wrelics (Wrath's Custom Relics)
RuneZ
and kinda relic-ish, SpellUNREAL
Post Reply