| Blockland Forums > Suggestions & Requests |
| Multiple Speed No Jet Playertypes |
| << < (2/5) > >> |
| Lugnut:
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: ---EVAL echo(playerstandardarmor.runforce); ADDCONSOLE % ==> echo(playerstandardarmor.runforce); ADDCONSOLE % 4320 --- End code --- --- Quote from: Katadeus on July 22, 2012, 08:25:42 AM ---datablock PlayerData(PlayerINSERTNAMEHERE : PlayerStandardArmor) { runforce = RUNFORCEHERE; minJetEnergy = 0; jetEnergyDrain = 0; canJet = 0; uiName = "INGAMENAME"; showEnergyBar = false; }; --- End quote --- 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. |
| Lugnut:
--- Code: (server.cs) ---%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"; }; --- End code --- --- Code: (description.txt) ---Title: Multiple Speeds Author: idgaf has a bunch of speed modifications for default no-jet player. --- End code --- copy-paste that into a SERVER.CS file inside of a .ZIP FILE which ALSO CONTAINS a DESCRIPTION.TXT |
| Katadeus:
Thanks Lug, that looks about right. |
| Lugnut:
--- Quote from: Katadeus on July 22, 2012, 02:06:57 PM ---Thanks Lug, that looks about right. --- End quote --- no stuff it's about right :/ worth noting your simple tutorial motivated me to do that |
| Katadeus:
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. |
| Navigation |
| Message Index |
| Next page |
| Previous page |