dswp.de
http://www.dswp.de/old/

Knife only mod script
http://www.dswp.de/old/forum-gameserver-support/knife-only-mod-script-t5315.html
Page 1 of 2

Author:  PingoSuSE [ 05.10.12 ]
Post subject:  Knife only mod script

Is there a way to make a script, that would on certain maps disable all weapons - e.g. cemetery, angelofdeath, dressingroom,... or this mod should be done to this maps? ... Just thinking out loud 8-)

Author:  TheAdi [ 05.10.12 ]
Post subject:  Re: Knife only mod script

Yes, actually. You need two rolls of duct tape, one internet-connected computer and one Pirat :)

Author:  Unclefragger [ 05.10.12 ]
Post subject:  Re: Knife only mod script

you can do that with b3 or in the mapcycle if you use it

Author:  havoc [ 05.10.12 ]
Post subject:  Re: Knife only mod script

that is, if you want to empty the server

Author:  PingoSuSE [ 05.10.12 ]
Post subject:  Re: Knife only mod script

Unclefragger wrote:
you can do that with b3 or in the mapcycle if you use it


yes if you're admin 60+, but not for other mortals :lol: This would on one way prevent ppl voting small maps when there's 30+ ppl e.g.dressingroom

Author:  AimMe [ 05.10.12 ]
Post subject:  Re: Knife only mod script

PingoSuSE wrote:
Unclefragger wrote:
you can do that with b3 or in the mapcycle if you use it


yes if you're admin 60+, but not for other mortals :lol: This would on one way prevent ppl voting small maps when there's 30+ ppl e.g.dressingroom

Admin 61+, that is. We can't use !paset on tdm, only !weaponcontrol that isn't good thing to to.

Author:  Unclefragger [ 05.10.12 ]
Post subject:  Re: Knife only mod script

looks like I misinterpreted the thread, you want mods to be able to set a map knife only and not a general solution (e.g. for other servers)
I think we had a thread like this before, personally I hate servers with changing rules (gear settings) I don't know how grave the situation with small maps is, but generally I'd rather look for a way to make sure they do not show up at all if there are a certain amount of people online rather then forcing everyone to run around with a knife all out of a sudden.

Author:  PingoSuSE [ 05.10.12 ]
Post subject:  Re: Knife only mod script

yes I thought on, let me call it, "automatic weaps switch" on certain maps ... as soon as certain map is loaded, automatically switches to knife.
It happens in late hours (22, 23 GMT) that most ppl would like to play knife, but there's always few gunners to spoil the party e.g. on cemetery they climb up spawn roof and snipe or shoot with negev on knifers :x

Author:  zietsh [ 05.12.12 ]
Post subject:  Re: Knife only mod script

I have thought about something like that with Pirat before and we came to the conclusion that it technically should be able to be done with python for b3.... but for this we need someone to do it...

Should be as easy as having a if loop.

if (map == ut_crate OR etc.)
say "!pagear none";
else
say "!pagear reset";

I guess we only need to find the variable map..

Author:  zietsh [ 07.11.12 ]
Post subject:  Re: Knife only mod script

Do I understand this correctly and this is the variable?:

http://doc.bigbrotherbot.net/1.8.x/classb3_1_1game_1_1_game.html#ad3d215b0be230ae84e272af68290a1d7

(b3::game::Game::_mapName = None [static, private])


And can I check this variable by writing

import.b3.game

at the beginning of the .py file?

Anyone familiar with something like this?


edit:
Can I just let the console(b3) say !pagear none/reset or would I have to "rewrite"(more or less copy/paste) the pagear command?

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/