Question: Combat while swimming

drdax

Member
Joined
Jun 11, 2015
Messages
133
Hi folks - is there a way to enable combat while swimming ? I have an idea, but need this functionality to move forward. Any thoughts of where to look ?
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
Viaron said:
Yes.

Don't mask me how, but it shouldn't be too hard. Getting it to where it looks pleasing might take more effort though.
 

drdax

Member
Joined
Jun 11, 2015
Messages
133
ok, next question, can I make a creature that is restricted to only water? LOL I know but hey ... any pointers would be great.
 

Uli

Moderator
Staff member
Moderator
Joined
Aug 30, 2010
Messages
208
Timbab said:
Viaron said:
Yes.

Don't mask me how, but it shouldn't be too hard. Getting it to where it looks pleasing might take more effort though.
States thing, there was combat while swimming back when states were a wip if I recall correctly.

But yeah its all controlled by states whether something can do something or not, all server side.
 

drdax

Member
Joined
Jun 11, 2015
Messages
133
Uli said:
Timbab said:
Viaron said:
Yes.

Don't mask me how, but it shouldn't be too hard. Getting it to where it looks pleasing might take more effort though.
States thing, there was combat while swimming back when states were a wip if I recall correctly.

But yeah its all controlled by states whether something can do something or not, all server side.
Thanks All.. any thoughts on the second question: Creature confined to water only? i.e. can't traverse land? example rivers and lake / ocean shores.. or would i need to spawn the creature far enough out to sea, based on the AI random movement and tethering .. a big ask I know.. but I am thinking one word here ....

SHARKS
 

Viaron

Member
Joined
Jul 13, 2012
Messages
189
If you figure it out, make a command for it too. Banning players to water only will be a great new way to abuse admin permissions.
 

drdax

Member
Joined
Jun 11, 2015
Messages
133
Viaron said:
If you figure it out, make a command for it too. Banning players to water only will be a great new way to abuse admin permissions.
I checked in to catch up and literally spit out my coke (and whiskey) laughing at the this evil, yet so funny visual !!

Now it MUST be done! Any guidance out there would be appreciated... (still laughing as I type this)

PS: it's Shark Week on Animal Planet
 

tatwi

Member
Joined
May 31, 2012
Messages
66
Have a look at these files that handle how "creature" works. Player is one part creature and one part player, but mobs are all creature.

Core3/MMOCoreORB/src/server/zone/objects/creature/CreatureObjectImplementation.cpp
Core3/MMOCoreORB/src/server/zone/objects/creature/CreatureState.h

I have no idea where you would program it and to make it work properly would require a lot of brain power to achieve. Spawning only in water, how do you read the water constraints and apply pathing changes in a smooth manner, can you move the player in 3D and if not is it worth the effort... lots of questions there, but no answers. Good luck to ya! :)
 

Valkyra

Member
Joined
Aug 31, 2010
Messages
211
Maybe objects/creature/commands/Queuecommand.cpp?

It may have to do with posture, I'm not 100% sure.
 
Top Bottom