View Full Version : Mr. Evil, did you ever stop pawn rotation?
legacy-smacktard
08-16-2003, 11:38 AM
I am working on a freeze gun that freezes player movement for 10 secs. I have stopped all animation, firing and sound, but cannot get the bots to stop rotating to face you while frozen. As you walk around them they always rotate to face you. I have tested about 20 variables that might relate to this but none work.
I read in an old post from Mr. Evil that he was trying the same thing to no avail. None of the responses seemed to help ( I have already tried these suggestions too.)
So I guess my question is to Mr. Evil or anyone else who has encountered this problem and knows how to solve it.
legacy-Mychaeel
08-16-2003, 11:51 AM
If you set bStasis to True for the bots and set their Enemy to None, they should neither reacquire you as an enemy nor turn to face you.
legacy-Doc_EDo
08-16-2003, 01:17 PM
Just say m00. They'll think your a cow and will ignore you. :up: :haha:
legacy-Mr Evil
08-16-2003, 02:54 PM
I never managed to find a 'proper' way to stop pawns rotating. I ended up setting the rotation in a tick function. Here's the relevant bit of code:
function ModeDoFire()
{
if(!AllowFire())
return;
if(!CheckMark())
{
Instigator.AccelRate = Instigator.Default.AccelRate;
Weapon.PlayOwnedSound(FailSound, SLOT_Interact, TransientSoundVolume,,,, false);
return;
}
ShakeOffsetMag = Default.ShakeOffsetMag;
ShakeOffsetRate = Default.ShakeOffsetRate;
ShakeOffsetTime = Default.ShakeOffsetTime;
ShakeRotRate = Default.ShakeRotRate;
ShakeRotTime = Default.ShakeRotTime;
Super.ModeDoFire();
Instigator.SetPhysics(PHYS_None);
LockedRotation = Instigator.Controller.Rotation;
bObscurelyNamedBoolean = true;
SetTimer(FireRate, false);
}
function Tick(float DeltaTime)
{
//Prevents players from rotating whilst firing.
if(bObscurelyNamedBoolean)
Instigator.Controller.SetRotation(LockedRotation);
}
If players may be frozen whilst in mid-air, then the bit where it sets Physics to PHYS_None would have to done differently.
legacy-Mychaeel
08-16-2003, 03:03 PM
You can test my bStasis suggestion by entering the following two console commands while playing with bots:
set xBot bStasis True
set xBot Enemy None...and indeed, it works fine: Bots immediately start ignoring any players even when shot and stay where they are.
legacy-CyberTao
08-17-2003, 05:27 PM
maybe you can force the bots to unpossess() for the time of the freeze?
legacy-CorDharel
08-18-2003, 07:36 AM
Originally posted by Doc_EDo
Just say m00. They'll think your a cow and will ignore you. :up: :haha:
Pfff, not everyone use the same method you use :p :D
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.