Banner

Repeat

End

Forums

HavenForts: Construct JetFists - The Chronicles of Wargasm (Episode 2, NeoForts)
  #1  
Old 08-18-2005
Experienced Builder
 
Join Date: Aug 2005
Posts: 362
Default Blocking Weapons made easy :)

I'm happy to release the first plugin to do this for SF

It allows you to prevent players from purchasing certain weapons. You do this through a couple console commands

blockweapon <weapon> <0|1>

Ex:
blockweapon 1 1
would block the pulse rifle, or
blockweapon 11 1 would block the repair kit.

The weapon is the fkey you would normally press to buy it.

Installation is pretty easy, but you need to install Metamod: Source first. Go to http://sourcemm.net/ to download it, then follow the instructions at http://sourcemm.net/?go=docs&doc=install

After MMS is installed, extract the file at http://devnull.vision-host.net/files...ceforts_mm.zip to your sourceforts\addons directory.

Next add this line to your sourceforts\addons\metamod\metaplugins.ini file:
addons\sourceforts_mm

Save this file, then restart the server.

To make it so a weapon is blocked every round, put the commands in your cfg\server.cfg file. You can also block and unblock weapons on the fly via rcon.


To make your server a lot more stable, add this to your server.cfg
Quote:
blockweapon 2 1
blockweapon 11 1
blockweapon 12 1
This will block slams, the repair kit, and the destablizer, which seem to be the three things most responsible for crashing your server.

Mapcycle:
Create a mapcycle.txt file in Souceforts\
One map per line, ex:
Code:
sf_abandon
sf_domo
Do NOT repeat maps.
Now set mp_timelimit to whatever you want. Around 30 seconds before the timelimit would normally kick in, it changes it to the next map.

Get it and its source at: http://devnull.vision-host.net/files...ceforts_mm.zip

Edit:
Update:
0.3-> Added mapcycle fix, servers will actually cycle maps instead of reloading the same one over and over
0.2 -> You can see the results of the commands from rcon now.
Reply With Quote
  #2  
Old 08-18-2005
Experienced Builder
 
Join Date: Aug 2005
Posts: 362
Default Blocking Weapons made easy :)

I'm happy to release the first plugin to do this for SF

It allows you to prevent players from purchasing certain weapons. You do this through a couple console commands

blockweapon <weapon> <0|1>

Ex:
blockweapon 1 1
would block the pulse rifle, or
blockweapon 11 1 would block the repair kit.

The weapon is the fkey you would normally press to buy it.

Installation is pretty easy, but you need to install Metamod: Source first. Go to http://sourcemm.net/ to download it, then follow the instructions at http://sourcemm.net/?go=docs&doc=install

After MMS is installed, extract the file at http://devnull.vision-host.net/files...ceforts_mm.zip to your sourceforts\addons directory.

Next add this line to your sourceforts\addons\metamod\metaplugins.ini file:
addons\sourceforts_mm

Save this file, then restart the server.

To make it so a weapon is blocked every round, put the commands in your cfg\server.cfg file. You can also block and unblock weapons on the fly via rcon.


To make your server a lot more stable, add this to your server.cfg
Quote:
blockweapon 2 1
blockweapon 11 1
blockweapon 12 1
This will block slams, the repair kit, and the destablizer, which seem to be the three things most responsible for crashing your server.

Mapcycle:
Create a mapcycle.txt file in Souceforts\
One map per line, ex:
Code:
sf_abandon
sf_domo
Do NOT repeat maps.
Now set mp_timelimit to whatever you want. Around 30 seconds before the timelimit would normally kick in, it changes it to the next map.

Get it and its source at: http://devnull.vision-host.net/files...ceforts_mm.zip

Edit:
Update:
0.3-> Added mapcycle fix, servers will actually cycle maps instead of reloading the same one over and over
0.2 -> You can see the results of the commands from rcon now.
Reply With Quote
  #3  
Old 08-18-2005
SwiftSpear's Avatar
Flag Capper
 
Join Date: Apr 2005
Location: #2
Posts: 2,946
Default

What weapons did you write this to primarily block again? I know originally it had something to do with decreasing crash likelyhood. That might be useful information as well.
__________________
I JUMPED THIS FAR

|--------------------------------------------------------------------------------------------------|
Reply With Quote
  #4  
Old 08-18-2005
SwiftSpear's Avatar
Flag Capper
 
Join Date: Apr 2005
Location: #2
Posts: 2,946
Default

What weapons did you write this to primarily block again? I know originally it had something to do with decreasing crash likelyhood. That might be useful information as well.
__________________
I JUMPED THIS FAR

|--------------------------------------------------------------------------------------------------|
Reply With Quote
  #5  
Old 08-18-2005
yahoo's Avatar
Experienced Builder
 
Join Date: Apr 2005
Posts: 347
Default

probably the distablizer cause it causes alot of crashes how it is now.
__________________
Reply With Quote
  #6  
Old 08-18-2005
yahoo's Avatar
Experienced Builder
 
Join Date: Apr 2005
Posts: 347
Default

probably the distablizer cause it causes alot of crashes how it is now.
__________________
Reply With Quote
  #7  
Old 08-18-2005
DJ_Monkey_Pilot's Avatar
Uke
Fort Warrior
 
Join Date: Mar 2005
Location: UK
Posts: 1,213
Send a message via MSN to DJ_Monkey_Pilot Send a message via Yahoo to DJ_Monkey_Pilot Send a message via Skype™ to DJ_Monkey_Pilot
Default

What happens if the people have bound the buy# commands to different keys?
Reply With Quote
  #8  
Old 08-18-2005
DJ_Monkey_Pilot's Avatar
Uke
Fort Warrior
 
Join Date: Mar 2005
Location: UK
Posts: 1,213
Send a message via MSN to DJ_Monkey_Pilot Send a message via Yahoo to DJ_Monkey_Pilot Send a message via Skype™ to DJ_Monkey_Pilot
Default

What happens if the people have bound the buy# commands to different keys?
Reply With Quote
  #9  
Old 08-18-2005
Experienced Builder
 
Join Date: Aug 2005
Posts: 362
Default

Quote:
Originally Posted by DJ_Monkey_Pilot
What happens if the people have bound the buy# commands to different keys?
Still blocks it, unless they can find some way to not use the buy command at all.


Swiftspear, I wrote it to block the destabilizer mostly, but it was pretty easy to expand to other weapons

Edit: Updated version that fixes mapcycle coming soon
Reply With Quote
  #10  
Old 08-18-2005
Experienced Builder
 
Join Date: Aug 2005
Posts: 362
Default

Quote:
Originally Posted by DJ_Monkey_Pilot
What happens if the people have bound the buy# commands to different keys?
Still blocks it, unless they can find some way to not use the buy command at all.


Swiftspear, I wrote it to block the destabilizer mostly, but it was pretty easy to expand to other weapons

Edit: Updated version that fixes mapcycle coming soon
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0

Tab