ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 21-Dec-12 15:31:16

Gauki
BETA Tester
From: Germany
Registered: 30-Aug-12
Posts: 114
Website

!panzerwar 1 with crazy gravity

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 sad

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 ? big_smile


DooC_sigbanner.gif

Offline

#2 21-Dec-12 15:59:47

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: !panzerwar 1 with crazy gravity

"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.


iluvnitmod.png

Offline

#3 21-Dec-12 16:37:20

Gauki
BETA Tester
From: Germany
Registered: 30-Aug-12
Posts: 114
Website

Re: !panzerwar 1 with crazy gravity

thx n!t wink so i have to wait ;( ! but if u add crazygravity to panzerwar please give a command like !crazygravity 1 and 0 ! we appreciate your work, keep it up :-*************************


DooC_sigbanner.gif

Offline

#4 21-Dec-12 17:07:22

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: !panzerwar 1 with crazy gravity

i'm too lazy to add a !command so it'll probably be g_crazyGravity cvar


iluvnitmod.png

Offline

#5 21-Dec-12 20:23:22

LSD_WoL
Moderator
Registered: 19-Apr-10
Posts: 44
Website

Re: !panzerwar 1 with crazy gravity

J'ai été plus rapide que toi nitrox tongue

Dynamic g_gravity changer: http://www.wikiet.fr/forum/config-f21/g … .html#p533

wink

Offline

#6 23-Dec-12 00:50:29

Gauki
BETA Tester
From: Germany
Registered: 30-Aug-12
Posts: 114
Website

Re: !panzerwar 1 with crazy gravity

thx lsd wolf

i will try it later wink je taime ^^


DooC_sigbanner.gif

Offline

#7 04-Jan-13 23:12:05

Gauki
BETA Tester
From: Germany
Registered: 30-Aug-12
Posts: 114
Website

Re: !panzerwar 1 with crazy gravity

how can i rework the lua crazy gravity that it only work if panzerwar 1 is set ?  it should stop with panzerwar 0 ^^


DooC_sigbanner.gif

Offline

#8 05-Jan-13 00:15:02

LSD_WoL
Moderator
Registered: 19-Apr-10
Posts: 44
Website

Re: !panzerwar 1 with crazy gravity

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

#9 05-Jan-13 13:41:47

Gauki
BETA Tester
From: Germany
Registered: 30-Aug-12
Posts: 114
Website

Re: !panzerwar 1 with crazy gravity

its a dream wink its works perfectly ^^ thanks


DooC_sigbanner.gif

Offline

Board footer

Powered by FluxBB