Author Topic: Customizable Playertype V2.0  (Read 10600 times)

Customizable Playertype v2.0


I've been waiting to post this for several months now. Now that RTB v4.05 was rolled out yesterday, this is actually possible in its new form. It uses the new RTB preference types for easier control. This version also works ingame, and changes will take effect as soon as the preferences are saved.

If you don't already know what this is, it is a playertype I developed which allows you to use the RTB preferences window to modify many basic features of a playertype in-game. The intent of this is not only to provide ease of access, but also to cut down on the number of playertypes needed in general. Simple playertype tweaks are now easy for anyone.

The player is set up so that it functions exactly as a standard playertype would, so you will need to change the values in the RTB preferences for an actual change.

The following preferences are available for changes:

Air Control: Uses the new slider feature.
Can Jet: Uses a checkbox, toggling the ability to use jets.
Can Ride: Uses a checkbox, toggling the ability to mount vehicles.
Can't Inflict Damage: Toggles whether players can inflict damage. This is experimental. Please notify me if you encounter an issue.
Invincible: Toggles whether the player is immune to taking damage.
Jump Force: The force used when the player jumps, with a default of 1080. I'd like to be able to convert this to a predictable brick height, but I can't figure out a proper formula.
Forward, Backward, and Side Speed: The speed values used for running in each direction.
Forward, Backward, and Side Crouch Speed: The speed values used when crouching and moving in any direction.
Forward, Backward, and Side Underwater Speed: Yeah, you get the idea.
Health: The health points of the player.
Max Items: The number of items that can be carried. Maximum of 9.
Jump Delay (MS): The restricting time between each jump, measured in milliseconds.
Step Height: The height that a player may step, measured in plates.
Mass: The mass of the player.
Density: The density of the player. This alters how they react to liquids.
Viewing Restriction: Uses a list that allows no restriction, first person only, or third person only.
Third Person View Type: Uses a list that allows either the default view or over the right shoulder.
Max Run Angle: The maximum angle that the player can walk on.
Max Jump Angle: The maximum angle that the player can jump from.
Min Impact Speed: This is the minimum speed that a player must collide with something before taking impact damage.
Impact Damage Scale: This is the factor by which the player's impact speed will be multiplied before being converted to damage. (Speed * DmgScale = Damage)

Optional:
Uses Tactical Knife: This toggles whether the player will use a tactical knife. This option will only show up if the Weapon_TacKnife addon is enabled.


What are you waiting for?
Download it here.
« Last Edit: April 22, 2013, 08:13:40 PM by Wheatley »

Wow! This looks really cool and definitely useful. I will have to try this!

Will this go all asdf with slayer? Or would you just use a selection called "Customizable Playertype?"
« Last Edit: April 22, 2013, 08:03:31 PM by SailorMan »

This sounds fantastic, there should be events to go with this that can change any of those functions

Will this go all asdf with slayer? Or would you just use a selection called "Customizable Playertype?"
It will show up the the playertype list as "Custom Player".

Strange, i have it enabled, but i don't see it in the minigame playertype list

Does this work like the last one, where you have to restart the server for the effects to take place?
« Last Edit: April 22, 2013, 08:13:11 PM by Aware »

No. This version works entirely in-game. Changes will take effect as soon as you update the preferences.

No. This version works entirely in-game. Changes will take effect as soon as you update the preferences.
thank god

Whenever I launch a game with it enabled, Blockland freezes on CREATING SERVER.

I don't see it on the playertype list.

Whenever I launch a game with it enabled, Blockland freezes on CREATING SERVER.
I don't see it on the playertype list.
Strange, i have it enabled, but i don't see it in the minigame playertype list
Is there an add-on that somehow conflicts with it? I've checked and made sure it shows up with or without slayer, as well as under events, etc. All you need is the latest version of RTB.
Have you tried running it with default add-ons?

set everything to highest value = best player ever

Effects the entire server.
Not entirely useful IMO, but can be useful in some cases.

A set of these would be excellent, so maybe Custom Player A, B, and C

Effects the entire server.
In what cases? It should only affect anyone using the playertype.

A set of these would be excellent, so maybe Custom Player A, B, and C
I thought about adding more in the future, but first i'd like to make sure everything is working properly.