Low Caliber Forum
rune speed

This topic can be found at:
http://lowcaliber.com/eve/forums/a/tpc/f/3886011002/m/5376047034

Thu September 18 2003, 05:33 PM
wheresthebeach
rune speed
function SetMovementMode()
{
if(Weapon != None) {
// Combat Mode
// GroundSpeed = CombatSpeed;
bRotateTorso = True;
SpeedScale = SS_Elliptical;
} else {
bRotateTorso = True;
SpeedScale = SS_Circular;
}
}


shood that make walking backwards slower with a weapon


Thu September 18 2003, 06:18 PM
Unter den Uebrigen
Dude; you hit it on the head.
Thu September 18 2003, 06:40 PM
wheresthebeach
do i have to make it into a mutator before it is activated on my server?
Thu September 18 2003, 06:50 PM
Unter den Uebrigen
You'd have to subclass RunePlayer and modify the SetMovementMode function; use a mutator or a new gametype to replace RunePlayer with the new player class at login.
Thu September 18 2003, 06:58 PM
wheresthebeach
function SetMovementMode()
{
if(Weapon != None) {
// Combat Mode
// GroundSpeed = CombatSpeed;
bRotateTorso = True;
SpeedScale = SS_Elliptical;
} else {
bRotateTorso = True;
SpeedScale = SS_Circular;
}
}

is a new subclass from RunePlayer
so i did that part right?

so how do i make a mutator activate this code?
Thu September 18 2003, 07:23 PM
Unter den Uebrigen
Holy shit; bRotateTorso is brilliant.  Be interesting to see if it has the desired effect; RuneLookMesh.uc says bRotateTorso only makes the “Torso turn[...] during look”.

I've never tried with a mutator (just game type); but the function you'd take a look at might be:
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
	return true;
}
Insert something to the effect of
switch (Other.class) {
	case Ragnar:
		spawn(class'myPackage.myRagnar',,, other.location, other.rotation);
		return false;
}
I've always used the Login function in RuneMultiPlayer, however, and inserted a line such as this:
NewPlayer = Spawn(clSpawn,,'Player',StartSpot.Location,StartSpot.Rotation);

Thu September 18 2003, 07:33 PM
wheresthebeach
wood i make a subclass under Mutator and enter that code u said
Thu September 18 2003, 08:23 PM
Unter den Uebrigen
Exactly.
Thu September 18 2003, 08:29 PM
wheresthebeach
i get a error unexpected 'switch'
lol Razz
Thu September 18 2003, 08:55 PM
Unter den Uebrigen
Show me what you have.
Thu September 18 2003, 10:00 PM
Methril
Unter is the man ^_^

beach is my little homie
Fri September 19 2003, 03:11 PM
wheresthebeach
//=============================================================================
// beachspeedmut.
//=============================================================================
class beachspeedmut expands Mutator;

function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
return true;
}

switch (Other.class) {
case beachspeed:
spawn(class'beachspeedpak.beachspeed',,, other.location, other.rotation);
return false;
}
Fri September 19 2003, 10:04 PM
wheresthebeach
now i got this
class beachwalkmut expands Mutator;

function PreBeginPlay()
{
Super.PreBeginPlay();
}
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if(Other.IsA('Runes'))
{
return false;
}

return true;
}
Sat September 20 2003, 02:45 PM
wheresthebeach
ok lol forget those other 2 codes
this is what i have now
============
class beachspeedmut expands Mutator;

function ModifyPlayer(Pawn Other)
{

Super.ModifyPlayer(Other);

if(Level.NetMode != NM_StandAlone)
other.SpeedScale = SS_Elliptical; // SS_Circular; // No elliptical movement in netplay
else
other.SpeedScale = SS_Circular; // SS_Elliptical;
}
Sat September 20 2003, 05:45 PM
wheresthebeach
this is what i got now

Function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{



//switch (RuneI.RunePlayer)

//case Ragnar:
// ReplaceWith(Other, "beachspeedmutpak.beachspeedplayer");

spawn(class'beachspeedmutpak.beachspeedplayer');
return false;
}
Return true;
}
Sat February 28 2004, 03:08 PM
wheresthebeach
unter its been awhile
could ya take a look at my code