Raised This Month: $51 Target: $400
 12% 

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-16-2022 , 14:44   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #131

Quote:
Originally Posted by Dragokas View Post
What's the point? To restart campaign, just start vote for the first map of current campaign as usually.
When you slay all the current map is restarted, not a campaign.
yea i kown, just want player easy to restart compaign, when my custom map party night waiting untill team full and they want to vote restart simply
i just... need a choice do not prevent vote button
__________________
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-16-2022 , 15:15   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #132

Quote:
Originally Posted by NoroHime View Post
yea i kown, just want player easy to restart compaign, when my custom map party night waiting untill team full and they want to vote restart simply
Something like commands
PHP Code:
sm_map_restart // vote for restarting current map
sm_campaign_restart // vote for change map to the 1st one of current campaign 
?
Quote:
i just... need a choice do not prevent vote button
What you mean?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-16-2022 at 15:16.
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-16-2022 , 15:42   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #133

Quote:
Originally Posted by Dragokas View Post
Something like commands
PHP Code:
sm_map_restart // vote for restarting current map
sm_campaign_restart // vote for change map to the 1st one of current campaign 
?

What you mean?
i want to said the plugin redirect game vote button to sm_maps, sorry for my bad expression
if prevent action is required sorry about my problem
__________________

Last edited by NoroHime; 01-16-2022 at 15:44.
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-16-2022 , 16:02   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #134

Ahh, I see. This is done by intention, to prevent vote exploit.
But, if you want to unlock, the quick fix would be - remove this code:
PHP Code:
        if( strcmp(s"RestartGame"false) == ) {
            
Command_MapChoose(client0);
            return 
Plugin_Stop;
        }
        else 
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 01-17-2022 , 13:08   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #135

Complement traditional Chinese translation
Attached Files
File Type: txt MapChanger.phrases.txt (21.9 KB, 45 views)
__________________
in2002 is offline
AK978
Senior Member
Join Date: Jun 2018
Old 01-28-2022 , 22:58   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #136

The map is deleted and the finale will fail to change the map?

Last edited by AK978; 01-28-2022 at 23:01.
AK978 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-29-2022 , 07:56   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #137

During middle-game time? Never tried.
Map presence has checked before change using this function:
PHP Code:
bool IsMapValidEx(char[] map)
{
    static 
char path[PLATFORM_MAX_PATH];
    return 
FindMap(mappathsizeof(path)) == FindMap_Found;

If it fails, the next map will be chosen.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-29-2022 at 07:57.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-29-2022 , 08:21   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #138

AK978, just double-checked, there is no map check when finale map finishes. The black screen will appear if map doesn't exist.
I'll make a fix for the next release.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-29-2022 at 08:22.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-29-2022 , 08:51   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #139

Updated.

Quote:
2.19 (29-Jan-2022)
- Added protection to finale map change in case map is removed in mid-game (thanks to @AK978 for report).
- Added protection from adding default maps which doesn't exist on the server.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-29-2022 , 09:23   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #140

Updated.

Quote:
2.20 (29-Jan-2022)
- Added beta-support of listen servers (thanks to @Marttt).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply



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:00.


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