Commit Graph

1666 Commits

Author SHA1 Message Date
Joonas Rikkonen
b3c3970209 Server responses to clients using console commands ("granted permissions to client", error messages, etc) are displayed in the client's debug console instead of the chat box. Client command usage is included in server logs. 2017-12-20 19:18:32 +02:00
Joonas Rikkonen
91699b26a6 Giveperm and revokeperm commands work correctly now when used by clients 2017-12-20 18:58:27 +02:00
Joonas Rikkonen
3e4d2c5a8a Fixed incorrect positioning of debug console question prompts. The ShowQuestionPrompt method used to take the last textblock in the console and consider that as the question prompt text, even though the text had only been queued and the actual GUITexblock hadn't been instantiated yet. 2017-12-20 18:57:42 +02:00
Joonas Rikkonen
0204bc2c49 Added permission presets (or ranks). Current presets are none (no special permissions), moderator (round management & kicking) and admin (almost everything permitted). 2017-12-19 22:27:07 +02:00
Joonas Rikkonen
0a8c79c1cb Fixed exceptions in GUIListBox.Select if any of the children have null userdata, option to add tooltips to GUIDropDown items 2017-12-19 22:22:42 +02:00
Joonas Rikkonen
9599137e83 Console command permissions can be changed in the client permission menu, permitted commands are displayed in the client-side permission popup 2017-12-07 18:25:08 +02:00
Joonas Rikkonen
9bc0931be5 Clients can execute permitted console commands server-side now. The console commands have three different actions: the default action, one that's executed client-side when a client uses it, and one that's executed server-side when a clients requests it. If the client-side action is omitted, the client relays the command to the server as-is. If the third action is omitted, the server executes the default action. 2017-12-06 19:53:05 +02:00
Joonas Rikkonen
91a8e6d0c6 Saving & loading client console command permissions, the permissions are saved as an xml file 2017-12-06 14:04:35 +02:00
Joonas Rikkonen
0840a29ff3 Started overhauling the client permission system to make it a bit more flexible. Now the clients can have the permission to use specific console commands (atm these commands are relayed to the server as-is).
TODO: make it possible to give clients console command permissions via the menus and the console, save command permissions, deal with commands that don't work as intended when simply relayed to the server and executed server-side, add "ranks" (preconfigured or custom sets of permissions, e.g. moderator, admin, etc).
2017-12-03 22:54:28 +02:00
Joonas Rikkonen
f0225e4312 Chemicals and explosives can be thrown. Nitroglycerin & flash powder explode on impact, no effect on other items yet (implement applying status effects when the item hits someone?) 2017-12-03 01:10:26 +02:00
Joonas Rikkonen
ddf9ad26b8 v0.7.0.1 2017-12-03 01:07:16 +02:00
Joonas Rikkonen
9e5f503659 Added minor damage protection to diving suit 2017-12-03 01:07:04 +02:00
Joonas Rikkonen
20664c08fd Fixed limb lightsources not rotating with the limb 2017-12-02 19:15:27 +02:00
Juan Pablo Arce
3bcd128ac7 Fixed extra quote in carrier.xml 2017-12-02 13:19:44 -03:00
Joonas Rikkonen
f55d028799 Chatbox can be deselect by pressing enter while it's empty 2017-12-02 17:47:05 +02:00
Joonas Rikkonen
1cc33d221d Moving the sub using IJKL in debug builds is disabled when writing into a textbox. 2017-12-02 16:46:27 +02:00
Joonas Rikkonen
063881701c Fixed exceptions when attempting to set the value of a serializable rect property by parsing a string 2017-12-02 16:25:21 +02:00
Joonas Rikkonen
c66191ca94 Added exception handling to SerializeProperty.TrySetValue methods 2017-12-02 15:50:40 +02:00
Joonas Rikkonen
ccac8de723 Removed unused NetConfig constants and leftover debug code in GameServer 2017-12-02 15:42:52 +02:00
Joonas Rikkonen
04bcc6b9b1 Modifications to the damage/armor system:
- Armor values aren't reduced from the damage taken, but instead multiply the damage (e.g. an item reduces damage by 10% instead of 10 hp). Now armor doesn't make characters invulnerable to small amounts of damage.
- Armoring isn't defined as a single "armor value", but instead there are "damage modifiers" which can be added to items and limbs. The modifiers can only affect specific types of damage and have separate multipliers for the damage amount and bleeding amount.
- Having a fire proof item on a limb doesn't make that limb invulnerable to burn damage. Item's that protect against fire now have a damage modifier for the Burn damage type.
2017-12-02 15:42:13 +02:00
Joonas Rikkonen
1d4327b690 Diving suits cover feet (fixes characters receiving damage almost exclusively to their feet when wearing a diving suit) 2017-12-02 15:35:29 +02:00
Joonas Rikkonen
78e97097cd Fixed autorestart counter overlapping with the campaign map in the server lobby screen
Closes #57
2017-12-02 15:28:46 +02:00
Joonas Rikkonen
deefcafe02 Made the name of the "Linkable/IsLinkable" property consistent 2017-12-02 14:19:23 +02:00
Juan Pablo Arce
905eaeccc2 Merge pull request #55 from Crystalwarrior/prTest
fix start pop up saying the host is the target if host becomes traitor
2017-12-02 08:13:41 -03:00
juanjp600
343b8efd87 Fixed unwired railgun controller crash 2017-12-02 08:13:08 -03:00
Alex Noir
1394d15c29 fix start pop up saying the host is the target if host becomes traitor 2017-12-02 11:09:06 +03:00
juanjp600
5cb603b3e5 Fixed entity linking not working 2017-12-02 01:05:16 -03:00
juanjp600
ee04eecd49 Fixed autorestart command being broken in dedicated server 2017-12-01 20:35:34 -03:00
juanjp600
18a5b3eabb Update content package to 0.7, removed serverconfig.xml 2017-12-01 20:26:56 -03:00
Joonas Rikkonen
2fea48287c Item pickup sounds are only played when the controlled character picks up an item
Closes #51
2017-12-01 22:11:14 +02:00
Joonas Rikkonen
7c2ea0a5f0 Merge branch 'master' of https://github.com/Regalis11/barotrauma 2017-12-01 22:09:31 +02:00
juanjp600
af6f0b0386 Fixed content package dropdown setting not being saved 2017-12-01 14:47:39 -03:00
juanjp600
84ba36aa78 Added timestep accumulator to dedicated server, improved autorestart commands, added client permission commands 2017-12-01 14:25:10 -03:00
Joonas Rikkonen
0ab5bccb44 v0.7.0.0 2017-12-01 16:43:18 +02:00
juanjp600
d021fe593e Fixed tutorial exceptions when player dies 2017-12-01 10:27:53 -03:00
juanjp600
2d55d41320 Fixed railgun HUD crash when the first linked item doesn't have an ItemContainer 2017-12-01 09:53:07 -03:00
Joonas Rikkonen
5b1798cb50 Fixed monsters not taking damage when they're far enough from the host's camera (or the main sub when using the dedicated server). The limbs of the monsters were disabled when 8000 units away, causing them to become invincible because the collider does not register damage.
Closes #50
2017-11-30 17:07:37 +02:00
Joonas Rikkonen
6e9c33fe89 Added radio chat hotkey 2017-11-29 19:16:53 +02:00
Joonas Rikkonen
e4664b3d27 The character spawning debug command doesn't require the config file of the character to be in the default character folder (as long as the character is included in the selected content package). 2017-11-29 19:16:31 +02:00
Joonas Rikkonen
51fe7df481 Railgun HUD (shows supercapacitor charge & how many shells there are left) 2017-11-27 19:34:57 +02:00
Joonas Rikkonen
f4f58622e1 Short delay before the "pressure increasing" message is displayed (because clients may briefly be outside the sub before they get in sync with the server) 2017-11-24 18:53:21 +02:00
Joonas Rikkonen
e79ad3dceb Fixed AICharacters not playing sounds in mp 2017-11-24 17:49:52 +02:00
Joonas Rikkonen
1c09f757a2 Renaming fields in the Client class for consistency 2017-11-23 20:43:22 +02:00
Joonas Rikkonen
4689bec441 Clients send the latest received campaign ID to the server when in the lobby instead of requesting it once with a reliable message. -> Now the server reattempts sending the save file if the transfer fails at either end. 2017-11-23 20:16:47 +02:00
Joonas Rikkonen
18db667c1e The server list can be filtered based on a few criteria 2017-11-21 00:59:53 +02:00
Joonas Rikkonen
fce7d43ef3 Fixed characters not appearing in the round summary in mp, minor CrewManager refactoring 2017-11-20 20:46:54 +02:00
Joonas Rikkonen
765587efd7 Renamed screens (EditMapScreen -> SubEditorScreen, EditCharacterScreen -> CharacterEditorScreen) 2017-11-18 15:13:03 +02:00
Joonas Rikkonen
cda08b1745 Fixed inability to move selectable items in character mode in the sub editor 2017-11-18 15:12:23 +02:00
Joonas Rikkonen
2d17b6e889 Fixed string inputs in SerializableEntityEditor being cleared when enter is hit 2017-11-18 14:55:27 +02:00
Joonas Rikkonen
903686aed7 Modified particle properties can be saved directly to the config file 2017-11-18 14:18:46 +02:00