Author Topic: Multiple Speed No Jet Playertypes  (Read 1402 times)

Basically, a pack of five playertypes, quarter speed, half speed, 3/4 speed, 1/3 speed, 2/3 speed, without jets.  This would be useful.

Bump.

If you aren't willing to do it, then I'll have to find some old program, called afterbrick I think, which I think had a playertype maker.

It's actually extremely easy to do.

I think I may be able to entail everything necessary here.

Folder/file hierarchy

Add-ons - Player_MultiSpeed - Server.cs
                                          - Namecheck.txt
                                          - Description.txt
                                          - Player_QuartSpeed.cs
                                          - Player_HalfSpeed.cs
                                          - Player_ThreeFourthSpeed.cs
                                          - Player_OneThirdSpeed.cs
                                          - Player_TwoThirdSpeed.cs


Server.cs

exec("./Player_QuartSpeed.cs");
exec("./Player_HalfSpeed.cs");
exec("./Player_ThreeFourthSpeed.cs");
exec("./Player_OneThirdSpeed.cs");
exec("./Player_TwoThirdSpeed.cs");

Then in each of the player cs files, use this format:

datablock PlayerData(PlayerINSERTNAMEHERE : PlayerStandardArmor)
{
   runforce = RUNFORCEHERE;

   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;

   uiName = "INGAMENAME";
   showEnergyBar = false;
};



Now, unfortunately, I do not know the default runforce. I may figure that out in a moment if I decide not to be lazy. Something that I do not know whether or not it would work would be to use
runforce = runforce/2;
but since I'm an idiot that may not work.

If this doesn't work, then talk to lugnut or someone smart like that.

it'd be cooler if maybe like the 'set player scale' event there was a 'set player speed' event with a slider and such

I tried looking for Afterblock, not brick, and the webpage that it said the download was posted on is gone, i had it a long time ago, then i rememberd Platinum Blockland, and same thing happened, so if anyone has afterblock or platinum blockland, then can you pm me the link?

I believe the default runforce is 9000*1

I'm seriously not kidding, I think it is 9000.
let me go check

UPDATE: I was wrong, that's the speed of the quake playertype. the standardarmor-
Code: [Select]
EVAL echo(playerstandardarmor.runforce);
ADDCONSOLE % ==> echo(playerstandardarmor.runforce);
ADDCONSOLE % 4320
datablock PlayerData(PlayerINSERTNAMEHERE : PlayerStandardArmor)
{
   runforce = RUNFORCEHERE;

   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;

   uiName = "INGAMENAME";
   showEnergyBar = false;
};
here's a tip - make the first datablock like the quoted thing
then make the second, third, fourth, etc datablock like this:datablock PlayerData(PlayerINSERTNAMEHERE : PlayerFIRSTDATABLOCKSNAME)
{
   runforce = RUNFORCEHERE;
   uiName = "INGAMENAME";
};

hold on let me make the script, you package it. this stuff is easy, like, really easy.
« Last Edit: July 22, 2012, 01:06:08 PM by Lugnut »

Code: (server.cs) [Select]
%error = forceRequiredAddOn("Player_No_Jet");
if(%error == $Error::AddOn_NotFound)
{
error("ERROR: required add-on Player_No_Jet not found");
}
else
{
exec("Add-Ons/Player_No_Jet/server.cs");
}

datablock PlayerData(PlayerQuarterSpeed : PlayerNoJet)
{
runforce = 1080;
uiName = "1/4 Speed Player";
};
datablock PlayerData(PlayerTwoQuarterSpeed : PlayerNoJet)
{
runforce = 2160;
uiName = "1/2 Speed Player";
};
datablock PlayerData(PlayerThreeQuarterSpeed : PlayerNoJet)
{
runforce = 3240;
uiName = "3/4 Speed Player";
};

datablock PlayerData(PlayerOneThirdSpeed : PlayerNoJet)
{
runforce = 1440;
uiName = "1/3 Speed Player";
};
datablock PlayerData(PlayerTwoThirdSpeed : PlayerNoJet)
{
runforce = 2880;
uiName = "2/3 Speed Player";
};
Code: (description.txt) [Select]
Title: Multiple Speeds
Author: idgaf
has a bunch of speed modifications for default no-jet player.


copy-paste that into a SERVER.CS file inside of a .ZIP FILE which ALSO CONTAINS a DESCRIPTION.TXT

Thanks Lug, that looks about right.

Thanks Lug, that looks about right.
no stuff it's about right :/

worth noting your simple tutorial motivated me to do that

lol

okay

About right is a figure of speech.

It bugs me, however, when someone asks for help and they only get a partial explanation, the most common problem being that they aren't being given advice as to how to package a script or playertype or whatever is in question. Sorry if it was a bit rough.
I also should have remembered the default runforce, especially since when it is divided by thirty it yields 144.

lol

okay

About right is a figure of speech.

It bugs me, however, when someone asks for help and they only get a partial explanation, the most common problem being that they aren't being given advice as to how to package a script or playertype or whatever is in question. Sorry if it was a bit rough.
I also should have remembered the default runforce, especially since when it is divided by thirty it yields 144.

Well, you said you were gunna look it up, so i see it as fine.

Code: [Select]
-snip-

copy-paste that into a SERVER.CS file inside of a .ZIP FILE which ALSO CONTAINS a DESCRIPTION.TXT


Thanks lugnut

lol

okay

About right is a figure of speech.

It bugs me, however, when someone asks for help and they only get a partial explanation, the most common problem being that they aren't being given advice as to how to package a script or playertype or whatever is in question. Sorry if it was a bit rough.
I also should have remembered the default runforce, especially since when it is divided by thirty it yields 144.
divide it by only 3 and you get the number of minutes in a day: 1440

therefore, the runspeed is the number of minutes in 3 days.

divide it by only 3 and you get the number of minutes in a day: 1440

therefore, the runspeed is the number of minutes in 3 days.
I also keep on wanting to make a playertype with the runspeed 4321, but that would be silly, but that up there is also cool.

wait, so the standard player has runspeed of 9000?
because the runspeeds in the file aren't correctly divided then.

didnt see your update.

and they weren't slow enough for me, so i changed the speeds to 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8.  I don't think that is too many

And also, waht's jumping called, i want to lessen that too.  I'll look through other files for it though.
« Last Edit: July 22, 2012, 07:53:31 PM by Gen. Hothauser »

i don't really care what you do with them gen, i just did the basic crap that showed you how to do it.