Raised This Month: $ Target: $400
 0% 

[DoD:S] How to Display "WarmUp" Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bobbobbaobab
New Member
Join Date: Oct 2024
Old 10-28-2024 , 12:30   [DoD:S] How to Display "WarmUp" Text
Reply With Quote #1

In Day of Defeat:Source game , when you type "mp_restartwarmup 1" in console, some text will show up on the left side of the screen,which says "WarmUp Mode" and "Game will restart in 0:00".

but I don't know how to display text like this. I've tried the following code , it didn't work, the error is: Couldn't dispatch user message (20)

new Handle:hBuffer = StartMessageOne("KeyHintText", client);
BfWriteByte(hBuffer, 1);
BfWriteString(hBuffer,"Hello World");
EndMessage();

wish someone could teach me how to do it, thanks!
Attached Thumbnails
Click image for larger version

Name:	Snipaste_2024-10-28_23-02-53(1).jpg
Views:	96
Size:	24.6 KB
ID:	206130  
bobbobbaobab is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-30-2024 , 11:52   Re: [DoD:S] How to Display "WarmUp" Text
Reply With Quote #2

What I can assume, it is client side "label" ("WarmupLabel").
So from server side, you can't bring up those from clients or make custom one.
Bacardi is offline
bobbobbaobab
New Member
Join Date: Oct 2024
Old 10-30-2024 , 22:33   Re: [DoD:S] How to Display "WarmUp" Text
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
What I can assume, it is client side "label" ("WarmupLabel").
So from server side, you can't bring up those from clients or make custom one.
I see, thank you for the clarification!
bobbobbaobab is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-31-2024 , 11:27   Re: [DoD:S] How to Display "WarmUp" Text
Reply With Quote #4

https://github.com/dougrattman/Sourc...label.cpp#L137

If you want bring "Warmup Mode" label up different way,
you can trick dod gamerules m_bInWarmup to true.
This however can mess gameplay...
Bacardi 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 16:01.


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