What does this line say ?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Fustrun

Artist
Oct 30, 2002
31
0
0
Visit site
What does this line say ?

[log]

"Warning: BulletTime DM-HyperBlast2.BulletTime (Function TheMatrix.BulletTime.ModifyPlayer:004B) Accessed None"

My code . . .


class BulletTime extends Mutator;

function ModifyPlayer(Pawn Other)
{
local xPawn x;
x = xPawn(Other);

log("Brought up the function !!");
if(x != None)
{
if(Instigator.Controller.IsA('bISCrouched'))
{
Log("Oki doki im working");
level.game.Setgamespeed(0.2);
}
else
Log("Turn Back");
level.game.Setgamespeed(1.0);
}
Super.ModifyPlayer(Other);

}

defaultproperties
{
GroupName="BulletTime"
FriendlyName="BulletTime"
Description="Slow motion dodges."
}
 

Fustrun

Artist
Oct 30, 2002
31
0
0
Visit site
class BulletTime extends Mutator;

function tick()
{
Log("Brought up the function");
if(Instigator.bIsCrouched)
{
Log("Oki doki im working");
level.game.Setgamespeed(0.2);
}
else
Log("Turn Back");
level.game.Setgamespeed(1.0);

}

defaultproperties
{
GroupName="BulletTime"
FriendlyName="BulletTime"
Description="Slow motion dodges."
}

"Redefinition of function tick differs from original in Actor."

GGGGGGGGGRRRRRRRRRR
 

Sir_Brizz

Administrator
Staff member
Feb 3, 2000
26,020
83
48
Code:
class BulletTime extends Mutator;

function ModifyPlayer(Pawn Other)
{
  local xPawn x;
  x = xPawn(Other);

  log("Brought up the function !!");
  if(x != None)
  {
    if(Instigator.Controller.IsA('bISCrouched'))
    {
      Log("Oki doki im working");
      level.game.Setgamespeed(0.2);
    }
    else          //bad technique, you should use {} to be more clear that this else statement is ending.
      Log("Turn Back");
    level.game.Setgamespeed(1.0);
  }
  Super.ModifyPlayer(Other);

}

defaultproperties
{
  GroupName="BulletTime"
  FriendlyName="BulletTime"
  Description="Slow motion dodges."
}

edit:
i had to do this to be able to read it...please use the
Code:
 tags in the future...

I don't understand what you are doing. Did you replace this all with tick or what? where are you enabling the Tick function? why are you checking if some an Instigator is crouched??

Also, you're technique makes your code hard to read.

My guess is that the way you are accessing Instigator is causing your probles, but I'm not sure from reading your code.
 
Last edited by a moderator: