mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
Allow gib spwaning by non hosts if they own the prop
This commit is contained in:
committed by
Lorenz Junglas
parent
55c2ede7fb
commit
1c1f2d60c0
@@ -528,7 +528,7 @@ public class Prop : Component, Component.ExecuteInEditor, Component.IDamageable
|
||||
if ( Model is null )
|
||||
return gibs;
|
||||
|
||||
var spawnServerGibs = !Network.IsProxy;
|
||||
var spawnServerGibs = Networking.IsHost;
|
||||
var spawnClientGibs = !Application.IsDedicatedServer;
|
||||
|
||||
var breaklist = Model.GetData<ModelBreakPiece[]>();
|
||||
@@ -582,7 +582,7 @@ public class Prop : Component, Component.ExecuteInEditor, Component.IDamageable
|
||||
{
|
||||
gib.Tags.Add( "debris", "clientside" ); // no physics interactions
|
||||
}
|
||||
else if ( !IsProxy )
|
||||
else if ( Networking.IsHost )
|
||||
{
|
||||
// Spawn on the network
|
||||
gib.NetworkSpawn( true, null );
|
||||
|
||||
Reference in New Issue
Block a user