mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-09 20:32:43 +01:00
Improve vehicle and item interaction
This commit is contained in:
parent
799127f8f8
commit
39cf86f056
@ -456,6 +456,7 @@ void CharacterObject::setActiveItem(int slot)
|
||||
|
||||
InventoryItem *CharacterObject::getActiveItem()
|
||||
{
|
||||
if ( currentVehicle ) return nullptr;
|
||||
return _inventory[_activeInventoryItem];
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ VehicleObject::VehicleObject(GameWorld* engine, const glm::vec3& pos, const glm:
|
||||
damageFlags(0), vehicle(data), info(info), colourPrimary(prim),
|
||||
colourSecondary(sec), physBody(nullptr), physVehicle(nullptr)
|
||||
{
|
||||
mHealth = 100.f;
|
||||
mHealth = 1000.f;
|
||||
if(! data->modelName.empty()) {
|
||||
btTransform wt(
|
||||
btQuaternion(
|
||||
|
Loading…
Reference in New Issue
Block a user