Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

g_crazygravity

- - - - -

  • Please log in to reply
15 replies to this topic

#1
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands

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!



#2
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
It might be really easy to do through Lua. Gonna post you a sample of such script tomorrow.

#3
OFFLINE   cziki

cziki

    Member

  • Members
  • PipPip
  • 36 posts
7
A step in the right direction
  • LocationHolyCity [Poland]

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


Edited by cziki, 09 July 2013 - 09:15 PM.


#4
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands

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


#5
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland

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



#6
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2692 posts
158
On the road to fame

 

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


#7
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
Oh yeah, Sol has posted an example already but I think hellreturn's solution is better and lighter.

#8
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands
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.

#9
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2692 posts
158
On the road to fame

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



#10
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands
The cvar g_crazygravity is not in the documents.

#11
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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.



#12
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands
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.

#13
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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.



#14
OFFLINE   cziki

cziki

    Member

  • Members
  • PipPip
  • 36 posts
7
A step in the right direction
  • LocationHolyCity [Poland]

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, 12 July 2013 - 02:52 PM.


#15
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3096 posts
215
On the road to fame
  • LocationPoland

Just one comment, use:

!crazygravity on|off


#16
OFFLINE   pat30724

pat30724

    Member

  • Members
  • PipPip
  • 25 posts
2
A step in the right direction
  • LocationSteenwijk, Netherlands
So put it like this?

set g_useraxisrespawntime 2
set g_useralliedrespawntime 2
!panzerwar on
!crazygravity on




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users