pat30724 Posted July 8, 2013 Share Posted July 8, 2013 Hello, I would like to have a cvar for g_crazygravity to put in the map configs for fun maps. Its because i don't want to give every member access to !crazygravity and all. Thanks! Quote Link to comment Share on other sites More sharing options...
Dragonji Posted July 9, 2013 Share Posted July 9, 2013 It might be really easy to do through Lua. Gonna post you a sample of such script tomorrow. pat30724 and hellreturn 2 Quote Link to comment Share on other sites More sharing options...
cziki Posted July 9, 2013 Share Posted July 9, 2013 (edited) Also you can make a map configs for these "fun" maps, where you can enable !crazygravity. This should be simpler than LUA Edited July 9, 2013 by cziki Quote Link to comment Share on other sites More sharing options...
pat30724 Posted July 9, 2013 Author Share Posted July 9, 2013 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 Quote Link to comment Share on other sites More sharing options...
Sol Posted July 9, 2013 Share Posted July 9, 2013 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 hellreturn 1 Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted July 10, 2013 Management Share Posted July 10, 2013 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 Dragonji 1 Quote Link to comment Share on other sites More sharing options...
Dragonji Posted July 10, 2013 Share Posted July 10, 2013 Oh yeah, Sol has posted an example already but I think hellreturn's solution is better and lighter. Quote Link to comment Share on other sites More sharing options...
pat30724 Posted July 11, 2013 Author Share Posted July 11, 2013 I have been looking in the server logs. And it does activate g_crazygravity when i do !crazygravity on. But it is not mentiont in the docs that the cvar is existing. Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted July 11, 2013 Management Share Posted July 11, 2013 I have been looking in the server logs. And it does activate g_crazygravity when i do !crazygravity on. But it is not mentiont in the docs that the cvar is existing. Which cvar is missing? http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot Quote Link to comment Share on other sites More sharing options...
pat30724 Posted July 11, 2013 Author Share Posted July 11, 2013 The cvar g_crazygravity is not in the documents. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted July 11, 2013 Management Share Posted July 11, 2013 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. Quote Link to comment Share on other sites More sharing options...
pat30724 Posted July 11, 2013 Author Share Posted July 11, 2013 Executing the panzwar on and crazygravity on in the config is not working. So i have set g_panzerwar 1 in the map config and set g_panzerwar 0 in the default config. Its working that way. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted July 11, 2013 Management Share Posted July 11, 2013 The !panzerwar command is buggy. It executes as it is supposed to, but the results are not correct. The "!crazygravity on" and "!crazygravity off" commands work correctly from the map configs. Quote Link to comment Share on other sites More sharing options...
cziki Posted July 12, 2013 Share Posted July 12, 2013 (edited) 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 July 12, 2013 by cziki Quote Link to comment Share on other sites More sharing options...
Management TheSilencerPL Posted July 12, 2013 Management Share Posted July 12, 2013 Just one comment, use: !crazygravity on|off hellreturn 1 Quote Link to comment Share on other sites More sharing options...
pat30724 Posted July 12, 2013 Author Share Posted July 12, 2013 So put it like this? set g_useraxisrespawntime 2set g_useralliedrespawntime 2!panzerwar on!crazygravity on Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.