search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 05.01.25

 

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: 495.704
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: 614.439
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: 429.992
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: 674
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: 495.704
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: 429.992
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: 495.704
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: 524
-----tdm:  
nick: [dswp]zietsh
skill: 1155.36
kills: 11410
deaths: 8841
ratio: 1.29
-----bomb:  
nick: [dswp]zietsh
skill: 1114.07
kills: 18153
deaths: 14802
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: 524
-----tdm:  
nick: [dswp]zietsh
skill: 1155.36
kills: 11410
deaths: 8841
ratio: 1.29
-----bomb:  
nick: [dswp]zietsh
skill: 1114.07
kills: 18153
deaths: 14802
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 23 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
bomb » dswp.de:22223
status: online
players: 0/24
map: ut4_casa
 
jump » dswp.de:22224
status: online
players: 0/20
map: ut4_uberjumps_beta3
 
freeze » dswp.de:22225
status: online
players: 0/32
map: ut4_casa
 
tdm » dswp.de:22226
status: online
players: 0/32
map: ut4_paris
 
tdm » dswp.de:22227
status: online
players: 0/32
map: ut4_tohunga_b10
 
btw test the new ajax serwer monitor here!
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1071.72418631
NormaSnockers1155.39400492
Zottel1090.4276378
make.them.suffer1143.27269872
>8v=1130.37230156
moon1100.78195615
sjas1048.1192315
peace1163.51190660
Wagner_Moura967.849188001
Goomba1151.68182677
z0rn996.032181016
Mad1117.01179124
[dswp]PLZ1144.31178516
Graf_ZahlIII1136.8167407
Zohan997.679159737
ubercunt1012.45159240
Yarrr!1187.33156233
I_am_nOOb1182.57151268
Pandageddon1171.49148319
Pirat1030.51145798