- Code: Select all
class SpeedAmplifier extends GuRuPickup;
state Activated
{
function Activate()
{
// can't turn it off
}
function BeginState()
{
local Human player;
Super.BeginState();
player = Human(Owner);
if (player != None)
Player.mpWaterSpeed=220.000000;
Player.mpGroundSpeed=460.000000;
Player.ClientMessage("|p5You can now walk and swim 2 times faster.");
Player.PlaySound(sound'PlasmaRifleReload');
UseOnce();
}
Begin:
}
Any idea how I can make it so the effect goes away when you die?
Lol sorry not such a good modder.