Raised This Month: $32 Target: $400
 8% 

Solved Allow user interactions during BOT_PROGGRESS_DRAW state


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-15-2019 , 08:03   Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #1

Is there any code to allow user interactions like buymenu and chat if the progress bar is shown?

I have found this stock (made by wopox1337), but while it is shown users can't do anything but wait
Code:
stock Show_ProgressBar(pPlayer = 0, iState = BOT_PROGGRESS_DRAW, iProgress = 50, szHeader[] = "NULL") {
	emessage_begin(pPlayer ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, g_MsgId_ProgressBar, .player = pPlayer);
	ewrite_byte(iState);
	ewrite_byte(iProgress);
	ewrite_string(szHeader);
	emessage_end();
}
Code is using CSProgressBar.res from czero.

Last edited by RaZ_HU; 12-17-2019 at 20:37.
RaZ_HU is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-16-2019 , 07:41   Re: Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #2

This is a client side approach, i guess that because player is supposed to be using E key to defuse a bomb for example.
Did you know if other plugin has this feature?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 12-16-2019 at 07:41.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-16-2019 , 10:19   Re: Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #3

This is different from the BarTime variant and yet I couldn't find any plugin using this.

If you remember the progressbar when bots are learning the map, this is that one, but it doesn't allow any interactions by the client until it is finished (and it disappears).

Source of the code: https://dev-cs.ru/threads/222/page-2#post-12624

Last edited by RaZ_HU; 12-16-2019 at 10:21.
RaZ_HU is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-16-2019 , 11:10   Re: Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #4

I guess that is the same thing when you use buy menu in VGUI mode, that control can't be replaced.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-17-2019 , 20:36   Re: Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #5

Thanks for the answers anyway

I think I will use it on maps where buymenu doesn't comes in picture, just like knife maps
RaZ_HU is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 12-17-2019 , 21:47   Re: Allow user interactions during BOT_PROGGRESS_DRAW state
Reply With Quote #6

@RaZ_HU nice finding! i also tryed to d ANYTHING with it (like 1 year ago) but all atemps were unsuccessful...BarTime is fine replacing, but ye depends on the idea/needs
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Reply


Thread Tools
Display Modes

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 22:31.


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