Commit Graph

1731 Commits

Author SHA1 Message Date
Joonas Rikkonen
e17b5a195c Increased the minimum distance between monster spawns and subs (20 000 units in monster events, 30% of the width of the level in monster missions). Closes #63 and closes #151 2017-12-14 20:01:45 +02:00
Joonas Rikkonen
58e98977df Fixes to projectiles going through walls:
- Continuous collision detection (body.IsBullet) is disabled when the body is moving slow enough, not immediately when it hits something.
- The prismatic joint that sticks projectiles to walls/characters stays active for a minimum of 1 s to prevent the projectile from immediately overshooting the joint limits and falling off (usually at the wrong side of a wall/door it hit).
- Separate properties for determining which types of bodies the projectile can stick to (character/structure/item).
- Spears and syringes only stick to characters.
- Increased syringe launch impulse.

Closes #122
2017-12-14 19:25:31 +02:00
Joonas Rikkonen
1da15dbca2 OnFire statuseffects aren't applied to items inside fireproof containers. Closes #98 2017-12-14 17:18:25 +02:00
Joonas Rikkonen
986862b23e The GUIMessageBox constructor with no width or height parameters automatically resizes the box according to the size of the text instead of using the default height.
Closes #131
2017-12-14 00:16:13 +02:00
Joonas Rikkonen
7e03235f8b Changed the species name of the huskified humans from "human" to "husk" and gave them the same combat strength as normal husk to prevent them from attacking each other.
Closes #119
2017-12-14 00:12:54 +02:00
Joonas Rikkonen
cce2cf942d Fixed hulls not being linked to gaps if the center of the gap is exactly at the edge of the adjacent hulls.
Closes #147
2017-12-13 21:07:51 +02:00
Joonas Rikkonen
847e10d4a2 Fixed wires not being dropped server-side when a player drops a connected wire without dragging it to their inventory first (or client-side when a host does so).
Closes #96
2017-12-13 18:34:23 +02:00
juanjp600
c4e894cb2e Fixed camera going insane when dropping through hatches
TODO: make the game less rubberbandy
2017-12-12 21:08:37 -03:00
juanjp600
b3178c6ab1 Merge branch 'master' of https://github.com/Regalis11/Barotrauma 2017-12-12 17:58:54 -03:00
juanjp600
23b220b6af Sync character collider rotation, try to make collider face the main limb by instantly flipping it if the angle's too wide, client-side ragdoll correction is more aggressive 2017-12-12 17:58:49 -03:00
Joonas Rikkonen
4a1ba21067 Fixed OnActive statuseffects not being applied on powered items that don't require power (prevented flare particles from working because they are configured in the LightComponent that inherits from Powered) 2017-12-12 22:21:29 +02:00
Joonas Rikkonen
7ce93d2e1f Merge pull request #123 from Crystalwarrior/syringeGun
Syringe gun + projectile tweaks + several status effects/item components tweaks
2017-12-12 20:12:28 +02:00
Joonas Rikkonen
a88640d8ad Merge pull request #120 from Crystalwarrior/fixes
Fixed Throwable component breaking chemicals and other things
2017-12-12 17:18:59 +02:00
Alex Noir
f34968be30 Tweaked visuals a bit
Added tiny bleeding and structure damage to the syringes
2017-12-11 12:33:59 +03:00
Alex Noir
a2a4225598 Added a fully functional syringe gun! Accepts syringes as ammo. Has custom sprite and sound.
Made syringes have a "projectile" component for syringe guns
Adds several missing signal components to the fabricator, as well as medical syringe to medical fabricator
Adds support for status effects applied to characters from onImpact
Removed "contained.Condition = 0.0f;" in Projectile.cs due to it limiting the possibilities of the .xml content creation
Added a couple null checks in StatusEffect.cs due to crashes caused by the new projectile changes - might need to debug further, perhaps there's a root cause?
Added itemlist console command
2017-12-10 22:17:14 +03:00
Alex Noir
55dd58579f I DID IT HOLY SHIT I GONE AND DONE IT
OnSecondaryUse is what throwing uses for doing things SPECIFICALLY on throw. This way, you can theoretically have grenades on which you'll have to pull the pin before throwing.
This also lets flares be used without the need to throw them.
did i mention my brain hurts
2017-12-10 15:56:34 +03:00
Alex Noir
231a38f71d roll back name change from "Aim" to "SecondaryUse"
Expand SecondaryUse to have similar properties to normal Use so it can apply SecondaryUse-related status effects
Make Throwable great again
2017-12-10 15:00:52 +03:00
Alex Noir
1d6d1a066f realised half way through that I don't even need a new action type, oops 2017-12-10 13:45:12 +03:00
Alex Noir
00653c5aa4 Renames "OnSecondaryUse" to "OnAim" for more sense
adds new "OnHudUse" to separate normal and self use
2017-12-10 13:39:00 +03:00
Joonas Rikkonen
db7d5539e0 Fixed modified clients being able to disconnect locked wires 2017-12-07 20:20:05 +02:00
Joonas Rikkonen
7026da2748 Health Scanner HUD shows the status of all nearby characters without having to highlight them. Fixes being unable to scan characters that aren't dead or unconscious. Non-human characters can also be scanned now.
Closes #73
2017-12-07 19:34:32 +02:00
juanjp600
26216a0d99 Fixed fish being selectable
Closes #91
2017-12-07 00:01:48 -03:00
juanjp600
a272d22de8 Players can now pick up corpses to eat them 2017-12-06 17:57:58 -03:00
juanjp600
1e81a5acf1 Removed "RAGDOLL" console spam 2017-12-06 14:49:37 -03:00
juanjp600
0d8d0d62ec Fixed ragdolling in multiplayer 2017-12-06 14:48:47 -03:00
juanjp600
d34c783c30 Removed collision from wall gaps 2017-12-06 13:33:54 -03:00
Juan Pablo Arce
3df2c20ee1 Merge pull request #81 from Crystalwarrior/ragdollbutton
Adds ragdoll button. Because why not.
2017-12-06 13:02:35 -03:00
Alex Noir
4a8e411a70 Fixed carrying stunned people being a severe case of a major ass pain by carrying over the "stairs" from the carrier.
Added "CarriedBy" property, publicized CarriedCharacter and CarriedBy, synced CarriedCharacter and CarriedBy for cool points
Publicized Stairs property
2017-12-06 18:58:18 +03:00
Joonas Rikkonen
10a77e6137 Cleanbuild console command removes the list of banned players (won't be included in builds to prevent the file from being cleared when updating the game) 2017-12-06 13:31:08 +02:00
Joonas Rikkonen
cccdd20401 Fixed exceptions when adding entities to EntitySpawner remove queue in single player mode 2017-12-06 02:39:58 +02:00
Joonas Rikkonen
2e6d35ce8e Doors with no broken sprite turn black when destroyed (just like before). TODO: graphics for broken ruin doors/hatches 2017-12-05 22:31:13 +02:00
Joonas Rikkonen
0b603ba10b Fixed particles in water being drawn under ruin structures (making it seem like plasma cutters aren't working), fixed all structures having the default health of 100 because of mismatching parameter name (Health vs MaxHealth) 2017-12-05 22:30:24 +02:00
Alex Noir
b26b6a7418 Fixed ragdolled players suffering less impact damage than non-ragdolled one.
Also fixed limb impact sounds on the clientside for ragdolls
2017-12-05 23:03:40 +03:00
Joonas Rikkonen
fd09cb4ef5 Fixed ruin props being placed on ruin doors, which occasionally caused artifact holders and artifacts to appear inside the doors.
Closes #72
2017-12-05 21:23:39 +02:00
Alex Noir
f37323e9a8 Fixed dragging thru stairs being annoying as hell (this line of code made it impossible to carry a body thru stairs on ground level without holding Down all the time) 2017-12-05 21:38:07 +03:00
Alex Noir
ee8c4dfb3a Adds ragdoll button. Because why not.
Also adds admin ragdoll command to force people into ragdoll mode.
The networking/syncing wasn't yet tested for this but hopefully everything should work.
Updates config.xml to add default keybinds for radio chat and ragdoll
2017-12-05 20:50:24 +03:00
Joonas Rikkonen
90986751c3 Merge branch 'antagonists' 2017-12-05 19:05:39 +02:00
Joonas Rikkonen
6e78e945a7 Minor code style nitpicking :) 2017-12-05 19:05:21 +02:00
Joonas Rikkonen
63493d2b9d Added a Character.AddDamage override method that does damage to a specific limb instead of the limb closest to the source of the damage. Projectiles and melee weapons now always do damage to the limb they hit, even if the center point of some other limb happens to be closer.
Also refactored the IDamageable interface to make more sense; now the attacker has to be a character instead of an IDamageable and damageable classes don't need to have an AiTarget.

Closes #69
2017-12-05 18:03:00 +02:00
Juan Pablo Arce
258047e638 Merge pull request #79 from Crystalwarrior/ClientFixes
Chat tweaks and fixes
2017-12-05 12:54:28 -03:00
Alex Noir
0e586651e7 Adds a [PM] tag
Fixes .Private message type colors being silly
2017-12-05 18:50:36 +03:00
Alex Noir
fdd3db82e6 oops fixed logic 2017-12-05 18:22:03 +03:00
Alex Noir
d4ce079d65 Lets people use keybinds to start chatting in lobby 2017-12-05 18:01:10 +03:00
juanjp600
ffbb327fb4 Fixed client exception when round ends 2017-12-05 11:32:27 -03:00
Alex Noir
fde3ed40a8 Prevent clients from chatting when unconscious on the serverside to prevent clients from "hacking" and enabling chat box. 2017-12-05 17:21:45 +03:00
Alex Noir
a290a6a337 Tweak chatting so you can finally use keybinds OTHER than TAB/~ for chat/radio chat by disabling those keybinds when the chat box is active. This is not a problem anymore because pressing enter stops the chat box.
This is a positive change since this is a lot more "industry standard" than the previous system, which initially was very confusing and unfamiliar (at least personally).
2017-12-05 16:25:51 +03:00
Alex Noir
1e8c1f7f04 Fixed a NullReferenceException caused when you try to play a round with traitors enabled while there are not enough player characters. 2017-12-05 16:17:51 +03:00
Joonas Rikkonen
6993242373 Updated readme.md (MonoGame 3.5 -> 3.6) 2017-12-05 12:05:57 +02:00
juanjp600
c6ca3572ba Added an option to respawn directly in the main sub 2017-12-05 03:03:37 -03:00
juanjp600
e69e316f6b Added the option to disable karma 2017-12-04 20:52:25 -03:00