-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
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.
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.
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.
Removed conflicts
new test resource
and video with visualization how this working https://www.youtube.com/watch?v=jPCnYIqQJoY&feature=youtu.be
I think is ready to marge
gatno
commented
Sep 24, 2018
Great 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.
Watter should be Water
Last commit renames event to onClientElementHitByWaterCannon with the following parameters:
- vehicle The vehicle with the mounted water cannon
- hitX, hitY, hitZ World-space hit position
- normalX, normalY, normalZ Surface normal
- model Model of the hit surface
- materialID Hit surface id
The source element is either the hit element or the root element for static world objects (you use model to identify it)
Uh oh!
There was an error while loading. Please reload this page.
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.
image
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.