Raised This Month: $51 Target: $400
 12% 

Solved [CS:GO] How detect client is surfing?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zeisen
Member
Join Date: Nov 2016
Location: Republic of Korea
Old 01-30-2018 , 00:52   [CS:GO] How detect client is surfing?
Reply With Quote #1

I tried verify FL_ONGROUND client flag but it doesn't solve.

Last edited by Zeisen; 01-30-2018 at 17:55.
Zeisen is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 01-30-2018 , 03:31   Re: [CS:GO] How detect client is surfing?
Reply With Quote #2

it really depends on the instance you want. do you want to check only while they are on the ramp? if they go in the air in between you can assume they are still surfing if they have high velocity and haven't touched the ground yet. You'd most likely want to check for higher velocity and then do a raytrace straight down below the player and get the surface plane normal and compare if it's a possible surfable or not.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 01-30-2018 , 04:19   Re: [CS:GO] How detect client is surfing?
Reply With Quote #3

If you wanna check if they're currently on a surf ramp, you can do a trace hull and check the plane normal. IIRC for a plane to be surfable, the normal z has to be <= 0.7
hmmmmm is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-30-2018 , 05:21   Re: [CS:GO] How detect client is surfing?
Reply With Quote #4

Quote:
Originally Posted by hmmmmm View Post
IIRC for a plane to be surfable, the normal z has to be <= 0.7
Exactly, here a example.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
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 10:24.


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