msh100 / ETPro-configs

ETPro official competitive server configs and mapscripts
5 stars 7 forks source link

rifle grenades restriction #31

Open miraya opened 9 years ago

miraya commented 9 years ago

The current globalcombined.lua disregards the config and applies rifle5v5 limitation made by Perlo_0ung in any config, this should not be the default behavior, since the format change of 6on6 to 5on5, it was made in mind that there would be no revert from 5on5 to 6on6 so in this aspect we should change the behavior to how it was intended (pre 2.0 set behavior). The current script:

function et_ClientSpawn(cno,revived)
    if revived == 0 and et.gentity_get(cno, "sess.playerType") == 2 then
        et.gentity_set(cno,"ps.ammo",39,3)
        et.gentity_set(cno,"ps.ammo",40,3)
    end
end

Should be:

function et_ClientSpawn(cno,revived)
    if gameformat == "5" then -- applies only to global5.config or b_gameformat 5
        if revived == 0 and et.gentity_get(cno, "sess.playerType") == 2 then -- Engineer class
            et.gentity_set(cno,"ps.ammo",39,3) -- Axis
            et.gentity_set(cno,"ps.ammo",40,3) -- Allies
        end
    end
end

This should be the intended and default behavior, I am not aware of the rules in current leagues, but I don't think they want to limit the default grenades an Engineer with rifle spawns with. Your opinions?

Sebhes commented 9 years ago

5on5 is not played these days in tournaments anymore and even on mIRC it is a rarely occurrence. However, if your statement is true, this should be changed indeed.