AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [CS:GO] How detect client is surfing? (https://forums.alliedmods.net/showthread.php?t=304879)

Zeisen 01-30-2018 00:52

[CS:GO] How detect client is surfing?
 
I tried verify FL_ONGROUND client flag but it doesn't solve.

backwards 01-30-2018 03:31

Re: [CS:GO] How detect client is surfing?
 
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.

hmmmmm 01-30-2018 04:19

Re: [CS:GO] How detect client is surfing?
 
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

Franc1sco 01-30-2018 05:21

Re: [CS:GO] How detect client is surfing?
 
Quote:

Originally Posted by hmmmmm (Post 2575175)
IIRC for a plane to be surfable, the normal z has to be <= 0.7

Exactly, here a example.


All times are GMT -4. The time now is 06:12.

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