Author Topic: custom topdown playertype overrides original  (Read 474 times)

im loving stupid and i dont know why it overrides the original

its a top down player that doesnt jump it works fine but i would love the two to be separate lol

help please ;v;

Code: [Select]
datablock PlayerData(PlayerTopDownArmor : PlayerStandardArmor)
On this line you are defining a datablock called PlayerTopDownArmor and making it based off the existing datablock called PlayerStandardArmor. Since the datablock PlayerTopDownArmor already exists, it is simply overwriting that datablock. Simply change the datablock name and it should work. However, you might want to also change the datablock to copy from for no reason other than to make the file smaller. If you do this, you only need to include lines that are changing, in your case; everything to do with jumping. If you have trouble, i'm more than sure somebody here will spoon-feed you.

Code: [Select]
datablock PlayerData(PlayerTopDownArmor : PlayerStandardArmor)
On this line you are defining a datablock called PlayerTopDownArmor and making it based off the existing datablock called PlayerStandardArmor. Since the datablock PlayerTopDownArmor already exists, it is simply overwriting that datablock. Simply change the datablock name and it should work. However, you might want to also change the datablock to copy from for no reason other than to make the file smaller. If you do this, you only need to include lines that are changing, in your case; everything to do with jumping. If you have trouble, i'm more than sure somebody here will spoon-feed you.
fantastic
clarification: what he means is change the standard armor part to top down armor and then only modify the jumping bits

super easy

ps: it's perfectly okay to just put all your code in server.cs.

Since the datablock PlayerTopDownArmor already exists, it is simply overwriting that datablock.
It's not overwriting it, it's creating a new one with the same name making you end up with 2 datablocks if it already exists

Yeah.. I wrote that at 5AM, probably not very smart..