A much more efficient version of Flood Mod completely re-scripted.
Less lag, more functionality, more expandable, more user friendly.
This new version is similar to the old except it has a few big differences.- The server saves its information on a database instead of files.
- Tools, props, and weapons can be added by simply adding a new table of information.
- There is a new mod called 'melon mod' where dead players can spawn as melons which weigh three times as much as players. If you are a melon you can push ships closer or attempt to sink people that are still alive to speed up the game.
- The game will wait until there are two or more players before fighting.
- A simple prop protection has now been added to the build menu.
- Finally everything has been optimized quite a bit and runs much better than the old version. This also allows it to be expanded on easier as in adding new features and events to the game.
Requirements:- Once you have these two things, you need to go into the file init.lua in the gamemode folder and fill in the top part with your new database information.
After you do all that you will be able to run a server.
Adding new tools/props/weapons:
To add any of these things you need to first go into shared.lua
Tools:
--Add your tool name to the AllowedTools table.--
AllowedTools = {
"MyNewTool"
}
--Add a new table with your tools information.--
ToolList["Constraints"][9] = {
Controls = "ToolNameHere",
ItemName = "ToolNameHere",
Command = "gmod_tool ToolNameHere",
Text = "#ToolNameHere"
}
Props:
--Add a new table with your props information.--
PropList[31] = {
Cost = 9000,
Health = 9000,
Model = "models/props_borealis/bluebarrel001.mdl"
}
Weapons:
--Add a new table with your weapons information.--
WeaponList[6] = {
Model = "models/weapons/w_smg_tmp.mdl", --Model
Weapon = "weapon_tmp", --Weapon name
Name = "Tmp", --Name shown in weapon menu
Damage = 3, --Damage
Damage2 = 5, --This is optional, damage dealt will be random between Damage and Damage2. If you want a set damage every time delete this line.
Cost = 12000, --Price of gun
Ammo = 180, --Ammo given with the gun
AmmoR = 50, --Amount of ammo in one magazine of your gun
AmmoType = "SMG1", --Name of ammo
Tip = "An automatic weapon with great accuracy." --Shown in weapons menu
}
Pictures:
Notes:
There will be some bugs that occur from adding weapons and tools, I am sorry for this. When they occur post your problem and I will help you on fixing it.
This gamemode was rushed and completed in 5 days, I then decided to start expanding and making major changes and fixes but lost interest very quickly.So now I will leave it with everyone else to do as they please as long as I am left in the credits.
I would prefer you don't release your own versions unless they are greatly improved and there is a much noticeable difference.
I will try to make some changes as time goes on and fix some problems and make some updates. Not to mentions helping people who post their problems in this thread.
I haven't done much testing, post any bugs/glitches/errors and all of that if you get any and I will fix them as soon as possible. You may also post any simple suggestions you would like to see in the game and I may add them if a majority of people request them.
Updates:- 2.01
- Took out a forgoten piece of personal code.
- Fixed all players being able to unfreeze any prop.
Flood Mod 2.01:
Flood Mod 2.00:
Tutorial on how to get the game running:
This will show you how to download gm_tmysql and how to setup a database for your game to run.