Knife only mod script

Everything technical and nerdy stuff here plz !

Knife only mod script

Postby PingoSuSE » 05.10.12

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-)
Image
User avatar
PingoSuSE
Ingame Mod
 
Posts: 537
Joined: 02.23.09
Location: kn03xh
-----tdm:  
nick: pingo
skill: 544.684
kills: 495
deaths: 461
ratio: 1.07

Re: Knife only mod script

Postby TheAdi » 05.10.12

Yes, actually. You need two rolls of duct tape, one internet-connected computer and one Pirat :)
User avatar
TheAdi
Ingame Mod
 
Posts: 219
Joined: 07.26.11
-----tdm:  
nick: >8v=
skill: 675.151
kills: 6108
deaths: 5096
ratio: 1.19
-----bomb:  
nick: PaciFire
skill: 948.832
kills: 3103
deaths: 2929
ratio: 1.05

Re: Knife only mod script

Postby Unclefragger » 05.10.12

you can do that with b3 or in the mapcycle if you use it
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: Knife only mod script

Postby havoc » 05.10.12

that is, if you want to empty the server
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin
User avatar
havoc
Godlike
 
Posts: 674
Joined: 06.26.09

Re: Knife only mod script

Postby PingoSuSE » 05.10.12

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
Image
User avatar
PingoSuSE
Ingame Mod
 
Posts: 537
Joined: 02.23.09
Location: kn03xh
-----tdm:  
nick: pingo
skill: 544.684
kills: 495
deaths: 461
ratio: 1.07

Re: Knife only mod script

Postby AimMe » 05.10.12

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.
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Re: Knife only mod script

Postby Unclefragger » 05.10.12

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.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: Knife only mod script

Postby PingoSuSE » 05.10.12

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
Image
User avatar
PingoSuSE
Ingame Mod
 
Posts: 537
Joined: 02.23.09
Location: kn03xh
-----tdm:  
nick: pingo
skill: 544.684
kills: 495
deaths: 461
ratio: 1.07

Re: Knife only mod script

Postby zietsh » 05.12.12

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..
User avatar
zietsh
Godlike
 
Posts: 524
Joined: 03.12.11
-----tdm:  
nick: [dswp]zietsh
skill: 991.948
kills: 11203
deaths: 8618
ratio: 1.29
-----bomb:  
nick: [dswp]zietsh
skill: 1056.62
kills: 18077
deaths: 14755
ratio: 1.22

Re: Knife only mod script

Postby zietsh » 07.11.12

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?
User avatar
zietsh
Godlike
 
Posts: 524
Joined: 03.12.11
-----tdm:  
nick: [dswp]zietsh
skill: 991.948
kills: 11203
deaths: 8618
ratio: 1.29
-----bomb:  
nick: [dswp]zietsh
skill: 1056.62
kills: 18077
deaths: 14755
ratio: 1.22

Next

Who is online

Users browsing this forum: No registered users and 42 guests

Misc