OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: Jakash3 on January 23, 2013, 02:01:09 am



Title: oaxb51 callvote for capturelimit implemented
Post by: Jakash3 on January 23, 2013, 02:01:09 am
I give up on openarena


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Gig on January 23, 2013, 02:30:53 am
Gig suggested a callvote for capturelimit. I compiled a mod from oaxb51 to implement this. Changes include:

  • New callvote command: "ctflimit". Used to change the capturelimit
  • g_minCapturelimit and g_maxCapturelimit cvars
  • Green armor

Compiled mod and source:
http://24.182.9.197/oa/oaxb51/ (http://24.182.9.197/oa/oaxb51/)

I'm anxious to try it!  :)
Before trying it, two questions:
1) Considering there is already an OAX B51 (http://openarena.ws/board/index.php?topic=1908.msg44498#msg44498) test mod package, what about using a different name (OAXB51JAK may be an example), to avoid confusion?

2) Why did you use "ctflimit" instead of "capturelimit"? To save characters in the info init string? "Capturelimit" would have been more adapt, IMHO.

UPDATE: I cannot download it. Trying to follow the link, I get "Operation timed out" error.

PS: for who is interested in more infos, the thread talking about the green armor is this: http://openarena.ws/board/index.php?topic=4709


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Jakash3 on January 23, 2013, 02:33:58 am
I give up on openarena


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Gig on January 23, 2013, 02:47:52 am
..sorry typo wrong address. try again.
Also it's called ctflimit because there's a 12 character limit on callvote commands.
What about "caplimit" instead of "ctflimit", then? Capturelimit is used also in modes different than the classic ctf...
Or do you think that would cause confusion with the "cap" word (http://en.wiktionary.org/wiki/cap#Noun)?


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Jakash3 on January 23, 2013, 02:54:10 am
I give up on openarena


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Gig on January 23, 2013, 03:11:42 am
Given a quick try.
With devmap, then "/give light armor", I actually get 25 armor points.  Nice! :)
We would need a test map with the item in it for a real test...

Tried to /callvote ctflimit 10, with no luck.  :(
It says "Not allowed here. Vote commands are: [...]" and ctflimit is not in the list.

But it is in the g_votenames variable. I don't know what to think.

PS: once working, it should be added to the ESC menu, too.


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Jakash3 on January 23, 2013, 03:29:39 am
I give up on openarena


Title: Re: oaxb51 callvote for capturelimit implemented
Post by: Gig on January 23, 2013, 03:42:33 am
You are right. I really did an error like a noob! I did not notice the string was repeated two times (that string is quite long). And I even thought "Strange, how is it possible that the string already includes the new option, if it copied the variable from baseoa, that did not exist there?". What a dumb!

After a /reset g_votenames, it seems to work, although I tested it with no other players than me.  :) Good work, man!  :)

Well, it should be added to the ESC menu to be complete.