[REQ] Y model offset

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
Absolver
Posts: 5
Joined: Mon Aug 31, 2009 12:17 pm

[REQ] Y model offset

Post by Absolver » Tue Sep 01, 2009 2:35 pm

I'm not even sure if this is possible to add, but I'm hopeful. And it might already be there, but I sure as heck can't figure out how to do it.

Some objects will appear to be partly under ground when they are spawned, and moving them about will not make them appear over ground. If you somehow add an Y offset to the model placement, an object can 'rest' on the ground, but the model itself will be lifted above ground and thus be usable as decoration.

An example of an object that exhibits this behavior is 4433 (staticobjects/wizard_spires/single_spire_1).

User avatar
Wdneq2
Retired
Posts: 94
Joined: Mon May 18, 2009 5:24 am
EQ2Emu Server: TessEQ2
Characters: Lilrat Gnome Assassin
Stok Ogre Bruiser
Flekrad Drow Shadowknight

Re: [REQ] Y model offset

Post by Wdneq2 » Tue Sep 01, 2009 2:57 pm

Would be kool if available/worked. Not sure though as ive seen this happen in EQ and EQ2 (live servers), more so in EQ having to pull a mob out of a wall or especially in in old Highpass fighting the orcs in the tree :twisted:
aka..Woody
Lilrat Gnome Assassin...poking my nose into as much as possible
Stok Ogre Bruiser... Bashing my way round the place
Flekrad DarkElf Shadowknight .... Being an Inky

Generation whY makes me grey

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: [REQ] Y model offset

Post by LethalEncounter » Tue Sep 01, 2009 5:17 pm

I could add in such an offset, however the placement of spawns should be the exact values from Live as that is where we get them. If they appear underground there might be a flag in the spawn that Live sets which we are not.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: [REQ] Y model offset

Post by John Adams » Tue Sep 01, 2009 5:24 pm

I think Absolver might be creating his own spawns, not from collections. If not, collected objects that appear to "hover" (like the Torch of Ogguk in Big Bend) need to have the include_location flag set to 1, or to 0. I remember raw collected data hovering but by toggling this flag, placed it nicely on the ground where it should be.

LE can correct me if I'm wrong, but include_location means, use the zone's "location_id" to place the object - otherwise it's off in space somewhere, and all that is really there is some artifact from the zone graphics themselves.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: [REQ] Y model offset

Post by LethalEncounter » Wed Sep 02, 2009 3:39 pm

John Adams wrote:LE can correct me if I'm wrong, but include_location means, use the zone's "location_id" to place the object - otherwise it's off in space somewhere, and all that is really there is some artifact from the zone graphics themselves.
That flag actually tells the widget to use the location data in both the regular data positions as well as the widget specific data position. That probably doesnt make sense, but there are two sets of locations in the widget data and using this sets both of them :P

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: [REQ] Y model offset

Post by John Adams » Wed Sep 02, 2009 3:40 pm

That's probably more what I meant, I just didn't really understand why toggling the value worked, just that it did. :) Thanks for clearing it up.

Absolver
Posts: 5
Joined: Mon Aug 31, 2009 12:17 pm

Re: [REQ] Y model offset

Post by Absolver » Wed Sep 02, 2009 3:53 pm

To clarify, what the intent is in having that offset value, is making an asset able to 'stand' on the ground, rather than disappearing into it. Perhaps an easier way to do this (And more consistent, at that) is to set a flag that either (1) makes the object stay at its assigned coordinates, unaffected by gravity, or (2) makes it unmovable at all, except through /spawn set x/y/z and orientation?

User avatar
ZexisStryfe
Posts: 1026
Joined: Thu Jul 26, 2007 6:39 am
EQ2Emu Server: Sytherian Legends
Location: Connecticut
Contact:

Re: [REQ] Y model offset

Post by ZexisStryfe » Thu Sep 03, 2009 5:32 am

Might this also help for flying mobs?
~ EQ2 Emulator Project Manager

Image
Image
Image
"Zexis, from this day forth, you shall be known as... '3 of 6'" - John Adams

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: [REQ] Y model offset

Post by John Adams » Thu Sep 03, 2009 11:53 am

I am not real clear what the issue is here, so forgive my lack of understanding.

When you place a spawn in the world, you give it an x,Y,z coordinate. Whatever 'Y' is, is where the spawn sits above or below the terrain. Example, in our Queen's Colony, we have Hawks that are spawned up in the air, far enough out of reach where a ranged attack is all that will bring it down.

If it were true that 'Y' has no functionality, these hawks would be spawned on the ground along with the deer and bears.

Why do you need an offset, when you can simple add or subtract the 'Y' value and raise or lower it? If your request is to allow a spawn to seemingly randomly appear at ground level once, then above ground the next spawn, or below ground the next, then I can see a need for a 'Y' offset (which btw we already have in spawn_location_placement).

What is the actual problem, if any? Explain it to us simple folks :)

Absolver
Posts: 5
Joined: Mon Aug 31, 2009 12:17 pm

Re: [REQ] Y model offset

Post by Absolver » Fri Sep 04, 2009 9:51 am

The easiest way is perhaps to see this in action.

1) /spawn create object 4433 1 1 "Wizard spire" 1 32
2) Do a /spawn details and then /spawn set y +50 of the current value to move it up into the air
3) The object will fall back down to the ground.

The Y might be preserved for NPCs, but objects seem to obey the laws of physics. ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest