How can i change character-size while riding a vehicle?

User avatar
Drachenbauer32
Member
 
Posts: 98
Joined: Wed Aug 28, 2019 18:11

How can i change character-size while riding a vehicle?

by Drachenbauer32 » Tue Oct 29, 2019 19:54

Hello

As i tryed out some vehicle-entities, my character was shrinked down alot while riding them.

How can i set this character-size-scale?
 

User avatar
paramat
Developer
 
Posts: 3448
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: How can i change character-size while riding a vehicle?

by paramat » Wed Nov 06, 2019 21:20

Currently you cannot, but i solved this by using:
visual_size = {x = 2.0, y = 2.0},
And defining the vehicle entity to be smaller to compensate for that.
Example code, my own version of boats mod that uses a nodebox for the boat:
https://github.com/paramat/kuutiopeli/blob/master/mods/boats/init.lua
Even weirder, the nodebox is scaled up by 'visual_scale * 1.5', so has to be defined at 1/3rd size.
 

User avatar
Drachenbauer32
Member
 
Posts: 98
Joined: Wed Aug 28, 2019 18:11

Re: How can i change character-size while riding a vehicle?

by Drachenbauer32 » Wed Nov 13, 2019 20:27

But how do i realize textures for nodebox type vehicles, wich are bigger than 3 nodesizes and use drawtype = "nodebox", (some nodebox-values bigger than 0.5)?

For smaller ones i think, i can use textures with 48x48 pixels and draw the graphics in the right size at the richt location on this canvas to keep the pixels the same size as on my normal building nodes.

vehicles, wich use a node with a .obj-mesh drawtype = "mesh", are no problem, even, if huge sized.
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 1 guest