Jump to content

Sol

Coders
  • Posts

    117
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by Sol

  1. As for the mines u're right. I have maybe solution for it.

    team_maxlandmines - max landmines per team
    g_landminepereng	- max landmines per engineer in team, but (person * (active landmines) < team_maxlandmines)
    

    example:

    team_maxlandmines = 10

    g_landminepereng = 2

    With these settings 5 engs can set 2 landmines

     

    @

     

    Rather, it will not be threatened 'mine fields'

  2. Hello, i have two requests so.

     

    1. In our server is notorious arty spam, g_minartytime works like crap.

    Its my alternative ex:

    team_maxartillery   -- Max (artilleries and supports fire (per team)) per (team_betweenarts) time
    team_betweenarts  -- time between artilleries
    

     

    2. So many peoples (haters) destroy teammate's landmines. Its pretty good if you will add new bit flag ex:

    g_friendlyFireOpts 32 - Only owner of landmine can destroy own landmine.
    

  3. function et_InitGame( levelTime, randomSeed, restart )
       et.trap_SendConsoleCommand(et.EXEC_NOW,"sets sv_uptime "..et.trap_Cvar_Get( "uptime" ) )
    end
    

    but it's a string, and it will refresh every map

  4. g_serverinfo's cvars arent updates every frame i think.

    You can chack that with !update command, or just make simple LUA script which will be loging uptime per 1,2,3min or per map etc.

  5. I made a simple script to remove players guid, but it doesn't remove why?

    function et_ClientConnect( clientNum, firstTime, isBot )
    if isBot == false then
    	et.Info_SetValueForKey( et.trap_GetUserinfo( clientnum ), "cl_guid", "" ) -- MAX_GAMESTATE_CHARS
    end
    end
    

     

    Simple Panzer Check

     

     

    author	= "Sol"
    info	= "PF Check"
    ver		= "1.0"
    
    mintopanzer	= 30								-- min players to panza on
    checktime	= 30								-- seconds between checks
    spammsg		= true								-- msg available and unavailable
    weapon		= "team_maxpanzers"					-- current weapon (team_maxpanzers ; team_maxflamers ; team_maxmg42s ; team_maxgrenlaunchers etc)
    pos		= "chat"							-- position
    available	= "^3Panzer is now ^2Available"		-- available msg
    unavailable = "^3Panzer is now ^1Unavailable"	-- unavailable msg
    
    function et_InitGame( levelTime, randomSeed, restart )
    et.RegisterModname( "" .. info .. " ver: " .. ver .. "")
    end
    
    oldtime = os.time()
    
    function et_RunFrame( levelTime )
    currentime = os.time()
    if currentime - oldtime > checktime then
    	if et_CountPlayers() >= mintopanzer then
    		et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s 1\n",weapon))
    		if spammsg == true then
    			et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s %s\n", pos, available))
    		end
    	else
    		et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s 0\n",weapon))
    		if spammsg == true then
    			et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s %s\n", pos, unavailable))
    		end
    	end
    	oldtime = currentime
    end
    end
    
    function et_CountPlayers()
    	local i = 0
    	local liczba = 0
    	for i = 0, (et.trap_Cvar_Get("sv_maxclients") - 1) do
    		if et.gentity_get(i, "sess.sessionTeam") ~= 0 then
    			liczba = liczba + 1
    		end	
    	end
    return liczba
    end
    

     

     

    I will add more scripts soon

×
×
  • Create New...