Kill while flashbanged
I'm trying to check if a player has killed someone while flashbanged.
Thats the best way to do this? PHP Code:
PHP Code:
|
Re: Kill while flashbanged
You can calculate set_task time from duration and holdtime parameters.
Also you can check blind directly via private data, code from gamedll: PHP Code:
PHP Code:
|
Re: Kill while flashbanged
Yea, I thinked about calculate the time of set_task with parameters, but I don't know, I've used a debug for these parameters, thats what I got:
Code:
get_msg_arg_int(1), get_msg_arg_int(2), get_msg_arg_int(3)I'm trying to pick the defuse time, like CSGO messages - "EFFx has defused the bomb with 0.3 seconds remaining" Thats what I have: PHP Code:
Code:
Defuse Time: 41.1 - mp_c4time is 45 |
Re: Kill while flashbanged
ScreenFade user message and flags:
Code:
// (HL) Screen Fade type flagssent as an unsigned short interger (0 - 65535). Reverse that process to get the original values for your plugin. Well, sort of, the values sent might have been truncated in the conversion (float->int) or clamped to an unsigned short interger range. Note: If FFADE_STAYOUT flag is set then the player stays blinded until another screenfade msg is sent and overrides the current one. This is not applicable to flashbang grenades though. |
Re: Kill while flashbanged
PHP Code:
|
Re: Kill while flashbanged
i'm not checking if the player is fully blind. I don't updated the code, but on the (7) parameter, i'm checking if the value is more than 200, that value is the only I got when the flash explodes behind me, from my side or the front.
|
Re: Kill while flashbanged
Try to check it in work.
|
Re: Kill while flashbanged
Dude, what include have this get_ent_data_float()? I got error with that native.
And can someone explain me about the defuse remaining time? |
Re: Kill while flashbanged
Quote:
|
Re: Kill while flashbanged
But if have someone thats not using 1.8.3 like me? Will that format works?
|
| All times are GMT -4. The time now is 20:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.