aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.h
Commit message (Collapse)AuthorAge
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-01
|
* Camera: Fix shooting line offsets (#9681)SmallJoker2020-04-16
| | | | Removes duplicated offset calculations from Game and use whatever the Camera class returns. This keeps the eye position nicely in sync, and gets rid of duplicated code.
* Collision various fixes (#9343)TheTermos2020-04-08
|
* Attachments: Fix interpolation from (0,0,0) after detachSmallJoker2019-12-07
| | | | | | GenericCAO::getPosition() did not take the camera offset into account LocalPlayer attachment cleanup: Use sane getParent() function Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
* LocalPlayer: Fix code-styleANAND2019-09-14
|
* Fix LocalPlayer::isDead always returning false if player is immortalANAND2019-09-14
|
* Disable autoforward if player is deadANAND2019-08-20
|
* Implement adding velocity to player from Luasfan52019-08-10
| | | | The intended usecase is knockback, but there's potential for more.
* Add disable_jump to liquids and ladders (#7688)SmallJoker2019-06-10
| | | | | Remove second nodedef check by improving the colliding node detection Also remove the 2nd check in old_move, correct standing node a bit
* Extend pitch fly mode to swimming (#7943)random-geek2018-12-31
|
* Added pitch fly mode (#7817)Gaƫl C2018-12-01
| | | | | In pitch fly mode, you fly to the exact direction you are pointing at, using the forward key. Other move directions are also pitched accordingly. It allows smoother and more complex movements. Can be enabled/disabled by L key by default (set keymap_pitchfly in minetest.conf)
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
Update Android.mk Remove 'src/client' from include_directories
= m_types.end()) { // If factory is not found, just return. dstream<<"WARNING: ServerActiveObject: No factory for type=" <<type<<std::endl; return NULL; } Factory f = n->second; ServerActiveObject *object = (*f)(env, pos, data); return object; } void ServerActiveObject::registerType(u16 type, Factory f) { std::map<u16, Factory>::iterator n; n = m_types.find(type); if(n != m_types.end()) return; m_types[type] = f; } float ServerActiveObject::getMinimumSavedMovement() { return 2.0*BS; } ItemStack ServerActiveObject::getWieldedItem() const { const Inventory *inv = getInventory(); if(inv) { const InventoryList *list = inv->getList(getWieldList()); if(list) return list->getItem(getWieldIndex()); } return ItemStack(); } bool ServerActiveObject::setWieldedItem(const ItemStack &item) { Inventory *inv = getInventory(); if(inv) { InventoryList *list = inv->getList(getWieldList()); if (list) { list->changeItem(getWieldIndex(), item); setInventoryModified(); return true; } } return false; }