Question: Combat while swimming

drdax

New Member
Jun 11, 2015
132
0
0
#1
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 ?
 

drdax

New Member
Jun 11, 2015
132
0
0
#4
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
Aug 30, 2010
208
1
18
#5
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

New Member
Jun 11, 2015
132
0
0
#6
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
 
Jul 13, 2012
186
0
16
#7
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

New Member
Jun 11, 2015
132
0
0
#8
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
 
May 31, 2012
66
2
6
42
www.tpot.ca
#9
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

Moderator
Staff member
Moderator
Aug 31, 2010
208
17
18
#10
Maybe objects/creature/commands/Queuecommand.cpp?

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