~[A]Daedalus~ wrote:~[A]Mr. X~ wrote:DeusExPlayer(Owner).GroundSpeed*=2;
Pawn(Owner).GroundSpeed *= 4;
eh?
whats wrong with this?
if the code doesnt work at all, i guess its because function beginstate isn't being called at all (how can it be called if theres no state ?!?!?!). Have a look on candybar.uc
- Code: Select all
//=============================================================================
// Candybar.
//=============================================================================
class Candybar extends DeusExPickup;
state Activated
{
function Activate()
{
// can't turn it off
}
function BeginState()
{
local DeusExPlayer player;
Super.BeginState();
player = DeusExPlayer(Owner);
if (player != None)
player.HealPlayer(2, False);
UseOnce();
}
Begin:
}
defaultproperties
{
...
}
The function is being called.
Nevermind, I finally managed to fix the groundspeed! It's a bit jumpy, but it's better than nothing ^_^
All It needs now is an activation sound and a client message.
Argh, it runs into the same bug as the Power Jump suit, if you die once it has been activated, the effects still last..
Except MTL Doesn't fix it.