You are not logged in.
Pages: 1
if i enable !panzerwar 1 and exec my crazy gravity config, everthing seems to be work. But
1. my lua scripts dont work
2. nextmap vote is disabled (dont work)
3. at the end of the map a lot of bots connecting and my server goes down/off
g_gravity 100
wait 10000 //wait 10sec
g_gravity 500
wait 10000 //wait 10sec
g_gravity 900
wait 10000 //wait
g_gravity 200
wait 10000 //wait
g_gravity 700
wait 10000 //wait
g_gravity 900
wait 10000 //wait
g_gravity 100
wait 10000 //wait
g_gravity 500
wait 10000 //wait
g_gravity 800
wait 10000 //wait
g_gravity 300
wait 10000 //wait
g_gravity 100
wait 10000 //wait
g_gravity 700
wait 10000 //wait
g_gravity 900
wait 10000 //wait
g_gravity 600
wait 10000 //wait
g_gravity 100
wait 10000 //wait
g_gravity 300
wait 10000 //wait
g_gravity 600
wait 10000 //wait
g_gravity 900
wait 10000 //wait
g_gravity 700
wait 10000 //wait
g_gravity 100
wait 10000 //wait
any idea whats wrong ? and how can i disable after the map to normal gravity ? <--- automatically !
p.s. the time 10000 dont seems like 10 seconds ?
Offline
"wait" (in this case) defines how many frames must be processed before executing the next command.
On a normal server (sv_fps 20), server processes 20 frames/second (1frame every 50ms)
Here it is 10000 frames.
10000/20 = 500 seconds.
500/60 = ~8,33 minutes
Do not use wait for this kind of stuff, it will definitely screw up the server.
This can be done easily with LUA, unfortunately i don't have the time to code this LUA today.
And i'm planning to add crazygravity into N!tmod anyway.
Offline
Offline
i'm too lazy to add a !command so it'll probably be g_crazyGravity cvar
Offline
J'ai été plus rapide que toi nitrox
Dynamic g_gravity changer: http://www.wikiet.fr/forum/config-f21/g … .html#p533
Offline
Offline
Offline
interval = 30000 -- The interval in milliseconds (1000 millisec = 1 sec) and this value must be a multiple of 20
mingravity = 200
maxgravity = 1200
gstring = "^4[^8Gravity^4]^8:^2 "
function et_RunFrame(levelTime)
gwar = tonumber(et.trap_Cvar_Get("g_war"));
if gwar == 1 then
if interval and math.mod(levelTime,interval) == 0 then
newgravity = math.random(mingravity,maxgravity)
et.trap_SendConsoleCommand(et.EXEC_APPEND, "g_gravity " .. newgravity .. ";")
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cp " .. gstring .. newgravity .. ";")
end
elseif gwar ~= 1 then
et.trap_SendConsoleCommand(et.EXEC_APPEND, "g_gravity 800;")
else
end
end
function et_InitGame(levelTime, randomSeed, restart)
et.RegisterModname("Random g_gravity changer")
end
Offline
Offline
Pages: 1