Jump to content

Dragonji

Members
  • Posts

    530
  • Joined

  • Last visited

  • Days Won

    62

Posts posted by Dragonji

  1. [players] blocks will not work in this case as they only check the amount of players during intermission afaik. team_maxPanzers is what you should use. Unfortunately cannot help you in making it work as I forgot how to configure it properly :wacko:

  2. You don't have to use external Lua mods anymore. silEnT mod has a built-in custom vote feature:

     

    http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot#shrubbot.cfg

     

    [customvote]

    name = The of the vote shown with the /callvote command. Maximum length 15 characters.

    exec = Command string to execute if the vote passes. Maximum length 1023 characters.

    description = Description of the vote shown with the /callvote command. Maximum length 1023 characters.

    votetext = The text that is show for voters. Maximum length 255 characters.

    passtext = Optionally, a text that is shown to players if the vote passes.

    levels = Optionally, admins can define the vote to be available to only specific levels. Same format that is used with the custom commands.

    Example (a vote I defined on my server):

    [customvote]

    name = kickbots

    exec = bot maxbots 0; bot kickall

    description = Kick all bots from the server

    votetext = Kick all bots?

    passtext = Bots have been kicked!

    levels =

  3. cg_damagekick is just a kind of built-in no recoil hack... Keep in mind no single mod but ETPub has this.

     

    I don't get why all ETPub servers should migrate to silEnT. AFAIK silEnT was not meant to be a replacement for ETPub and what is more, I think variety of mods and their features is only a good thing for players, they are free to choose what they like most.

  4. ---------------------------------------------------------------------
    -- AutoPromo - An Enemy Territory Auto Promoting Mod
    ----------------------------------------------------------------------
    description = "AutoPromo"
    version =    "1.1"
    ----------------------------------------------------------------------
    -- This script can be freely used and modified as long as the original
    -- authors are mentioned.
    -- Created by Perlo_0ung, edited by Dragon
    -- Adapted for silEnT mod 0.5.0 and higher
    ----------------------------------------------------------------------
    -- CONFIGURATION
    ----------------------------------------------------------------------
    
    lvl15xp = 1000  -- XP needed for level 1
    lvl20xp = 5000 -- XP needed for level 2
    lvl25xp = 25000 -- XP needed for level 3
    
    ----------------------------------------------------------------------
    -- DO NOT EDIT BELOW THIS LINE
    -- UNLESS YOU KNOW WHAT YOU'RE DOING
    ----------------------------------------------------------------------
    
    function et_InitGame(levelTime,randomSeed,restart)
        local modname = string.format("%s v%s", description, version)
        et.G_Print(string.format("%s loaded\n", modname))
        et.RegisterModname(modname)
    end
    
    -- TheSilencerPL - To make it better, faster and less aggravating
    -- for the game, store the XP locally and reuse it
    function et_ClientSpawn(clientNum, revived, teamChange, restoreHealth)
       local valXP = getXP(clientNum)
       if valXP >=  lvl15xp and valXP < lvl20xp then    
          setlevel(clientNum,15,lvl15xp)
       elseif valXP >=  lvl20xp and valXP < lvl25xp then    
          setlevel(clientNum,20,lvl20xp)
       elseif valXP >=  lvl25xp then   
          setlevel(clientNum,25,lvl25xp)
       end
    end
    
    function getXP(playerID)
       return  et.gentity_get(playerID, "ps.persistant", 0)   
    end
    
    function getlevel(playerID)
       return et.G_shrubbot_level(playerID)
    end
    
    function setlevel(playerID, newlevel, xp)
       local name = et.gentity_get(playerID,"pers.netname")
       if isBot(playerID) or noGuid(playerID) then return end
       if newlevel <= getlevel(playerID) then return end
          et.trap_SendServerCommand(-1,"bp \"^nCongratulations ^7"..name.."^n, ^nyou have ^nbeen ^npromoted ^nto ^na ^nlevel ^7"..newlevel.." ^nuser!\"")
          et.trap_SendConsoleCommand( et.EXEC_APPEND, "setlevel ".. playerID.." "..newlevel.."\n" )
          et.trap_SendConsoleCommand( et.EXEC_APPEND, "readconfig\n" )
    end
    
    function noGuid(playerID)
       local userinfo = et.trap_GetUserinfo( playerID )
       local guid     = et.Info_ValueForKey( userinfo, "sil_guid" )
       if guid == "NO_GUID" or guid == "unknown" then 
          return true
       end
    end
    
    function isBot(playerID)
       if et.gentity_get(playerID,"ps.ping") == 0 then
       return true
       end
    end
    
    Just replaced this:

       if valXP >=  lvl15xp and valXP < lvl20xp then    
          setlevel(clientNum,1,lvl15xp)
       elseif valXP >=  lvl20xp and valXP < lvl25xp then    
          setlevel(clientNum,2,lvl20xp)
       elseif valXP >=  lvl25xp then   
          setlevel(clientNum,5,lvl25xp)
       end
    With this:

       if valXP >=  lvl15xp and valXP < lvl20xp then    
          setlevel(clientNum,15,lvl15xp)
       elseif valXP >=  lvl20xp and valXP < lvl25xp then    
          setlevel(clientNum,20,lvl20xp)
       elseif valXP >=  lvl25xp then   
          setlevel(clientNum,25,lvl25xp)
       end
  5. Okay,

     

    Unfortunately the disable falling damage still slows down when jumping from higher distances which unables to do TJ:/

    If there is no slow down it is not TJ anymore :P

     

    g_fixedphysics 1 //jump is a bit longer, no need to cap your fps at 43/76/125

    g_fixedphysicsfps 125

     

    if you experience fall damage where it should not happen... most likely g_fixedphysics is 1, zero it out

    otherwise your jump is wrong

    ETPro's official configs always have fixed physics enabled.
  6. About !finger:
    What does timestamp stand for?

     

    About !ban:

    If we are talking about cheaters then I agree with you but keep in mind that this command is also widely used for punishing players that misbehave on the server (short bans) and such forced break should not be automatically connected with loosing all privileages.

  7. Resurrecting this thread as I see I haven't respond to BECK's post. Basically yes, I'd like to punish players who stand in one place for x seconds with binocs "aimed" at specific place to just call an arty before anybody else. Keep in mind that the very same thing already exists for airstrikes - I can punish can spammers by adding 8 or 16 to g_weapons.

×
×
  • Create New...