-
-
Notifications
You must be signed in to change notification settings - Fork 500
Add setElementCollidableWith server-side #4101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
c709597
97171c1
1ba901f
7a48afd
f72b484
dd1f6a0
64efdd4
baf96c3
85e37b9
8bf184d
822f0de
edc274a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ void CElementRPCs::LoadFunctions() | |
| AddHandler(SET_PROPAGATE_CALLS_ENABLED, SetCallPropagationEnabled, "setCallPropagationEnabled"); | ||
| AddHandler(SET_COLPOLYGON_HEIGHT, SetColPolygonHeight, "setColShapePolygonHeight"); | ||
| AddHandler(SET_ELEMENT_ON_FIRE, SetElementOnFire, "setElementOnFire"); | ||
| AddHandler(SET_ELEMENT_COLLIDABLE_WITH, SetElementCollidableWith, "setElementCollidableWith"); | ||
| } | ||
|
|
||
| #define RUN_CHILDREN_SERVER(func) \ | ||
|
|
@@ -765,3 +766,15 @@ void CElementRPCs::SetElementOnFire(CClientEntity* pSource, NetBitStreamInterfac | |
| { | ||
| pSource->SetOnFire(bitStream.ReadBit()); | ||
| } | ||
|
|
||
| void CElementRPCs::SetElementCollidableWith(CClientEntity* pSource, NetBitStreamInterface& bitStream) | ||
| { | ||
| ElementID ElementID; | ||
| bool bCollidable; | ||
|
|
||
| bitStream.Read(ElementID); | ||
| bitStream.ReadBit(bCollidable); | ||
|
||
|
|
||
| CClientEntity* pCollidableWith = CElementIDs::GetElement(ElementID); | ||
Proxy-99 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| pSource->SetCollidableWith(pCollidableWith, bCollidable); | ||
Proxy-99 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.