Was looking for the element that controls the hood/helm hiding ect. and randomly found a fourth spawnstate. Info packet unknown19, it's actually an int 16. Will update that whenever I start setting up the pitch/roll heading.
Any suggestions for a name?
Pitch/Roll and Hide Hood
Moderator: Team Members
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Fourth Spawnstate
Unrelated but no need to make a separate topic for this. I figured out the flags for helms. It's in the visual_flag element inside the info packet. Here's a breakdown.
Show Hood = base value 0
Hide Hood + 2 (which we've been hardcoding)
Invis Flag is + 1
Mount is listed as +4, I haven't tested this
Forced crouching for stealth is + 8
To hide helms/hoods I assume we would just add the Hide Hood value and not send the helm appearance.
Show Hood = base value 0
Hide Hood + 2 (which we've been hardcoding)
Invis Flag is + 1
Mount is listed as +4, I haven't tested this
Forced crouching for stealth is + 8
To hide helms/hoods I assume we would just add the Hide Hood value and not send the helm appearance.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Fourth Spawnstate
Nice find, the values look like a bit mask, any chance did you test 16, 32, 64 and 128? (If visual_flag is larger than an int8 there could be even more values, don't know the type of that element off hand)
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Fourth Spawnstate
Yup I tried all of those up to 128, adding anything more than 8 didn't do anything obvious, but they could be mount related as I didn't test with a mount. (There were comments next to the element about 4 being for mounts in server code)
EDIT: Now that I think about it there's probably a flag for hiding cloaks in there. Will look at that later.
EDIT: Now that I think about it there's probably a flag for hiding cloaks in there. Will look at that later.
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Fourth Spawnstate
Just committed support for some things I mentioned above.
Pitch/Roll: This is like heading on the vertical and horizontal axises. Pitch is vertical Roll is horizontal. The values use the same formula heading uses. I added this to the spawn_location_placement table. (The only difference is if 0 we need to not run the calculations, doing so causes spawns to appear upside down).
Visual flag support: I changed the way we sent visual flags in the info packet so that it actually works now, I added a value to the spawn_npcs table for hide_hood, just set it to 1 if you want to hide the hood on an NPC. For players it checks the character flag for this (make sure your character flag hasn't been screwed from the server before testing!
).
Emote State: I also added this to the spawn_npcs table, it's just another spawn state we can use.
You will need the latest spawnstructs for these to work.
Will add spawn sets for these later today or tomorrow, enjoy
.
PS:Needed this for some stuff in Halas.
Pitch/Roll: This is like heading on the vertical and horizontal axises. Pitch is vertical Roll is horizontal. The values use the same formula heading uses. I added this to the spawn_location_placement table. (The only difference is if 0 we need to not run the calculations, doing so causes spawns to appear upside down).
Visual flag support: I changed the way we sent visual flags in the info packet so that it actually works now, I added a value to the spawn_npcs table for hide_hood, just set it to 1 if you want to hide the hood on an NPC. For players it checks the character flag for this (make sure your character flag hasn't been screwed from the server before testing!
Emote State: I also added this to the spawn_npcs table, it's just another spawn state we can use.
You will need the latest spawnstructs for these to work.
Will add spawn sets for these later today or tomorrow, enjoy
PS:Needed this for some stuff in Halas.
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Fourth Spawnstate
Just committed the spawn set commands as well as support for hiding helms/cloaks.
Who is online
Users browsing this forum: No registered users and 0 guests