mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 04:32:06 +00:00 
			
		
		
		
	Merge from upstream
This commit is contained in:
		| @@ -52,7 +52,7 @@ DestroyableComponent::DestroyableComponent(Entity* parent, int32_t componentId) | ||||
| 	m_IsGMImmune = false; | ||||
| 	m_IsShielded = false; | ||||
| 	m_DamageToAbsorb = 0; | ||||
| 	m_HasBricks = false; | ||||
| 	m_IsModuleAssembly = m_Parent->HasComponent(eReplicaComponentType::MODULE_ASSEMBLY); | ||||
| 	m_DirtyThreatList = false; | ||||
| 	m_HasThreats = false; | ||||
| 	m_ExplodeFactor = 1.0f; | ||||
| @@ -187,7 +187,7 @@ void DestroyableComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsIn | ||||
| 			outBitStream->Write(m_IsSmashed); | ||||
|  | ||||
| 			if (m_IsSmashable) { | ||||
| 				outBitStream->Write(m_HasBricks); | ||||
| 				outBitStream->Write(m_IsModuleAssembly); | ||||
| 				outBitStream->Write(m_ExplodeFactor != 1.0f); | ||||
| 				if (m_ExplodeFactor != 1.0f) outBitStream->Write(m_ExplodeFactor); | ||||
| 			} | ||||
|   | ||||
| @@ -235,7 +235,7 @@ public: | ||||
| 	 * Returns whether or not this entity has bricks flying out when smashed | ||||
| 	 * @return whether or not this entity has bricks flying out when smashed | ||||
| 	 */ | ||||
| 	bool GetHasBricks() const { return m_HasBricks; } | ||||
| 	bool GetHasBricks() const { return m_IsModuleAssembly; } | ||||
|  | ||||
| 	/** | ||||
| 	 * Sets the multiplier for the explosion that's visible when the bricks fly out when this entity is smashed | ||||
| @@ -544,7 +544,7 @@ private: | ||||
| 	/** | ||||
| 	 * Whether this entity has bricks flying out when smashed (causes the client to look up the files) | ||||
| 	 */ | ||||
| 	bool m_HasBricks; | ||||
| 	bool m_IsModuleAssembly; | ||||
|  | ||||
| 	/** | ||||
| 	 * The rate at which bricks fly out when smashed | ||||
|   | ||||
| @@ -1002,7 +1002,6 @@ void InventoryComponent::HandlePossession(Item* item) { | ||||
| 	// Setup the destroyable stats | ||||
| 	auto* destroyableComponent = mount->GetComponent<DestroyableComponent>(); | ||||
| 	if (destroyableComponent) { | ||||
| 		destroyableComponent->SetIsSmashable(false); | ||||
| 		destroyableComponent->SetIsImmune(true); | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -11,7 +11,7 @@ void BuccaneerValiantShip::OnStartup(Entity* self) { | ||||
|  | ||||
| 			// Kill self if missed | ||||
| 			self->AddCallbackTimer(1.1F, [self]() { | ||||
| 				self->Kill(); | ||||
| 				self->Smash(); | ||||
| 				}); | ||||
| 		} | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz