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

Solved Ladder Detection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 03-27-2019 , 17:39   Ladder Detection
Reply With Quote #1

simple question is it possible to detect if a client is on a ladder or using a ladder?

maybe something to do with func_ladder

i want to block people from staying on ladders for too long for my own reasons

if anyone knows how to detect that,
any help would be much apprecieted.


just so we are clear i am talking about counter-strike 1.6

Last edited by Ynet; 03-27-2019 at 18:09. Reason: added extra information
Ynet is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-27-2019 , 17:57   Re: Ladder Detection
Reply With Quote #2

Check if player's movetype it's MOVETYPE_FLY.
__________________









Last edited by CrazY.; 03-27-2019 at 17:58.
CrazY. is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-27-2019 , 18:01   Re: Ladder Detection
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=93065
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 03-27-2019 , 18:08   Re: Ladder Detection
Reply With Quote #4

Quote:
Originally Posted by iceeedr View Post
thanks alot mate <3
Ynet is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-29-2019 , 07:55   Re: Ladder Detection
Reply With Quote #5

Is there an way to detect whether the player is looking/aim at ladder?
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-29-2019 , 08:49   Re: Ladder Detection
Reply With Quote #6

Quote:
Originally Posted by Krtola View Post
Is there an way to detect whether the player is looking/aim at ladder?
Yes.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-29-2019 , 09:54   Re: Ladder Detection
Reply With Quote #7

EngFunc_TraceLine or get_user_aiming (maybe).
__________________








CrazY. is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-30-2019 , 07:32   Re: Ladder Detection
Reply With Quote #8

Ok but how to check if the entity is ladder?
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-30-2019 , 07:35   Re: Ladder Detection
Reply With Quote #9

Quote:
Originally Posted by Krtola View Post
Ok but how to check if the entity is ladder?
classname "func_ladder"
__________________
<VeCo> is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-30-2019 , 09:06   Re: Ladder Detection
Reply With Quote #10

I tried a couple of options and did not work.

PHP Code:
new const g_RemoveEnt[] = "func_ladder" 
PHP Code:
bool:CreateCheckid )
{
new 
TargetBody
if(get_user_aiming(idTargetBody) == g_RemoveEnt[Target])
{              
        return 
false      

PHP Code:
bool:CreateCheckid )
{
new 
TargetBody
get_user_aiming
(idTargetBody999)
if(
g_RemoveEnt[Target]
{              
        return 
false      

__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
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 01:15.


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