PDA

View Full Version : Help pls slomo dodge


Fustrun
20th Jun 2004, 05:51 AM
Hi I need help in a small matter . . . What I want is to make ut's dodge's like in max payne (not animations) only code . . .
[dodging - play sound "start dodge" slomo = 0.1 wait the dodge time
and play sound "end dodge" slomo = 1.0 end dodging]
thats about it . .

I wrote it with crouch to just see if I can make it so no pay attention to that . . .

class BulletTime extends Mutator;

function PostBeginPlay()
{
Super.PostBeginPlay();
log("I got your orders !!!");
if(Instegrator.bIsCrouched)
level.game.SetGameSpeed(0.2);
else
level.game.SetGameSpeed(1.0);
}

defaultproperties
{
FriendlyName="dodge"
Description="Slomo dodge."
Groupname="slomo"
}

What happenes is that it starts and write the log message and as soon as I start he automaticly sets game speed to 0.2 without crouching. HELP !!

Fustrun
20th Jun 2004, 06:00 AM
Hi I need help in a small matter . . . What I want is to make ut's dodge's like in max payne (not animations) only code . . .
[dodging - play sound "start dodge" slomo = 0.1 wait the dodge time
and play sound "end dodge" slomo = 1.0 end dodging]
thats about it . .

I wrote it with crouch to just see if I can make it so no pay attention to that . . .

class BulletTime extends Mutator;

function PostBeginPlay()
{
Super.PostBeginPlay();
log("I got your orders !!!");
if(Instegrator.bIsCrouched)
level.game.SetGameSpeed(0.2);
else
level.game.SetGameSpeed(1.0);
}

defaultproperties
{
FriendlyName="dodge"
Description="Slomo dodge."
Groupname="slomo"
}

What happenes is that it starts and write the log message and as soon as I start he automaticly sets game speed to 0.2 without crouching. HELP !!

And change the animations of dodging from dodge to walldodge . . . .