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

Does SM can hide last round HUD?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-19-2020 , 10:48   Does SM can hide last round HUD?
Reply With Quote #1

Need to be remove this default HUD at match ending. Any idia? Thx.

I've one idea, but not shure that is correct.
1. Increasing mp_maxrounds from 30 to 31
2. Using terminate round end on 16n round..

Because default terminating not works for 16th round
I tried to add some time but nothing helps.
Code:
public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason) {   if(reason == CSRoundEnd_GameStart || iRoundsCT != 16 || iRoundsTT != 16) {     return Plugin_Continue;   }     delay = 30.0;     return Plugin_Changed; }
Attached Images
File Type: jpg 20201119232528_1.jpg (66.4 KB, 78 views)

Last edited by ZASTRELIS; 11-19-2020 at 10:55.
ZASTRELIS is offline
BeepIsla
Member
Join Date: Mar 2020
Location: Germany
Old 11-19-2020 , 10:55   Re: Does SM can hide last round HUD?
Reply With Quote #2

Map voting? https://forums.alliedmods.net/showthread.php?t=328070

Anything else in the screenshot? Probably can't.
BeepIsla is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-19-2020 , 11:00   Re: Does SM can hide last round HUD?
Reply With Quote #3

Quote:
Originally Posted by BeepIsla View Post
Map voting? https://forums.alliedmods.net/showthread.php?t=328070

Anything else in the screenshot? Probably can't.
hmmm, maybe.. thx
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-19-2020 , 11:18   Re: Does SM can hide last round HUD?
Reply With Quote #4

Yes, it solve my old problem. Remove default mapvote. But now I want fully remove this new match start waiting hud (it'snot a hud

Last edited by ZASTRELIS; 11-19-2020 at 11:34.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-19-2020 , 12:39   Re: Does SM can hide last round HUD?
Reply With Quote #5

Some example for hook round to postpone default match end leaderboard

Code:
public Action OnDamageAlive(int victim, int &attacker, int &inflictor, float &damage,     int &damagetype, int &weapon, float damageForce[3], float damagePosition[3]) {         if(!victim || victim >= MAXPLAYERS) {         return Plugin_Continue;     }         bool lct, ltt, tie, ctw, ttw;     int ct, tt, cts, tts;         ct = GetTeamClientCount(CS_TEAM_CT);     tt = GetTeamClientCount(CS_TEAM_T);     lct = ct == 1; ltt = tt == 1;     cts = CS_GetTeamScore(CS_TEAM_CT);     tts = CS_GetTeamScore(CS_TEAM_T);     ctw = cts == 1; ttw = tts == 1;     tie = (cts == 2 && tts == 1) || (tts == 2 && cts == 1);         if((ctw || ttw || tie) /* check for next win or tie */         && (lct && ct == victim || ltt && tt == victim) /* check for last alive */     && damage >= GetClientHealth(victim) /* Sure that damage're enought */) {                 CS_TerminateRound(30.0, GetClientTeam(victim) == CS_TEAM_T ? CSRoundEnd_TerroristWin : GetClientTeam(victim) == CS_TEAM_CT ? CSRoundEnd_CTWin : CSRoundEnd_Draw);                 CreateTimer(0.2, MakeCallLeadersForEndMatch);         CreateTimer(15.0, RunDamageRoundTimer);                 SetTeamScore(CS_TEAM_T, 2);     }         return Plugin_Continue; } Action RunDamageRoundTimer(Handle timer, any client) {     CS_SetTeamScore(CS_TEAM_CT, 2); }

big deal for other general events :'| like bomb explode, rescue events.. round end..
Problem that CS_OnTerminateRound not fired after last win round end event

P.S. CS_SetTeamScore or SetTeamScore not real, so this sht cause a lot of trouble in testing

Last edited by ZASTRELIS; 11-19-2020 at 15:10.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-19-2020 , 16:43   Re: Does SM can hide last round HUD?
Reply With Quote #6

Does I need to modify some prop for normal match end? Because if I tried to use CS_SetTeamScore, match not changed when mp_maxrounds reaches the rule. What about half part prop?
ZASTRELIS 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 09:56.


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