Raised This Month: $ Target: $400
 0% 

[L4D2] Score/Team Manager 1.3.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 01-23-2010 , 15:59   Re: [L4D2] Score/Team Manager 1.1.8
Reply With Quote #11

Never change a running system. I donīt just grab the plugins and put them on the server... anyone could do that. As you can imagine, downtown, it takes time to maintain a server, backup, restore, configure, compile, TESTING, reacting to log errors... Currently all my plugins work absolutely fine with SM 1.3.0. So youīd have to donate TONS of money to make me rethink my decision. The only little issue I have is the already mentioned "score collecting" one. To circumvent this I was thinking of this piece of code inside the existing OnMapStart():

Code:
public OnMapStart()
decl String:mapname[64];
GetCurrentMap(mapname, sizeof(mapname));    
//new
if (StrContains(mapname, "m1", false))
    { 
        ResetCampaignScores();
    }
This should check if there is a "m1" in the mapname and then it calls atomics Reset code. Without this the plugin would add the campaign score from just finished campaign to the score from this new campaign. So I guess that this NewMission code probably doesnīt get called because the game itself handles this in a way the plugin is not expecting it. I really have no clue, just guessing
Skorpion1976 is offline
 



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


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