Forum > Serverside Modding

[QUESTION] Ride gameobjects

<< < (5/10) > >>

Смердокрыл:

--- Quote from: "stoneharry" ---That's the beauty of object orientated programming. You could just store the current object guid that is spawned in the player class and remove it on a movement packet being received, or all the other cases like logout, map change, command...
--- End quote ---

So if Im planning to use smartAI:
 for spawning, the action_type is 50 and target_type is 1. What is the event_type? 28 or 43 maybe?
 for despawning, the action_type is 41 and target_type is, I presume, 12? Event type possibly 34?

Allifeur:
You could also fake a collision by giving your vehicule an invisible aura that bumps those who are too close. That way, people couldn't go through the object when it's moving. But this solution is better for small vehicles and not for these giant ships you want. I never tried it, but I imagine it would be easier to manage little boats, like this one :



 This aura system is a good addition to the alternation of creature/gameobject phases : it avoids players to get into your boats.

Method:
The way that Blizzard has ALWAYS done this kind of stuff is by creating transport npcs or simply using mounts, sadly creating an entirely new method is just really complex.

You're talking about essentially recoding the game object handler (The closest in resemblance to your desired collision) to handle movement, which isn't impossible, but I'd imagine it wouldn't be very practical, and would destroy an average PC.

The boat in Shimmering Flats is an example of THE go-to transport NPC, you can't really move inside it like it was a game-object. If Blizzard themselves uses that method, then it's pretty hard to create an alternative, like I said, creating one requires some serious work.

-- but there are workarounds.

I think the easier alternative is to create a new zone, and in that zone, design it like the interior of a ship.

Talking to your own transport NPC, or having a hearthstone device could in theory allow you to go inside your ship, and you can have as many gameobjects as you want in there, as it would be a static zone. So, you're not really walking on, or inside your ship, HOWEVER you can walk inside it, and potentially have a crew onboard if it was an actual zone.

Making a zone that confined and small isn't a new idea, look at the pre-cata war-rooms for Alliance and Horde.

Смердокрыл:
I wantED people to walk inside the ship when its moving, just like in a proper ship. But thats not possible.

Method:
You CAN give it the *illusion* of movement though. You don't need to move the ship, you just need to move everything around the ship. You would still achieve a lot of your desired affect.

You CAN make your ship look like it's moving through the sea, in the middle of the ocean, you can have a bunch of npcs like untargetable icebergs and islands pass by, and have a full crew onboard by making a zone that fits that purpose.  

You can even dynamically change which NPC's spawn based on which area of the sea you're in. You could even stop those npcs at will while you're traveling to pick up quests, or turn dynamic npcs into static wmo's that you can actually move on.

Moving those npc paths and the game-object with fluid movement would be awesome, but it'd require some serious work that's probably complex for Blizzard themselves, it does require rewriting code, it isn't as simple as just making things work.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version