-
-
Notifications
You must be signed in to change notification settings - Fork 486
Feature: event onClientWaterCannonHit #477
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
Conversation
Arguments.PushNumber(pColPoint.Normal.fY); | ||
Arguments.PushNumber(pColPoint.Normal.fZ); | ||
Arguments.PushNumber(pColPoint.ucSurfaceTypeB); | ||
/*if (&pEntity != nullptr) // seems to not work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment block.
@@ -6866,3 +6874,24 @@ void CClientGame::RemoveAnimationAssociationFromMap(CAnimBlendAssociationSAInter | |||
{ | |||
m_mapOfCustomAnimationAssociations.erase(pAnimAssociation); | |||
} | |||
|
|||
void CClientGame::WaterCannonHitWorldHandler(CColPointSAInterface& pColPoint, CEntitySAInterface& pEntity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the use of CEntitySAInterface& pEntity
? you don't seem to access it.
settings.sScanSizeY = 0x50; | ||
settings.usRenderSizeX = 0x50; | ||
settings.usRenderSizeY = 0x55; | ||
se |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you have two asm blocks? you can simply put this code after popad in first asm block.
fixed along Saml1er tips. I think is ready to marge |
Great work! |
@@ -300,6 +300,9 @@ DWORD dwFUNC_CAEVehicleAudioEntity__ProcessAIProp = FUNC_CAEVehicleAudioEntity__ | |||
#define HOOKPOS_CTaskSimpleSwim_ProcessSwimmingResistance 0x68A4EF | |||
DWORD RETURN_CTaskSimpleSwim_ProcessSwimmingResistance = 0x68A50E; | |||
|
|||
#define HOOKPOS_WatterCannonHitWorld 0x72932A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watter
should be Water
Last commit renames event to
The source element is either the hit element or the root element for static world objects (you use model to identify it) |
Event: onClientWaterCannonHit
Arguments: x, y, z, normalx, normaly, normalz, materialid
Pr including hack, that allow to hit water cannon to hit water cannon custom objects created by createObject function.
Test resource: testv2.zip
Test https://www.youtube.com/watch?v=jPCnYIqQJoY&feature=youtu.be
and 4 reasons for marge
Fire cannon https://www.youtube.com/watch?v=um7A9IThtDU&feature=youtu.be
Grenade cannon https://www.youtube.com/watch?v=f2M-180uMZk&feature=youtu.be
Teleport cannon https://www.youtube.com/watch?v=0AmnWL5RsYY&feature=youtu.be
Paint cannon https://www.youtube.com/watch?v=u5eaHl_SGZQ&feature=youtu.be
Thanks for Saml1er and Botder for helping with hook.