This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[ANY] Prevent the player from gaining velocity when hit by props


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 05-03-2024 , 16:05   [ANY] Prevent the player from gaining velocity when hit by props
Reply With Quote #1

Hello,

I need some help with prop_physics_multiplayer entities.
If the entities have high velocity and I block takedamage by using SDKHook_OnTakeDamage and returning Plugin_Handled, the damage is indeed blocked. However, the velocity is not, and the player seems to gain a bit of upper velocity, as if it was jumping.
Does someone know how to fix it?

Cheers,
DarthMan
DarthMan is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 05-03-2024 , 16:21   Re: [ANY] Prevent the player from gaining velocity when hit by props
Reply With Quote #2

Have you tried setting the velocity to 0.0 using TeleportEntity?
xerox8521 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 05-03-2024 , 17:13   Re: [ANY] Prevent the player from gaining velocity when hit by props
Reply With Quote #3

Quote:
Originally Posted by xerox8521 View Post
Have you tried setting the velocity to 0.0 using TeleportEntity?
Should I do that in pre TakeDamage ? What if the player is performing a super jump? Pressing the mouse2 button makes the player perform a super jump on the map where the plugin is running.

Last edited by DarthMan; 05-03-2024 at 17:15.
DarthMan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode