search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 04.19.24

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Knife only mod script
PostPosted: 05.10.12 
Offline
Ingame Mod
User avatar

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



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Ingame Mod
User avatar

Joined: 07.26.11
Posts: 219
-----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
Yes, actually. You need two rolls of duct tape, one internet-connected computer and one Pirat :)



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Godlike
User avatar

Joined: 10.14.08
Posts: 2006
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60
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



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Godlike
User avatar

Joined: 06.26.09
Posts: 672
that is, if you want to empty the server

_________________
"It is the first responsibility of every citizen to question authority."
-- Benjamin Franklin



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Ingame Mod
User avatar

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



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Godlike
User avatar

Joined: 09.28.08
Posts: 2318
Location: Solar System
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



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Godlike
User avatar

Joined: 10.14.08
Posts: 2006
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60
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



 


Top
 Profile  
 
PostPosted: 05.10.12 
Offline
Ingame Mod
User avatar

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



 


Top
 Profile  
 
PostPosted: 05.12.12 
Offline
Godlike
User avatar

Joined: 03.12.11
Posts: 523
-----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
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..



 


Top
 Profile  
 
PostPosted: 07.11.12 
Offline
Godlike
User avatar

Joined: 03.12.11
Posts: 523
-----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
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?



 


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX
for our stats we use Chart.js Copyright (c) 2013-2015 Nick Downie.
the stats also use some jQuery jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc.



voice server
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1730.63418631
NormaSnockers1865.75400492
Zottel1760.8276378
make.them.suffer1846.17269872
>8v=1825.35230156
moon1777.56195615
sjas1692.49192315
peace1878.86190660
Wagner_Moura1562.9188001
Goomba1859.75182677
z0rn1608.41181016
Mad1803.76179124
[dswp]PLZ1847.85178516
Graf_ZahlIII1835.73167407
Zohan1611.07159737
ubercunt1634.93159240
Yarrr!1917.33156233
I_am_nOOb1909.64151268
Pandageddon1891.75148319
Pirat1664.08145798