AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disabling specmenu but not duck feature. (https://forums.alliedmods.net/showthread.php?t=85228)

xPaw 02-07-2009 14:01

Disabling specmenu but not duck feature.
 
Hello, how to block spec menu but without blocking duck feature? idont wanna just block duck for dead people, since i'm using potti plugin and i'm jumping with potti sometimes while dead :D

ConnorMcLeod 02-08-2009 02:40

Re: Disabling specmenu but not duck feature.
 
May be you could explain why you want to block this menu, may have some other options.

xPaw 02-08-2009 04:00

Re: Disabling specmenu but not duck feature.
 
ok, i'm using Potti - a controllable fakeplayer plugin (http://forums.alliedmods.net/showthread.php?p=255078), it has feature, when you are dead, you can play with potti, but when pressing duck, potti is not ducking, but i got an spec menu, thats why.

ConnorMcLeod 02-08-2009 04:10

Re: Disabling specmenu but not duck feature.
 
Try to edit potti plugin, line 480 :

if(!alive) set_uc(uc_handle,UC_Buttons, button & ~IN_JUMP & ~IN_ATTACK & ~IN_ATTACK2 & ~IN_FORWARD & ~IN_BACK & ~IN_MOVELEFT & ~IN_MOVERIGHT)


add & ~IN_DUCK

xPaw 02-08-2009 04:17

Re: Disabling specmenu but not duck feature.
 
testing.. will edit this post.

EDIT: didnt worked ;(


All times are GMT -4. The time now is 17:04.

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