diff options
| author | MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> | 2012-10-27 01:49:01 +0300 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-25 18:14:15 +0200 |
| commit | e42eeec8f626acbaa54ae31c10ca06c868c7931c (patch) | |
| tree | 61ea64416548b5ad858c6d275da90ace607fd163 /src/content_sao.h | |
| parent | 118285e6babd511c285780b07c275d527d7da9b1 (diff) | |
| download | dragonfireclient-e42eeec8f626acbaa54ae31c10ca06c868c7931c.tar.xz | |
Framework for the attachment system, new object property which allows changing the color and alpha of mesh materials
New object property which allows changing the color and alpha of mesh materials. Due to the current lighting systems it doesn't work yet, but the full implementation is there
Framework for the attachment system, with no actual functionality yet
Send bone and player object to the setAttachment function in content_sao.cpp, but we need a way to translate it there and send it to the client
I will also want position and rotation offsets to be possible to apply to attachments
Network object ID from server to client. This will be used to identify the parent client-side and know what to attach to
Diffstat (limited to 'src/content_sao.h')
| -rw-r--r-- | src/content_sao.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index cba2729ae..a89f2ddd4 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -63,6 +63,7 @@ public: void setArmorGroups(const ItemGroupList &armor_groups); void setAnimations(v2f frames, float frame_speed, float frame_blend); void setBonePosRot(std::string bone, v3f position, v3f rotation); + void setAttachment(ServerActiveObject *parent, std::string bone, v3f position, v3f rotation); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); /* LuaEntitySAO-specific */ @@ -146,6 +147,7 @@ public: void setArmorGroups(const ItemGroupList &armor_groups); void setAnimations(v2f frames, float frame_speed, float frame_blend); void setBonePosRot(std::string bone, v3f position, v3f rotation); + void setAttachment(ServerActiveObject *parent, std::string bone, v3f position, v3f rotation); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); |
