Author Topic: Player-type that doesn't swim?  (Read 1089 times)

I'm wondering if it would be possible to make a playertype that cannot swim, and instead sinks in water, with increased drag and decreased gravity, but otherwise normal player movement and animation.
« Last Edit: March 22, 2014, 03:50:28 AM by Plastiware »

Someone was trying to figure this out in the coding section as well.

If you add a very high drag to the playertype, it can not move in water.
If you add a high density, it will sink to the bottom.

If you add a high density, it will sink to the bottom.
You mean mass... I don't think there is a density variable in the player datablock class..

You mean mass... I don't think there is a density variable in the player datablock class..
Yeah, this was from the top of my head, I do indeed mean mass.
I don't know if it inflicts with anything else, thought.
It could be that if the mass is increased, the player isn't able to jump high enough anymore.
In that case you'll need to increase the jumpforce and maybe also the runforce.

But could one make the player move and animate as they would on land?  Because that's basically what I want.

Yeah, this was from the top of my head, I do indeed mean mass.
I don't know if it inflicts with anything else, thought.
It could be that if the mass is increased, the player isn't able to jump high enough anymore.
In that case you'll need to increase the jumpforce and maybe also the runforce.
Mass is basically the player's weight, I have tried very low mass, with same everything, but when I got hit with little velocity, I went pretty high.

Mass is basically the player's weight, I have tried very low mass, with same everything, but when I got hit with little velocity, I went pretty high.
Higher mass should mean sinking, not low. I might go make some weight-based playertypes.


By the way, this already exists.
https://www.mediafire.com/?1uu2kv2u1tuzjmq
Not mine, just didn't want to look for the original link.

Last Ive seen of a request like this it was concluded that the animation for swimming was hard coded and couldent be bypassed.

Id hope I'm wrong. I wanna see some Iron Boot like items.

wouldn't an easier solution be to make fake water instead?

Last Ive seen of a request like this it was concluded that the animation for swimming was hard coded and couldent be bypassed.

Id hope I'm wrong. I wanna see some Iron Boot like items.
wouldn't an easier solution be to make fake water instead?
Or swap the playertypes each time they go into water/leave water, I think lord tony did this, or did something else of the sort.

wouldn't an easier solution be to make fake water instead?

Not if you want players to still splash in it and boats to still float in it.

I think lord tony did this, or did something else of the sort.

I haven't done it yet.