Moderator: Forum Guards
[A]ENKIDUDU wrote:Whatcha doing Kyle?
Longc[A]t wrote:I still think Dae is a russian spambot.
~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
~ô¿ô~Nobody~ wrote:Well.. I could suggest a mega hack, that would do the same without a newplayer class..
PlayerTracker.AttachedPlayer = Self;
~DJ~ wrote:wut, are you compiling DeusExPlayer again?
Well, that would be.... much harder....
you can just subclass, why do you need to change the code?
~DJ~ wrote:Open with notepad, probably first open UeD, find the texture they use, press CTRL+F in the Notepad where the code is, and then copy the line or the whole function and add it to your subclass one.
Probably I can find and post it here, but later, me busy -_-
//=============================================================================
// AcidPlayer.
//=============================================================================
class AcidPlayer extends DeusExPlayer;
#exec OBJ LOAD FILE=AcidTextures
// acid effects on the player
var float AcidEffectTimer;
simulated function AcidEffects(float deltaTime)
{
local float mult, fov;
local Rotator rot;
local DeusExRootWindow root;
root = DeusExRootWindow(rootWindow);
// random wandering and swaying when drugged
if (AcidEffectTimer > 0)
{
if ((root != None) && (root.hud != None))
{
if (root.hud.background == None)
{
root.hud.SetBackground(Texture'AcidTextures.Effects.Acid');
root.hud.SetBackgroundSmoothing(True);
root.hud.SetBackgroundStretching(True);
root.hud.SetBackgroundStyle(DSTY_Modulated);
}
}
mult = FClamp(AcidEffectTimer / 10.0, 0.0, 3.0);
rot.Pitch = 1024.0 * Cos(Level.TimeSeconds * mult) * deltaTime * mult;
rot.Yaw = 1024.0 * Sin(Level.TimeSeconds * mult) * deltaTime * mult;
rot.Roll = 0;
rot.Pitch = FClamp(rot.Pitch, -4096, 4096);
rot.Yaw = FClamp(rot.Yaw, -4096, 4096);
ViewRotation += rot;
if ( Level.NetMode == NM_Standalone )
{
fov = Default.DesiredFOV - AcidEffectTimer + Rand(2);
fov = FClamp(fov, 30, Default.DesiredFOV);
DesiredFOV = fov;
}
else
DesiredFOV = Default.DesiredFOV;
AcidEffectTimer -= deltaTime;
if (AcidEffectTimer < 0)
AcidEffectTimer = 0;
}
else
{
if ((root != None) && (root.hud != None))
{
if (root.hud.background != None)
{
root.hud.SetBackground(None);
root.hud.SetBackgroundStyle(DSTY_Normal);
DesiredFOV = Default.DesiredFOV;
}
}
}
}
defaultproperties
{
}
class AcidPlayer extends Human
abstract
Config(User);
~DJ~ wrote:Read my post again, I've updated.