Quote:
Originally Posted by Naow
Nice features you've got here , you should create an unofficial update of this plugin since Jerrith seems to be away.
Can you also release the full source instead of small parts of code please?
|
Sorry, I've changed a lot of things in Jerrith base code so it's different and only supports coop. But if you need anything I can help you out.
Quote:
Originally Posted by GrossKopf
If anyone is going to update the plugin, could you add a cvar that lets an admin remove all upgrades when the map changes?
|
Like I said before, I don't keep upgrades for the whole campaign. They expire on every map load. Also, keep in mind that survivor_upgrades convar works so the game gives 1 upgrade for every client on every map transition. To test it, just remove the plugin and set survivor_upgrades to 1 (sm_cvar). You will notice that you'll get upgrades.
You can add this to ResetValues():
PHP Code:
if (GetClientTeam(i)==2)
{
// removes any upgrades a client have
for(new j=0; j<NVALID; ++j)
{
bClientHasUpgrade[i][j] = false;
SDKCall(RemoveUpgrade, i, IndexToUpgrade[j]);
}
}
*i=client
And hook mission_lost, map_transition or round_end to clean all upgrades.
For the admin thing you can try this:
PHP Code:
RegAdminCmd("CleanAllUpgrades", CleanUpgrades, ADMFLAG_KICK);
// cleaning upgrades
public Action:CleanUpgrades(client, args)
{
// no args required
ResetValues();
}