Jump to content

g_crazygravity


pat30724

Recommended Posts

Also you can make a map configs for these "fun" maps, where you can enable !crazygravity. This should be simpler than LUA :)

It can't be as far as I know.

 

here you are the script, I'm not quite sure about et_InitGame and restart eq 1 if it is a call before or after map_restart.

maps = { "adlernest", "fueldump", "goldrush" } -- add map here

command = "!crazygravity" -- command here

function et_InitGame( levelTime, randomSeed, restart )
	if restart == 1 then	-- not quite sure
		local i = 1
		while maps[i] ~= nil do
			if tostring(et.trap_Cvar_Get("mapname")) == maps[i] then
				et.trap_SendConsoleCommand(et.EXEC_APPEND, string.format("%s\n", command))
				break
			end
			i = i + 1
		end
	end
end

Link to comment
Share on other sites

  • Management

 

No, that is not working.

 

This what i have in my map configs.

set g_useraxisrespawntime 2
set g_useralliedrespawntime 2
set g_panzerwar 1
!crazygravity 1

 

Try without ! command...and it should work afaik. So it should be like this to enable panzerwar and crazygravity ;)

set g_useraxisrespawntime 2
set g_useralliedrespawntime 2
panzerwar 1
crazygravity 1
Link to comment
Share on other sites

  • Management

You need to use the command crazygravity. Using the cvar directly will not enable it. So use the command in the map config file, not the cvar. We should probably remove the cvar so it would not cause confusion. The map config files will execute commands and anything that can be given to the rcon.

 

EDIT:

Checked it a bit and it may work at least partly with the cvar. But using the commands is still the preferred way just in case there are some things that must be set.

Link to comment
Share on other sites

Also you can make a map configs for these "fun" maps, where you can enable !crazygravity. This should be simpler than LUA :)

 

 

No, that is not working.

 

This what i have in my map configs.

set g_useraxisrespawntime 2
set g_useralliedrespawntime 2
set g_panzerwar 1
!crazygravity 1

I use as I wrote and its work but you must gib all after crazyspeed is on :) I must try your way :)

Edited by cziki
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...