File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ public Entity()
60
60
newp . name = e . name ;
61
61
newp . utype = e . utype ;
62
62
newp . properUtype = e . properUtype ;
63
+ newp . properFlags = e . properFlags ;
63
64
newp . aliasID = e . aliasID ;
64
65
newp . defaultValStr = e . defaultValStr ;
65
66
newp . setmethod = e . setmethod ;
@@ -149,7 +150,9 @@ public virtual void callPropertysSetMethods()
149
150
{
150
151
if ( inWorld )
151
152
{
152
- //Dbg.DEBUG_MSG(className + "::callPropertysSetMethods(" + prop.name + ")");
153
+ if ( prop . isOwnerOnly ( ) && id != KBEngineApp . app . entity_id )
154
+ continue ;
155
+
153
156
setmethod . Invoke ( this , new object [ ] { oldval } ) ;
154
157
}
155
158
}
Original file line number Diff line number Diff line change @@ -43,6 +43,18 @@ public bool isBase()
43
43
return properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_BASE_AND_CLIENT ||
44
44
properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_BASE ;
45
45
}
46
+
47
+ public bool isOwnerOnly ( )
48
+ {
49
+ return properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_CELL_PUBLIC_AND_OWN ||
50
+ properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_OWN_CLIENT ;
51
+ }
52
+
53
+ public bool isOtherOnly ( )
54
+ {
55
+ return properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_OTHER_CLIENTS ||
56
+ properFlags == ( UInt32 ) EntityDataFlags . ED_FLAG_OTHER_CLIENTS ;
57
+ }
46
58
}
47
59
48
60
}
You can’t perform that action at this time.
0 commit comments