cEntity and physics - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: cEntity and physics (/thread-660.html) Pages:
1
2
|
RE: cEntity and physics - xoft - 12-29-2012 Cacti aren't entities, they're just blocks. As for entity health, pickups have kinda health - they get destroyed when any kind of damage is applied to them. RE: cEntity and physics - Taugeshtu - 12-29-2012 What about dispenced arrows? How their TDI will be/should be transcripted? RE: cEntity and physics - FakeTruth - 12-30-2012 Instigator / killer should be null then I think RE: cEntity and physics - xoft - 12-31-2012 True, that does make sense - we might want to know which dispenser shot the arrow. Then the API would be incomplete. Any ideas? This quite makes me inclined to really make the Attacker member a cEntity, so that it can point to the arrow being shot, and the cArrow would have all the info needed. So maybe it would make sense to move the weapon / armor API to cEntity, so that plugins don't need to check classnames all the time. RE: cEntity and physics - keyboard - 12-31-2012 mmm, i just had an idea. Maybe you already considered and it doesn't work hehe... but what if you separate the damage portion of the API from the Weapon / Armor, and health . So you can give cEntity the ability to do damage, but they don't have "health or can wield Weapon and Armor to modify the damage sent. RE: cEntity and physics - xoft - 12-31-2012 Too much work in case it isn't used by the plugins at all - too many cItem copy-assignments. Especially when we add enchantments to items, so cItem copy-constructor becomes non-trivial. |