AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [player] duck (https://forums.alliedmods.net/showthread.php?t=233427)

gubka 01-14-2014 18:34

[player] duck
 
How to force the player to duck in cs 1.6 , I know about a way with client_cmd("+duck") but it doesn't suit me, HELP PLEASE

Leonidddd 01-14-2014 19:25

Re: [player] duck
 
ExecuteHamB(Ham_Player_Duck, index);

SpeeDeeR 01-14-2014 20:01

Re: [player] duck
 
Quote:

Originally Posted by Leonidddd (Post 2086000)
ExecuteHamB(Ham_Player_Duck, index);

Umm.. no.. That's just a hook.
PHP Code:

entity_set_int(playerEV_INT_flagsentity_get_int(playerEV_INT_flag) | IN_DUCK); //engine
set_pev(playerpev_flagspev(playerpev_flags) | IN_DUCK); //fakemeta 


11922911 01-15-2014 01:09

Re: [player] duck
 
Quote:

Originally Posted by speedeer (Post 2086015)
umm.. No.. That's just a hook.
PHP Code:

entity_set_int(playerev_int_flagsentity_get_int(playerev_int_flag) | in_duck); //engine
set_pev(playerpev_flagspev(playerpev_flags) | in_duck); //fakemeta 


Quote:

IN_DUCK
->
Quote:

FL_DUCKING
?

gubka 01-15-2014 04:06

Re: [player] duck
 
Quote:

Originally Posted by 11922911 (Post 2086071)
->

?

I dont understand , how correct ? Duck or fl_duckling ?

simanovich 01-15-2014 04:25

Re: [player] duck
 
Quote:

Originally Posted by SpeeDeeR (Post 2086015)
Umm.. no.. That's just a hook.
PHP Code:

entity_set_int(playerEV_INT_flagsentity_get_int(playerEV_INT_flag) | IN_DUCK); //engine
set_pev(playerpev_flagspev(playerpev_flags) | IN_DUCK); //fakemeta 


Wrong

gubka 01-15-2014 04:51

Re: [player] duck
 
Quote:

Originally Posted by simanovich (Post 2086101)
Wrong

How make it ? You can help please


All times are GMT -4. The time now is 10:09.

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